UNPKG

@nativescript-community/ui-svg

Version:

Adds support for SVGs in your NativeScript apps.

19 lines (18 loc) 736 B
import { Canvas, CanvasView, PorterDuffMode } from '@nativescript-community/ui-canvas'; import Shape from '@nativescript-community/ui-canvas/shapes/shape'; import { CoreTypes } from '@nativescript/core'; export declare function xfermodeFromString(str: any): globalAndroid.graphics.PorterDuff.Mode; export declare abstract class SVG extends Shape { _parent: WeakRef<any>; width: CoreTypes.PercentLengthType; height: CoreTypes.PercentLengthType; left: CoreTypes.LengthType; top: CoreTypes.LengthType; blendingMode: PorterDuffMode; cache: boolean; drawOnCanvas(canvas: Canvas, parent: CanvasView): void; _cachedImage: any; clearCache(): void; } export declare class CanvasSVG extends CanvasView { }