@nativescript-community/ui-svg
Version:
Adds support for SVGs in your NativeScript apps.
18 lines (17 loc) • 651 B
TypeScript
import { File, ImageAsset } from '@nativescript/core';
import { SVGView as SVGViewBase } from './index.common';
export declare function getSVGKImage(src: string | ImageAsset | File): SVGKImage;
declare module '@nativescript-community/ui-canvas' {
interface Canvas {
ctx: any;
}
}
export declare class SVGView extends SVGViewBase {
nativeViewProtected: SVGKFastImageView;
createNativeView(): SVGKFastImageView;
aspectRatio: number;
_imageSourceAffectsLayout: boolean;
_setNativeClipToBounds(): void;
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
handleSrc(src: any): Promise<void>;
}