@mastergo/plugin-typings 2.17.0 → 2.18.0-beta.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1387,6 +1387,7 @@ declare global {
1387
1387
  createPage(): PageNode
1388
1388
  createSlice(): SliceNode
1389
1389
  createConnector(): ConnectorNode
1390
+ createIntelligentContainer(children?: SceneNode[]): IntelligentContainerNode
1390
1391
  createNodeFromSvgAsync(svg: string): Promise<FrameNode>
1391
1392
 
1392
1393
  combineAsVariants(nodes: ComponentNode[]): ComponentSetNode
@@ -2569,6 +2570,18 @@ declare global {
2569
2570
  resizeToFit(): void
2570
2571
  }
2571
2572
 
2573
+ interface IntelligentContainerNode
2574
+ extends DefaultContainerMixin,
2575
+ GeometryMixin,
2576
+ FrameContainerMixin,
2577
+ RectangleStrokeWeightMixin {
2578
+ readonly type: 'INTELLIGENT_CONTAINER'
2579
+ clone(): IntelligentContainerNode
2580
+ resizeToFit(): void
2581
+ shaderCode: string
2582
+ isPlaying: boolean
2583
+ }
2584
+
2572
2585
  interface RectangleNode
2573
2586
  extends DefaultShapeMixin,
2574
2587
  ConstraintMixin,
@@ -3127,6 +3140,7 @@ declare global {
3127
3140
  | SliceNode
3128
3141
  | ConnectorNode
3129
3142
  | SectionNode
3143
+ | IntelligentContainerNode
3130
3144
 
3131
3145
  type NodeType =
3132
3146
  | 'DOCUMENT'
@@ -3147,6 +3161,7 @@ declare global {
3147
3161
  | 'SLICE'
3148
3162
  | 'CONNECTOR'
3149
3163
  | 'SECTION'
3164
+ | 'INTELLIGENT_CONTAINER'
3150
3165
 
3151
3166
  // d2c
3152
3167
  type CodeFile = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "2.17.0",
3
+ "version": "2.18.0-beta.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "type": "module",
6
6
  "main": "",