Fix type of insert options in importSVG function

Type of insert was true instead of boolean.
This commit is contained in:
AntoineC
2019-01-24 13:27:58 +01:00
committed by GitHub
parent d5fe4dcadb
commit 87716e82d4
+1 -1
View File
@@ -4243,7 +4243,7 @@ declare module paper {
* @param options.insert: Boolean — whether the imported items should be added to the item that importSVG() is called on.
* @param options.applyMatrix Boolean — whether the imported items should have their transformation matrices applied to their contents or not.
*/
importSVG(svg: SVGElement | string, options?: { expandShapes?: boolean; onLoad?: (item: Item, svg: string) => void; onError?: (message: string, status: number) => void; insert?: true; applyMatrix?: Matrix; }): Item;
importSVG(svg: SVGElement | string, options?: { expandShapes?: boolean; onLoad?: (item: Item, svg: string) => void; onError?: (message: string, status: number) => void; insert?: boolean; applyMatrix?: Matrix; }): Item;
/**
* Converts the provided SVG content into Paper.js items and adds them to the active layer of this project.