@mastergo/plugin-typings 1.1.0 → 1.1.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 +10 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -325,7 +325,7 @@ declare global {
|
|
|
325
325
|
| 'GRADIENT_DIAMOND'
|
|
326
326
|
readonly transform: Transform
|
|
327
327
|
readonly gradientStops: ReadonlyArray<ColorStop>
|
|
328
|
-
readonly gradientHandlePositions
|
|
328
|
+
readonly gradientHandlePositions?: [{ x: number, y: number}, { x: number, y: number}];
|
|
329
329
|
readonly isVisible?: boolean
|
|
330
330
|
readonly alpha?: number
|
|
331
331
|
readonly blendMode?: BlendMode
|
|
@@ -543,7 +543,6 @@ declare global {
|
|
|
543
543
|
ReactionMixin,
|
|
544
544
|
SceneNodeMixin,
|
|
545
545
|
ChildrenMixin,
|
|
546
|
-
RectangleStrokeWeightMixin,
|
|
547
546
|
RectangleCornerMixin,
|
|
548
547
|
BlendMixin,
|
|
549
548
|
CornerMixin,
|
|
@@ -678,12 +677,12 @@ declare global {
|
|
|
678
677
|
label:'NONE' | 'BLUE' | 'GREEN' | 'RED' | 'YELLOW' | 'PURPLE' | 'GRAY'
|
|
679
678
|
}
|
|
680
679
|
|
|
681
|
-
interface FrameNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
680
|
+
interface FrameNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
682
681
|
readonly type: 'FRAME'
|
|
683
682
|
clone(): FrameNode
|
|
684
683
|
}
|
|
685
684
|
|
|
686
|
-
interface ComponentSetNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
685
|
+
interface ComponentSetNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
687
686
|
readonly type: 'COMPONENT_SET'
|
|
688
687
|
readonly componentPropertyDefinitions: Array<Record<string, Array<string> | string>>
|
|
689
688
|
clone(): ComponentSetNode
|
|
@@ -816,7 +815,7 @@ declare global {
|
|
|
816
815
|
setRangeTextCase(start: number, end: number, textCase: TextCase): void
|
|
817
816
|
}
|
|
818
817
|
|
|
819
|
-
interface ComponentNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
818
|
+
interface ComponentNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
820
819
|
readonly type: 'COMPONENT'
|
|
821
820
|
readonly variantProperties: Array<Record<string, string>>
|
|
822
821
|
description: string
|
|
@@ -825,7 +824,7 @@ declare global {
|
|
|
825
824
|
createInstance(): InstanceNode
|
|
826
825
|
}
|
|
827
826
|
|
|
828
|
-
interface InstanceNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
827
|
+
interface InstanceNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
829
828
|
readonly type: 'INSTANCE'
|
|
830
829
|
readonly variantProperties: Array<Record<string, string>>
|
|
831
830
|
setVariantPropertyValues(property: Record<string, string>): void
|
|
@@ -1335,7 +1334,7 @@ declare global {
|
|
|
1335
1334
|
| 'GRADIENT_DIAMOND'
|
|
1336
1335
|
readonly transform: Transform
|
|
1337
1336
|
readonly gradientStops: ReadonlyArray<ColorStop>
|
|
1338
|
-
readonly gradientHandlePositions
|
|
1337
|
+
readonly gradientHandlePositions?: [{ x: number, y: number}, { x: number, y: number}];
|
|
1339
1338
|
readonly isVisible?: boolean
|
|
1340
1339
|
readonly alpha?: number
|
|
1341
1340
|
readonly blendMode?: BlendMode
|
|
@@ -1553,7 +1552,6 @@ declare global {
|
|
|
1553
1552
|
ReactionMixin,
|
|
1554
1553
|
SceneNodeMixin,
|
|
1555
1554
|
ChildrenMixin,
|
|
1556
|
-
RectangleStrokeWeightMixin,
|
|
1557
1555
|
RectangleCornerMixin,
|
|
1558
1556
|
BlendMixin,
|
|
1559
1557
|
CornerMixin,
|
|
@@ -1688,12 +1686,12 @@ declare global {
|
|
|
1688
1686
|
label:'NONE' | 'BLUE' | 'GREEN' | 'RED' | 'YELLOW' | 'PURPLE' | 'GRAY'
|
|
1689
1687
|
}
|
|
1690
1688
|
|
|
1691
|
-
interface FrameNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
1689
|
+
interface FrameNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
1692
1690
|
readonly type: 'FRAME'
|
|
1693
1691
|
clone(): FrameNode
|
|
1694
1692
|
}
|
|
1695
1693
|
|
|
1696
|
-
interface ComponentSetNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
1694
|
+
interface ComponentSetNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
1697
1695
|
readonly type: 'COMPONENT_SET'
|
|
1698
1696
|
readonly componentPropertyDefinitions: Array<Record<string, Array<string> | string>>
|
|
1699
1697
|
clone(): ComponentSetNode
|
|
@@ -1826,7 +1824,7 @@ declare global {
|
|
|
1826
1824
|
setRangeTextCase(start: number, end: number, textCase: TextCase): void
|
|
1827
1825
|
}
|
|
1828
1826
|
|
|
1829
|
-
interface ComponentNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
1827
|
+
interface ComponentNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
1830
1828
|
readonly type: 'COMPONENT'
|
|
1831
1829
|
readonly variantProperties: Array<Record<string, string>>
|
|
1832
1830
|
description: string
|
|
@@ -1835,7 +1833,7 @@ declare global {
|
|
|
1835
1833
|
createInstance(): InstanceNode
|
|
1836
1834
|
}
|
|
1837
1835
|
|
|
1838
|
-
interface InstanceNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin {
|
|
1836
|
+
interface InstanceNode extends DefaultContainerMixin, GeometryMixin, FrameContainerMixin, RectangleStrokeWeightMixin {
|
|
1839
1837
|
readonly type: 'INSTANCE'
|
|
1840
1838
|
readonly variantProperties: Array<Record<string, string>>
|
|
1841
1839
|
setVariantPropertyValues(property: Record<string, string>): void
|