@mastergo/plugin-typings 2.18.0 → 2.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1374,6 +1374,8 @@ declare global {
|
|
|
1374
1374
|
|
|
1375
1375
|
getNodeById<T extends SceneNode>(id: string): T | null
|
|
1376
1376
|
getNodeByPosition(position: { x: number; y: number }): SceneNode | null
|
|
1377
|
+
getRootNodeById<T extends SceneNode>(id: string): T | null
|
|
1378
|
+
getRootParentLayerId(id: string): string | null
|
|
1377
1379
|
createRectangle(): RectangleNode
|
|
1378
1380
|
createLine(): LineNode
|
|
1379
1381
|
createEllipse(): EllipseNode
|
|
@@ -2291,6 +2293,7 @@ declare global {
|
|
|
2291
2293
|
alignSelf: 'STRETCH' | 'INHERIT' // applicable only inside auto-layout frames
|
|
2292
2294
|
flexGrow: 0 | 1 // applicable only inside auto-layout frames
|
|
2293
2295
|
rescale(scale: number, scaleOption?: ScaleOption): void
|
|
2296
|
+
resize(width: number, height: number): void
|
|
2294
2297
|
scaleFactor: number // The default value is 1
|
|
2295
2298
|
flip(direction: 'VERTICAL' | 'HORIZONTAL'): void
|
|
2296
2299
|
}
|