@mastergo/plugin-typings 1.15.1 → 1.16.2
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/CHANGELOG.md +29 -0
- package/dist/index.d.ts +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [1.16.2](https://github.com/mastergo-design/plugin-typings/compare/v1.16.1...v1.16.2) (2023-03-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 修复instance的swapComponent和detachInstance类型错误 ([c8aa208](https://github.com/mastergo-design/plugin-typings/commit/c8aa208700fc4f5323bffc41737199360ee13f6b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.16.1](https://github.com/mastergo-design/plugin-typings/compare/v1.16.0...v1.16.1) (2023-03-22)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* groupNode和booleanOperation移除frameContainerMixin ([de52f6c](https://github.com/mastergo-design/plugin-typings/commit/de52f6cbb991c812de6fe7579293b16e336bde20))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [1.16.0](https://github.com/mastergo-design/plugin-typings/compare/v1.15.1...v1.16.0) (2023-03-21)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* 修改combineAsVariants类型 ([16c2cd0](https://github.com/mastergo-design/plugin-typings/commit/16c2cd0c18e1c570fb4ebe70385c287e61865119))
|
|
25
|
+
* 修改combineAsVariantstype ([bd59082](https://github.com/mastergo-design/plugin-typings/commit/bd590829eda21bbeef0bbc01b57b9f3a2a1dc296))
|
|
26
|
+
* combineAsVariants ([f683658](https://github.com/mastergo-design/plugin-typings/commit/f683658e452024849a4e190b3782fe45d78f7de1))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
## [1.15.1](https://github.com/mastergo-design/plugin-typings/compare/v1.15.0...v1.15.1) (2023-03-16)
|
|
2
31
|
|
|
3
32
|
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ declare global {
|
|
|
74
74
|
createConnector(): ConnectorNode
|
|
75
75
|
createNodeFromSvgAsync(svg: string): Promise<FrameNode>
|
|
76
76
|
|
|
77
|
+
combineAsVariants(nodes: ComponentNode[]): ComponentSetNode
|
|
78
|
+
|
|
77
79
|
getHoverLayer(): PageNode | SceneNode
|
|
78
80
|
|
|
79
81
|
/**
|
|
@@ -779,7 +781,7 @@ declare global {
|
|
|
779
781
|
resizeToFit(): void
|
|
780
782
|
}
|
|
781
783
|
|
|
782
|
-
interface GroupNode extends DefaultContainerMixin, GeometryMixin
|
|
784
|
+
interface GroupNode extends DefaultContainerMixin, GeometryMixin {
|
|
783
785
|
readonly type: 'GROUP'
|
|
784
786
|
clone(): GroupNode
|
|
785
787
|
}
|
|
@@ -847,7 +849,6 @@ declare global {
|
|
|
847
849
|
|
|
848
850
|
interface BooleanOperationNode
|
|
849
851
|
extends DefaultShapeMixin,
|
|
850
|
-
FrameContainerMixin,
|
|
851
852
|
Omit<ChildrenMixin, 'appendChild' | 'insertChild'>,
|
|
852
853
|
CornerMixin {
|
|
853
854
|
readonly type: 'BOOLEAN_OPERATION'
|
|
@@ -1030,8 +1031,8 @@ declare global {
|
|
|
1030
1031
|
/**
|
|
1031
1032
|
* this is an async func
|
|
1032
1033
|
*/
|
|
1033
|
-
swapComponent(): void
|
|
1034
|
-
detachInstance():
|
|
1034
|
+
swapComponent(component: ComponentNode): void
|
|
1035
|
+
detachInstance(): FrameNode
|
|
1035
1036
|
mainComponent: ComponentNode | null
|
|
1036
1037
|
}
|
|
1037
1038
|
|