mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Fix type of insert options in importSVG function
Type of insert was true instead of boolean.
This commit is contained in:
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user