@mastergo/plugin-typings 1.19.0 → 1.20.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.
- package/CHANGELOG.md +17 -0
- package/dist/index.d.ts +12 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# [1.20.0](https://github.com/mastergo-design/plugin-typings/compare/v1.19.0...v1.20.0) (2023-04-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 补充paint的name字段 ([217c68e](https://github.com/mastergo-design/plugin-typings/commit/217c68efdcd1a3e6d0d0d07c3fd024794563751b))
|
|
7
|
+
* opaque图层禁止修改相对矩阵 ([fb634b1](https://github.com/mastergo-design/plugin-typings/commit/fb634b1eb77d7df2f5d1eeb98bd53888586b0daa))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 添加轮廓蒙层和是否可视属性,文本支持省略 ([89414ad](https://github.com/mastergo-design/plugin-typings/commit/89414ad67f398dd44055172b1d0f9ff47693b1d6))
|
|
13
|
+
* 增加pluginId ([321db49](https://github.com/mastergo-design/plugin-typings/commit/321db497ff6da8f2802bab2f5ea1c5e3f3a1fc76))
|
|
14
|
+
* document增加id ([d2bfdff](https://github.com/mastergo-design/plugin-typings/commit/d2bfdff8451eea4c09a757b6d01fec0c37f73e6f))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
# [1.19.0](https://github.com/mastergo-design/plugin-typings/compare/v1.18.0...v1.19.0) (2023-04-11)
|
|
2
19
|
|
|
3
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ declare global {
|
|
|
39
39
|
|
|
40
40
|
readonly documentId: number
|
|
41
41
|
|
|
42
|
+
readonly pluginId: number
|
|
43
|
+
|
|
42
44
|
readonly command: string
|
|
43
45
|
|
|
44
46
|
readonly mixed: string | symbol
|
|
@@ -384,6 +386,7 @@ declare global {
|
|
|
384
386
|
*/
|
|
385
387
|
readonly alpha?: number
|
|
386
388
|
readonly blendMode?: BlendMode
|
|
389
|
+
readonly name?: string
|
|
387
390
|
}
|
|
388
391
|
|
|
389
392
|
interface GradientPaint {
|
|
@@ -398,6 +401,7 @@ declare global {
|
|
|
398
401
|
readonly isVisible?: boolean
|
|
399
402
|
readonly alpha?: number
|
|
400
403
|
readonly blendMode?: BlendMode
|
|
404
|
+
readonly name?: string
|
|
401
405
|
}
|
|
402
406
|
|
|
403
407
|
interface ImagePaint {
|
|
@@ -408,6 +412,7 @@ declare global {
|
|
|
408
412
|
readonly isVisible?: boolean
|
|
409
413
|
readonly alpha?: number
|
|
410
414
|
readonly blendMode?: BlendMode
|
|
415
|
+
readonly name?: string
|
|
411
416
|
}
|
|
412
417
|
|
|
413
418
|
type Paint = SolidPaint | GradientPaint | ImagePaint
|
|
@@ -559,7 +564,9 @@ declare global {
|
|
|
559
564
|
opacity: number
|
|
560
565
|
blendMode: BlendMode
|
|
561
566
|
isMask: boolean
|
|
562
|
-
|
|
567
|
+
isMaskOutline: boolean
|
|
568
|
+
isMaskVisible: boolean
|
|
569
|
+
effects: ReadonlyArray<Effect>
|
|
563
570
|
effectStyleId: string
|
|
564
571
|
}
|
|
565
572
|
|
|
@@ -707,7 +714,7 @@ declare global {
|
|
|
707
714
|
|
|
708
715
|
interface OpaqueNodeMixin extends BaseNodeMixin, SceneNodeMixin, ExportMixin {
|
|
709
716
|
readonly absoluteTransform: Transform
|
|
710
|
-
relativeTransform: Transform
|
|
717
|
+
readonly relativeTransform: Transform
|
|
711
718
|
readonly absoluteRenderBounds: Bound | null
|
|
712
719
|
readonly absoluteBoundingBox: Bound
|
|
713
720
|
x: number
|
|
@@ -744,6 +751,8 @@ declare global {
|
|
|
744
751
|
|
|
745
752
|
interface DocumentNode {
|
|
746
753
|
readonly type: 'DOCUMENT'
|
|
754
|
+
|
|
755
|
+
readonly id: string
|
|
747
756
|
name: string
|
|
748
757
|
|
|
749
758
|
currentPage: PageNode
|
|
@@ -923,7 +932,7 @@ declare global {
|
|
|
923
932
|
readonly hyperlinks: Array<HyperlinkWithRange>
|
|
924
933
|
textAlignHorizontal: 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFIED'
|
|
925
934
|
textAlignVertical: 'TOP' | 'CENTER' | 'BOTTOM'
|
|
926
|
-
textAutoResize: 'NONE' | 'WIDTH_AND_HEIGHT' | 'HEIGHT'
|
|
935
|
+
textAutoResize: 'NONE' | 'WIDTH_AND_HEIGHT' | 'HEIGHT' | 'TRUNCATE'
|
|
927
936
|
paragraphSpacing: number
|
|
928
937
|
readonly textStyles: ReadonlyArray<TextSegStyle>
|
|
929
938
|
readonly listStyles: ReadonlyArray<ListStyle>
|