@mastergo/plugin-typings 2.17.0 → 2.18.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 +20 -2
  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
@@ -1502,7 +1503,7 @@ declare global {
1502
1503
  loadFontAsync(fontName: FontName): Promise<boolean>
1503
1504
  createImage(imageData: Uint8Array, isSync?: boolean): Promise<Image>
1504
1505
  getImageByHref(href: string): Image
1505
-
1506
+
1506
1507
  /**
1507
1508
  * 导出多个图层组成的png图片, 可过滤图层id,设置导出图片的缩放倍率
1508
1509
  */
@@ -1538,7 +1539,7 @@ declare global {
1538
1539
  ) => void
1539
1540
  }
1540
1541
 
1541
- interface GlobalExportPngSetting {
1542
+ interface GlobalExportPngSetting {
1542
1543
  ids?: string[];
1543
1544
  filterIds?: string[];
1544
1545
  scale?: number;
@@ -2058,6 +2059,7 @@ declare global {
2058
2059
  readonly alpha?: number
2059
2060
  readonly blendMode?: BlendMode
2060
2061
  readonly name?: string
2062
+ readonly colorStyleId: string
2061
2063
  }
2062
2064
 
2063
2065
  interface GradientPaint {
@@ -2076,6 +2078,7 @@ declare global {
2076
2078
  readonly alpha?: number
2077
2079
  readonly blendMode?: BlendMode
2078
2080
  readonly name?: string
2081
+ readonly colorStyleId: string
2079
2082
  }
2080
2083
 
2081
2084
  interface ImageFilters {
@@ -2101,6 +2104,7 @@ declare global {
2101
2104
  readonly name?: string
2102
2105
  readonly ratio?: number
2103
2106
  readonly rotation?: number
2107
+ readonly colorStyleId: string
2104
2108
  }
2105
2109
 
2106
2110
  type Paint = SolidPaint | GradientPaint | ImagePaint
@@ -2569,6 +2573,18 @@ declare global {
2569
2573
  resizeToFit(): void
2570
2574
  }
2571
2575
 
2576
+ interface IntelligentContainerNode
2577
+ extends DefaultContainerMixin,
2578
+ GeometryMixin,
2579
+ FrameContainerMixin,
2580
+ RectangleStrokeWeightMixin {
2581
+ readonly type: 'INTELLIGENT_CONTAINER'
2582
+ clone(): IntelligentContainerNode
2583
+ resizeToFit(): void
2584
+ shaderCode: string
2585
+ isPlaying: boolean
2586
+ }
2587
+
2572
2588
  interface RectangleNode
2573
2589
  extends DefaultShapeMixin,
2574
2590
  ConstraintMixin,
@@ -3127,6 +3143,7 @@ declare global {
3127
3143
  | SliceNode
3128
3144
  | ConnectorNode
3129
3145
  | SectionNode
3146
+ | IntelligentContainerNode
3130
3147
 
3131
3148
  type NodeType =
3132
3149
  | 'DOCUMENT'
@@ -3147,6 +3164,7 @@ declare global {
3147
3164
  | 'SLICE'
3148
3165
  | 'CONNECTOR'
3149
3166
  | 'SECTION'
3167
+ | 'INTELLIGENT_CONTAINER'
3150
3168
 
3151
3169
  // d2c
3152
3170
  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",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "type": "module",
6
6
  "main": "",