@mastergo/plugin-typings 2.6.1-alpha.0 → 2.8.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.
- package/dist/index.d.ts +167 -9
- package/package.json +16 -10
- package/CHANGELOG.md +0 -849
package/dist/index.d.ts
CHANGED
|
@@ -999,7 +999,11 @@ declare global {
|
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
declare global {
|
|
1002
|
+
/**
|
|
1003
|
+
* @deprecated please use mg instead
|
|
1004
|
+
*/
|
|
1002
1005
|
const mastergo: PluginAPI
|
|
1006
|
+
|
|
1003
1007
|
const mg: PluginAPI
|
|
1004
1008
|
const console: Console
|
|
1005
1009
|
const __html__: string
|
|
@@ -1020,12 +1024,31 @@ declare global {
|
|
|
1020
1024
|
clear(): void
|
|
1021
1025
|
}
|
|
1022
1026
|
|
|
1027
|
+
interface ConfirmAction {
|
|
1028
|
+
label: string
|
|
1029
|
+
type: 'primary' | 'text'
|
|
1030
|
+
action: () => void
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
interface PromptAction {
|
|
1034
|
+
label: string
|
|
1035
|
+
type: 'primary' | 'text'
|
|
1036
|
+
action: (value: string) => void
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1023
1039
|
interface Image {
|
|
1024
1040
|
readonly href: string
|
|
1025
1041
|
getBytesAsync(): Promise<Uint8Array>
|
|
1026
1042
|
}
|
|
1027
1043
|
|
|
1028
|
-
type
|
|
1044
|
+
type GuardEventType = 'beforeReadyForDev'
|
|
1045
|
+
|
|
1046
|
+
type PluginEventType =
|
|
1047
|
+
'selectionchange' | 'layoutchange' |
|
|
1048
|
+
'currentpagechange' | 'close' |
|
|
1049
|
+
'themechange' | 'drop' |
|
|
1050
|
+
'run' | 'readyForDev' | GuardEventType
|
|
1051
|
+
|
|
1029
1052
|
type ThemeColor = 'dark' | 'light'
|
|
1030
1053
|
|
|
1031
1054
|
interface PluginAPI {
|
|
@@ -1051,7 +1074,9 @@ declare global {
|
|
|
1051
1074
|
|
|
1052
1075
|
readonly viewport: ViewportAPI
|
|
1053
1076
|
|
|
1054
|
-
|
|
1077
|
+
/**
|
|
1078
|
+
* @note only available in devMode
|
|
1079
|
+
*/
|
|
1055
1080
|
readonly codegen?: CodegenAPI
|
|
1056
1081
|
|
|
1057
1082
|
closePlugin(): void
|
|
@@ -1105,16 +1130,64 @@ declare global {
|
|
|
1105
1130
|
|
|
1106
1131
|
getStyleById(id: string): Style | null
|
|
1107
1132
|
getTitleByFontFamilyAndStyle(fontFamily: string, fontStyle: string): FontAlias | null
|
|
1133
|
+
|
|
1108
1134
|
createFillStyle(config: CreateStyleConfig): PaintStyle
|
|
1109
|
-
createStrokeStyle(config: CreateStyleConfig): PaintStyle
|
|
1110
1135
|
createEffectStyle(config: CreateStyleConfig): EffectStyle
|
|
1111
1136
|
createTextStyle(config: CreateStyleConfig): TextStyle
|
|
1112
1137
|
createGridStyle(config: CreateStyleConfig): GridStyle
|
|
1138
|
+
createCornerRadiusStyle(config: CreateStyleConfig): CornerRadiusStyle
|
|
1139
|
+
createPaddingStyle(config: CreateStyleConfig): PaddingStyle
|
|
1140
|
+
createSpacingStyle(config: CreateStyleConfig): SpacingStyle
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* @deprecated please use createStrokeFillStyle instead
|
|
1144
|
+
*/
|
|
1145
|
+
createStrokeStyle(config: CreateStyleConfig): PaintStyle
|
|
1146
|
+
createStrokeFillStyle(config: CreateStyleConfig): PaintStyle
|
|
1147
|
+
createStrokeWidthStyle(config: CreateStyleConfig): StrokeWidthStyle
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* createFillStyle/createStrokeFillStyle 这些函数的聚合函数,传入不同的 type,返回对应的 style
|
|
1151
|
+
* @param layerId
|
|
1152
|
+
* @param type NodeStyleType
|
|
1153
|
+
* @param styleName
|
|
1154
|
+
* @param description optional
|
|
1155
|
+
*/
|
|
1156
|
+
createStyleByLayer<T extends NodeStyleType>(layerId: string, type: T, styleName: string, description?: string): NodeStyleReturnType<T>
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* 创建一个新的默认样式,不依赖某一个图层中的样式,
|
|
1160
|
+
* eg: createStyle('PAINT', 'New Style', 'This is a new style')
|
|
1161
|
+
* @param type styleType
|
|
1162
|
+
* @param styleName
|
|
1163
|
+
* @param description optional
|
|
1164
|
+
*/
|
|
1165
|
+
createStyle<T extends StyleType>(type: T, styleName: string, description?: string): StyleReturnType<T>
|
|
1166
|
+
/**
|
|
1167
|
+
* 创建某一个样式的副本
|
|
1168
|
+
* @param sourceStyleId 副本的源样式id
|
|
1169
|
+
* @param type
|
|
1170
|
+
* @param styleName
|
|
1171
|
+
* @param description
|
|
1172
|
+
*/
|
|
1173
|
+
createStyleCopy<T extends StyleType = StyleType>(sourceStyleId: string, type: T, styleName?: string, description?: string): StyleReturnType<T>
|
|
1174
|
+
/**
|
|
1175
|
+
* 创建某一个样式引用
|
|
1176
|
+
* @param sourceStyleId 引用源样式id
|
|
1177
|
+
* @param type
|
|
1178
|
+
* @param styleName
|
|
1179
|
+
* @param description
|
|
1180
|
+
*/
|
|
1181
|
+
createStyleRef<T extends StyleType = StyleType>(sourceStyleId: string, type: T, styleName?: string, description?: string): StyleReturnType<T>
|
|
1113
1182
|
|
|
1114
1183
|
getLocalPaintStyles(): PaintStyle[]
|
|
1115
1184
|
getLocalEffectStyles(): EffectStyle[]
|
|
1116
1185
|
getLocalTextStyles(): TextStyle[]
|
|
1117
1186
|
getLocalGridStyles(): GridStyle[]
|
|
1187
|
+
getLocalStrokeWidthStyles(): StrokeWidthStyle[]
|
|
1188
|
+
getLocalCornerRadiusStyles(): CornerRadiusStyle[]
|
|
1189
|
+
getLocalPaddingStyles(): PaddingStyle[]
|
|
1190
|
+
getLocalSpacingStyles(): SpacingStyle[]
|
|
1118
1191
|
|
|
1119
1192
|
listAvailableFontsAsync(): Promise<Font[]>
|
|
1120
1193
|
loadFontAsync(fontName: FontName): Promise<boolean>
|
|
@@ -1135,6 +1208,9 @@ declare global {
|
|
|
1135
1208
|
|
|
1136
1209
|
hexToRGBA(hex: string): RGBA
|
|
1137
1210
|
RGBAToHex(rgba: RGBA): string
|
|
1211
|
+
|
|
1212
|
+
confirm: (message: string, options: [ConfirmAction, ...ConfirmAction[]]) => void
|
|
1213
|
+
prompt: (message: string, defaultValue: string, options: [PromptAction, ...PromptAction[]]) => void
|
|
1138
1214
|
}
|
|
1139
1215
|
|
|
1140
1216
|
interface User {
|
|
@@ -1256,19 +1332,23 @@ declare global {
|
|
|
1256
1332
|
description: string
|
|
1257
1333
|
documentationLinks: ReadonlyArray<DocumentationLink>
|
|
1258
1334
|
/**
|
|
1259
|
-
*
|
|
1260
|
-
|
|
1335
|
+
* @description 组件或者组件集的别名
|
|
1336
|
+
*/
|
|
1337
|
+
alias: string
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* @description 是否为团队库组件/样式
|
|
1341
|
+
*/
|
|
1261
1342
|
readonly isExternal: boolean
|
|
1262
1343
|
readonly ukey: string
|
|
1263
1344
|
readonly publishStatus: PublishStatus
|
|
1264
1345
|
}
|
|
1265
1346
|
|
|
1266
|
-
/// /////////////////////////////////////////////////////////////////////////////
|
|
1267
1347
|
// Styles
|
|
1348
|
+
type StyleType = 'PAINT' | 'TEXT' | 'EFFECT' | 'GRID' | 'STROKE_WIDTH' | 'CORNER_RADIUS' | 'PADDING' | 'SPACING'
|
|
1349
|
+
type NodeStyleType = 'fill' | 'strokeFill' | 'strokeWidth' | 'cornerRadius' | 'padding' | 'spacing'
|
|
1268
1350
|
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
interface BaseStyle extends Omit<PublishableMixin, 'documentationLinks'> {
|
|
1351
|
+
interface BaseStyle extends Omit<PublishableMixin, 'documentationLinks' | 'alias'> {
|
|
1272
1352
|
readonly id: string
|
|
1273
1353
|
readonly type: StyleType
|
|
1274
1354
|
name: string
|
|
@@ -1280,6 +1360,26 @@ declare global {
|
|
|
1280
1360
|
paints: ReadonlyArray<Paint>
|
|
1281
1361
|
}
|
|
1282
1362
|
|
|
1363
|
+
interface StrokeWidthStyle extends BaseStyle {
|
|
1364
|
+
type: 'STROKE_WIDTH'
|
|
1365
|
+
value: StrokeWidth
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
interface CornerRadiusStyle extends BaseStyle {
|
|
1369
|
+
type: 'CORNER_RADIUS'
|
|
1370
|
+
value: CornerRadius
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
interface PaddingStyle extends BaseStyle {
|
|
1374
|
+
type: 'PADDING'
|
|
1375
|
+
value: Padding
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
interface SpacingStyle extends BaseStyle {
|
|
1379
|
+
type: 'SPACING'
|
|
1380
|
+
value: Spacing
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1283
1383
|
interface NumValue {
|
|
1284
1384
|
value: number
|
|
1285
1385
|
unit: 'PIXELS' | 'PERCENT'
|
|
@@ -1291,6 +1391,8 @@ declare global {
|
|
|
1291
1391
|
textStyleId: string
|
|
1292
1392
|
textStyle: {
|
|
1293
1393
|
fontName: FontName
|
|
1394
|
+
localizedFontName: FontName
|
|
1395
|
+
referrer: FontReferrer
|
|
1294
1396
|
fontSize: number
|
|
1295
1397
|
letterSpacing: LetterSpacing
|
|
1296
1398
|
lineHeight: LineHeight
|
|
@@ -1379,6 +1481,8 @@ declare global {
|
|
|
1379
1481
|
readonly radius: number
|
|
1380
1482
|
readonly isVisible: boolean
|
|
1381
1483
|
readonly blendMode: BlendMode
|
|
1484
|
+
readonly showShadowBehindNode: boolean
|
|
1485
|
+
readonly isEffectShow: boolean
|
|
1382
1486
|
}
|
|
1383
1487
|
|
|
1384
1488
|
interface BlurEffect {
|
|
@@ -1459,6 +1563,24 @@ declare global {
|
|
|
1459
1563
|
|
|
1460
1564
|
type Paint = SolidPaint | GradientPaint | ImagePaint
|
|
1461
1565
|
|
|
1566
|
+
type CSSWidthSetter = number | [number, number] | [number, number, number] | [number, number, number, number]
|
|
1567
|
+
|
|
1568
|
+
interface StrokeWidth {
|
|
1569
|
+
width: CSSWidthSetter,
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
interface Padding {
|
|
1573
|
+
padding: CSSWidthSetter,
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
interface Spacing {
|
|
1577
|
+
spacing: CSSWidthSetter,
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
interface CornerRadius {
|
|
1581
|
+
cornerRadius: CSSWidthSetter,
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1462
1584
|
type WindingRule = 'Nonzero' | 'Evenodd'
|
|
1463
1585
|
|
|
1464
1586
|
// 待确定
|
|
@@ -1515,8 +1637,12 @@ declare global {
|
|
|
1515
1637
|
| 'PLUS_LIGHTER'
|
|
1516
1638
|
| 'PASS_THROUGH'
|
|
1517
1639
|
|
|
1640
|
+
type FontReferrer = 'team' | 'org' | 'local' | 'official'
|
|
1641
|
+
|
|
1518
1642
|
interface Font {
|
|
1519
1643
|
fontName: FontName
|
|
1644
|
+
localizedFontName: FontName
|
|
1645
|
+
referrer: FontReferrer
|
|
1520
1646
|
}
|
|
1521
1647
|
|
|
1522
1648
|
/// /////////////////////////////////////////////////////////////////////////////
|
|
@@ -1650,7 +1776,17 @@ declare global {
|
|
|
1650
1776
|
dashCap: DashCap
|
|
1651
1777
|
strokeDashes: ReadonlyArray<number>
|
|
1652
1778
|
fillStyleId: string
|
|
1779
|
+
/**
|
|
1780
|
+
* @deprecated please use strokePaintStyleId instead
|
|
1781
|
+
*/
|
|
1653
1782
|
strokeStyleId: string
|
|
1783
|
+
strokeFillStyleId: string
|
|
1784
|
+
strokeWidthStyleId: string
|
|
1785
|
+
borderStyleId: string
|
|
1786
|
+
paddingStyleId: string
|
|
1787
|
+
spacingStyleId: string
|
|
1788
|
+
cornerRadiusStyleId: string
|
|
1789
|
+
|
|
1654
1790
|
/**
|
|
1655
1791
|
* You have to ensure the layer has stroke before invoking this method.
|
|
1656
1792
|
* 在调用接口之前需要确保layer有描边.
|
|
@@ -2302,6 +2438,10 @@ declare global {
|
|
|
2302
2438
|
effects: ReadonlyArray<TeamLibraryStyle>
|
|
2303
2439
|
texts: ReadonlyArray<TeamLibraryStyle>
|
|
2304
2440
|
grids: ReadonlyArray<TeamLibraryStyle>
|
|
2441
|
+
strokeWidths: ReadonlyArray<TeamLibraryStyle>
|
|
2442
|
+
cornerRadiuses: ReadonlyArray<TeamLibraryStyle>
|
|
2443
|
+
paddings: ReadonlyArray<TeamLibraryStyle>
|
|
2444
|
+
spacings: ReadonlyArray<TeamLibraryStyle>
|
|
2305
2445
|
}
|
|
2306
2446
|
}>
|
|
2307
2447
|
|
|
@@ -2415,4 +2555,22 @@ declare global {
|
|
|
2415
2555
|
*/
|
|
2416
2556
|
getCodeByDSL(data: MGDSL.MGDSLData, type: MGDSL.Framework): Promise<CodeFile | null>;
|
|
2417
2557
|
}
|
|
2558
|
+
|
|
2559
|
+
type StyleReturnType<T extends StyleType> =
|
|
2560
|
+
T extends 'PAINT' ? PaintStyle :
|
|
2561
|
+
T extends 'TEXT' ? TextStyle :
|
|
2562
|
+
T extends 'EFFECT' ? EffectStyle :
|
|
2563
|
+
T extends 'GRID' ? GridStyle :
|
|
2564
|
+
T extends 'STROKE_WIDTH' ? StrokeWidthStyle :
|
|
2565
|
+
T extends 'CORNER_RADIUS' ? CornerRadiusStyle :
|
|
2566
|
+
T extends 'PADDING' ? PaddingStyle :
|
|
2567
|
+
T extends 'SPACING' ? SpacingStyle : never
|
|
2568
|
+
|
|
2569
|
+
type NodeStyleReturnType<T extends NodeStyleType> =
|
|
2570
|
+
T extends 'fill' ? PaintStyle :
|
|
2571
|
+
T extends 'strokeFill' ? PaintStyle :
|
|
2572
|
+
T extends 'strokeWidth' ? StrokeWidthStyle :
|
|
2573
|
+
T extends 'cornerRadius' ? CornerRadiusStyle :
|
|
2574
|
+
T extends 'padding' ? PaddingStyle :
|
|
2575
|
+
T extends 'spacing' ? SpacingStyle : never
|
|
2418
2576
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastergo/plugin-typings",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-beta.0",
|
|
4
4
|
"description": "MasterGo插件API声明文件",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"prepare": "husky install",
|
|
9
|
-
"dev": "
|
|
10
|
-
"build": "
|
|
9
|
+
"dev": "rollup -c --environment NODE_ENV=development",
|
|
10
|
+
"build": "rollup -c --environment NODE_ENV=production",
|
|
11
11
|
"release": "node scripts/release.js",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
12
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
13
|
+
"commit": "git-cz"
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"dist",
|
|
@@ -50,7 +49,12 @@
|
|
|
50
49
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
51
50
|
"semver": "^7.3.5",
|
|
52
51
|
"shelljs": "^0.8.5",
|
|
53
|
-
"typescript": "^4.4.3"
|
|
52
|
+
"typescript": "^4.4.3",
|
|
53
|
+
"@commitlint/cli": "^17.0.0",
|
|
54
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
55
|
+
"commitizen": "^4.2.4",
|
|
56
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
57
|
+
"csstype": "^3.1.3"
|
|
54
58
|
},
|
|
55
59
|
"lint-staged": {
|
|
56
60
|
"*.js": [
|
|
@@ -60,7 +64,9 @@
|
|
|
60
64
|
"prettier --parser=typescript --write"
|
|
61
65
|
]
|
|
62
66
|
},
|
|
63
|
-
"
|
|
64
|
-
"
|
|
67
|
+
"config": {
|
|
68
|
+
"commitizen": {
|
|
69
|
+
"path": "cz-conventional-changelog"
|
|
70
|
+
}
|
|
65
71
|
}
|
|
66
|
-
}
|
|
72
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,849 +0,0 @@
|
|
|
1
|
-
# [2.5.0](https://github.com/mastergo-design/plugin-typings/compare/v2.4.0...v2.5.0) (2024-07-08)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* 最大最小值 ([a0ca485](https://github.com/mastergo-design/plugin-typings/commit/a0ca485eac8d49061dcbb35ce93b75d8bf6e9558))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# [2.4.0](https://github.com/mastergo-design/plugin-typings/compare/v2.3.0...v2.4.0) (2024-04-25)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* 自动布局补充字段 ([495e3a8](https://github.com/mastergo-design/plugin-typings/commit/495e3a8c7f208b81fad659230a092acb93b65c30))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# [2.3.0](https://github.com/mastergo-design/plugin-typings/compare/v2.2.0...v2.3.0) (2024-01-31)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
* 团队库增加组件的cover和宽高 ([1eb2855](https://github.com/mastergo-design/plugin-typings/commit/1eb28555e1dd63b4c830f66ba7d21dfda471b613))
|
|
25
|
-
* 增加等比缩放系数 ([5afbaf4](https://github.com/mastergo-design/plugin-typings/commit/5afbaf45a9e587eb2a8c5b60fe4a5db111368746))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# [2.2.0](https://github.com/mastergo-design/plugin-typings/compare/v2.0.0...v2.2.0) (2023-11-22)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
* 文字分段样式增加fillStyleId ([f508d08](https://github.com/mastergo-design/plugin-typings/commit/f508d08096a16bce33c37d90f01cba13d0fe0dfe))
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [2.1.0](https://github.com/mastergo-design/plugin-typings/compare/v2.0.0...v2.1.0) (2023-10-12)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Features
|
|
42
|
-
|
|
43
|
-
* 更新pkg ([f708fc7](https://github.com/mastergo-design/plugin-typings/commit/f708fc79d7b590e8a79b3bcd6a064be4cb53ef1a))
|
|
44
|
-
* saveVersionHistoryAsync增加标题参数 ([1fef69d](https://github.com/mastergo-design/plugin-typings/commit/1fef69db64abe6f12e09a4996db31bb0db9f8353))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# [2.0.0](https://github.com/mastergo-design/plugin-typings/compare/v1.21.0...v2.0.0) (2023-09-25)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* 修改接口 ([50c9d6f](https://github.com/mastergo-design/plugin-typings/commit/50c9d6f1ad1f7290f62009f7c4f672b8f7f1ad81))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
* 插件API支持SECTION类型 ([ae02af9](https://github.com/mastergo-design/plugin-typings/commit/ae02af932b90ca770e343a5f1bad7abb48fe90df))
|
|
59
|
-
* 全局增加createSection的接口 ([da713b1](https://github.com/mastergo-design/plugin-typings/commit/da713b18c1994ecbe576c75a19e67ba7edda6e46))
|
|
60
|
-
* 新增组件集属性别名相关方法/画布在整个窗口中的位置 ([5b212c9](https://github.com/mastergo-design/plugin-typings/commit/5b212c943c7d0c2afb92fcad1433e70733fa43d2))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# [1.21.0](https://github.com/mastergo-design/plugin-typings/compare/v1.19.0...v1.21.0) (2023-07-06)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Bug Fixes
|
|
68
|
-
|
|
69
|
-
* 补充paint的name字段 ([217c68e](https://github.com/mastergo-design/plugin-typings/commit/217c68efdcd1a3e6d0d0d07c3fd024794563751b))
|
|
70
|
-
* opaque图层禁止修改相对矩阵 ([fb634b1](https://github.com/mastergo-design/plugin-typings/commit/fb634b1eb77d7df2f5d1eeb98bd53888586b0daa))
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Features
|
|
74
|
-
|
|
75
|
-
* 添加轮廓蒙层和是否可视属性,文本支持省略 ([89414ad](https://github.com/mastergo-design/plugin-typings/commit/89414ad67f398dd44055172b1d0f9ff47693b1d6))
|
|
76
|
-
* 增加pluginId ([321db49](https://github.com/mastergo-design/plugin-typings/commit/321db497ff6da8f2802bab2f5ea1c5e3f3a1fc76))
|
|
77
|
-
* document增加id ([d2bfdff](https://github.com/mastergo-design/plugin-typings/commit/d2bfdff8451eea4c09a757b6d01fec0c37f73e6f))
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# [1.20.0](https://github.com/mastergo-design/plugin-typings/compare/v1.19.0...v1.20.0) (2023-04-27)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### Bug Fixes
|
|
85
|
-
|
|
86
|
-
* 补充paint的name字段 ([217c68e](https://github.com/mastergo-design/plugin-typings/commit/217c68efdcd1a3e6d0d0d07c3fd024794563751b))
|
|
87
|
-
* opaque图层禁止修改相对矩阵 ([fb634b1](https://github.com/mastergo-design/plugin-typings/commit/fb634b1eb77d7df2f5d1eeb98bd53888586b0daa))
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### Features
|
|
91
|
-
|
|
92
|
-
* 添加轮廓蒙层和是否可视属性,文本支持省略 ([89414ad](https://github.com/mastergo-design/plugin-typings/commit/89414ad67f398dd44055172b1d0f9ff47693b1d6))
|
|
93
|
-
* 增加pluginId ([321db49](https://github.com/mastergo-design/plugin-typings/commit/321db497ff6da8f2802bab2f5ea1c5e3f3a1fc76))
|
|
94
|
-
* document增加id ([d2bfdff](https://github.com/mastergo-design/plugin-typings/commit/d2bfdff8451eea4c09a757b6d01fec0c37f73e6f))
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
# [1.19.0](https://github.com/mastergo-design/plugin-typings/compare/v1.18.0...v1.19.0) (2023-04-11)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Features
|
|
102
|
-
|
|
103
|
-
* 添加currentUser接口 ([ebc74c3](https://github.com/mastergo-design/plugin-typings/commit/ebc74c3f98f97cd0fb58867ceb05fb27767bc596))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
# [1.18.0](https://github.com/mastergo-design/plugin-typings/compare/v1.17.1...v1.18.0) (2023-04-06)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Features
|
|
111
|
-
|
|
112
|
-
* 容器图层增加expanded属性, 实例增加resetoverrides方法 ([a2d1bad](https://github.com/mastergo-design/plugin-typings/commit/a2d1bad715c5e6d3096c4c406ce73a1fc4f3b391))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
## [1.17.1](https://github.com/mastergo-design/plugin-typings/compare/v1.17.0...v1.17.1) (2023-03-30)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### Bug Fixes
|
|
120
|
-
|
|
121
|
-
* getSharedPluginDataKeys返回错误 ([cb9c3cd](https://github.com/mastergo-design/plugin-typings/commit/cb9c3cd15fede7584fe1b253b91fbc67bd1ed993))
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# [1.17.0](https://github.com/mastergo-design/plugin-typings/compare/v1.16.1...v1.17.0) (2023-03-30)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Bug Fixes
|
|
129
|
-
|
|
130
|
-
* 完善flatten返回值类型 ([687ff5d](https://github.com/mastergo-design/plugin-typings/commit/687ff5de547be6f6ccc6d2f9b5c50dcbb1c014c0))
|
|
131
|
-
* 修复布尔组的childrenMixin的错误 ([25c6588](https://github.com/mastergo-design/plugin-typings/commit/25c6588c0a774733770a4eced4887a6f55024832))
|
|
132
|
-
* 修复instance的swapComponent和detachInstance类型错误 ([c8aa208](https://github.com/mastergo-design/plugin-typings/commit/c8aa208700fc4f5323bffc41737199360ee13f6b))
|
|
133
|
-
* userenderBounds注释错误 ([caae3fb](https://github.com/mastergo-design/plugin-typings/commit/caae3fbd654bfc970cedabc62bc1b548a78419f5))
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### Features
|
|
137
|
-
|
|
138
|
-
* 实例切换首选项和公开嵌套实例 ([a821c55](https://github.com/mastergo-design/plugin-typings/commit/a821c55e7388286f9673da006659e51ea052883d))
|
|
139
|
-
* 移除group和布尔组的约束属性 ([a636dd4](https://github.com/mastergo-design/plugin-typings/commit/a636dd4d7fc2bb9ba1dff8550e5acef9401c4605))
|
|
140
|
-
|
|
141
|
-
## [1.16.2](https://github.com/mastergo-design/plugin-typings/compare/v1.16.1...v1.16.2) (2023-03-23)
|
|
142
|
-
### Bug Fixes
|
|
143
|
-
|
|
144
|
-
* 修复instance的swapComponent和detachInstance类型错误 ([c8aa208](https://github.com/mastergo-design/plugin-typings/commit/c8aa208700fc4f5323bffc41737199360ee13f6b))
|
|
145
|
-
|
|
146
|
-
## [1.16.1](https://github.com/mastergo-design/plugin-typings/compare/v1.16.0...v1.16.1) (2023-03-22)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Bug Fixes
|
|
150
|
-
|
|
151
|
-
* groupNode和booleanOperation移除frameContainerMixin ([de52f6c](https://github.com/mastergo-design/plugin-typings/commit/de52f6cbb991c812de6fe7579293b16e336bde20))
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
# [1.16.0](https://github.com/mastergo-design/plugin-typings/compare/v1.15.1...v1.16.0) (2023-03-21)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### Features
|
|
159
|
-
|
|
160
|
-
* 修改combineAsVariants类型 ([16c2cd0](https://github.com/mastergo-design/plugin-typings/commit/16c2cd0c18e1c570fb4ebe70385c287e61865119))
|
|
161
|
-
* 修改combineAsVariantstype ([bd59082](https://github.com/mastergo-design/plugin-typings/commit/bd590829eda21bbeef0bbc01b57b9f3a2a1dc296))
|
|
162
|
-
* combineAsVariants ([f683658](https://github.com/mastergo-design/plugin-typings/commit/f683658e452024849a4e190b3782fe45d78f7de1))
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
## [1.15.1](https://github.com/mastergo-design/plugin-typings/compare/v1.15.0...v1.15.1) (2023-03-16)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
### Bug Fixes
|
|
170
|
-
|
|
171
|
-
* 修复penNetwork错误类型 ([ea28765](https://github.com/mastergo-design/plugin-typings/commit/ea2876522eb76661e0cee898e97acee732081041))
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
# [1.15.0](https://github.com/mastergo-design/plugin-typings/compare/v1.14.0...v1.15.0) (2023-03-15)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### Features
|
|
179
|
-
|
|
180
|
-
* 添加notify方法参数, 以及关闭方法 ([ae12bba](https://github.com/mastergo-design/plugin-typings/commit/ae12bbafb0a00dc042911859b18fbdb2934ddbf4))
|
|
181
|
-
* SceneNodeMixin增加attachedConnectors ([62af223](https://github.com/mastergo-design/plugin-typings/commit/62af223ca0d88d16976c29a7516e7cb0244015ce))
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
# [1.14.0](https://github.com/mastergo-design/plugin-typings/compare/v1.13.0...v1.14.0) (2023-02-07)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Features
|
|
189
|
-
|
|
190
|
-
* 增加异步导出接口exportAsync ([5327398](https://github.com/mastergo-design/plugin-typings/commit/532739851e5e0cc82ac0acbdc7195f7a780b354e))
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
# [1.13.0](https://github.com/mastergo-design/plugin-typings/compare/v1.12.0...v1.13.0) (2023-01-12)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Bug Fixes
|
|
198
|
-
|
|
199
|
-
* 修复组件图层clone方法返回值类型错误问题 ([3558202](https://github.com/mastergo-design/plugin-typings/commit/35582022c3f5d201559efbbeb1e452d5838eef15))
|
|
200
|
-
* 修改错误componentPropertyReferences类型 ([dcdb0b8](https://github.com/mastergo-design/plugin-typings/commit/dcdb0b8a1fc22785c8bbf9add75b1a7b46215178))
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Features
|
|
204
|
-
|
|
205
|
-
* 补充组件属性类型 ([a58b2da](https://github.com/mastergo-design/plugin-typings/commit/a58b2da55d45c202ab4a593aa0aeb6d7e7feb844))
|
|
206
|
-
* 导出设置增加useRenderBounds, 增加不同类型区分导出数据 ([852044d](https://github.com/mastergo-design/plugin-typings/commit/852044dfd9047cec5f9e2414b0bf2455728b439f))
|
|
207
|
-
* 更改componentPropertyReferences类型 ([3e67ca1](https://github.com/mastergo-design/plugin-typings/commit/3e67ca1214cfee6838ab7188d40729d1154dbc46))
|
|
208
|
-
* 更换子组件props命名 ([76a1b75](https://github.com/mastergo-design/plugin-typings/commit/76a1b75469cb769fe86638f7d412442f23423849))
|
|
209
|
-
* 合并webp为image ([e4d1c13](https://github.com/mastergo-design/plugin-typings/commit/e4d1c133c566a2481799802cfb6991481e639cfa))
|
|
210
|
-
* 合并webp为image ([627bfa0](https://github.com/mastergo-design/plugin-typings/commit/627bfa04da410b661936c115b210a6431528cd77))
|
|
211
|
-
* 添加absoluteRenderBounds和absoluteBoundingBox接口 ([924b83a](https://github.com/mastergo-design/plugin-typings/commit/924b83a0d84896c05046bc83386570c039e502cc))
|
|
212
|
-
* 文字样式增加fontName ([8d72a18](https://github.com/mastergo-design/plugin-typings/commit/8d72a1849ef6666622a6efb403f4648ccaaa8c2a))
|
|
213
|
-
* 新增组件属性相关types ([a7f4e67](https://github.com/mastergo-design/plugin-typings/commit/a7f4e676f04f504d172402d74ccc8d5111867142))
|
|
214
|
-
* 修改absoluteRenderBounds和absoluteBoundingBox返回类型 ([b90dd96](https://github.com/mastergo-design/plugin-typings/commit/b90dd96c99e392ba9bbdb54260c13573dd02ba28))
|
|
215
|
-
* absoluteBoundingBox去除null返回值 ([7e903ef](https://github.com/mastergo-design/plugin-typings/commit/7e903ef72d059d0822ac6f1a6ad035e84392327d))
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
# [1.12.0](https://github.com/mastergo-design/plugin-typings/compare/v1.11.0...v1.12.0) (2022-12-20)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
### Features
|
|
223
|
-
|
|
224
|
-
* 类型优化,添加ui.viewport和ui.moveTo ([8fc66ea](https://github.com/mastergo-design/plugin-typings/commit/8fc66eaa0da1992256b90cc8ce9ad93f5fe53766))
|
|
225
|
-
* 修改ui可视属性字段名 ([6cd233d](https://github.com/mastergo-design/plugin-typings/commit/6cd233dc6fb3e8b310bfd4cfb3bdfee5a0c1142c))
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
# [1.11.0](https://github.com/mastergo-design/plugin-typings/compare/v1.10.2...v1.11.0) (2022-12-15)
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
### Bug Fixes
|
|
233
|
-
|
|
234
|
-
* 修复错误的parent类型 ([b92257d](https://github.com/mastergo-design/plugin-typings/commit/b92257db0b34b8689328a82f523183161cef71c2))
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
### Features
|
|
238
|
-
|
|
239
|
-
* 添加getNodeByPosition接口 ([9cda766](https://github.com/mastergo-design/plugin-typings/commit/9cda7668c19e07f2f4755c81464efa11a25a5ab9))
|
|
240
|
-
* 文字分段样式增加lineHeightByPx描述实际px行高字段 ([0cd8111](https://github.com/mastergo-design/plugin-typings/commit/0cd81114b45304f0363f6f05a4a0a84ea8a9208f))
|
|
241
|
-
* 修改返回值类型 ([eb71a36](https://github.com/mastergo-design/plugin-typings/commit/eb71a36444ff1c2f714d686ac7476579a4fe0a23))
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
## [1.10.2](https://github.com/mastergo-design/plugin-typings/compare/v1.10.0...v1.10.2) (2022-12-13)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
### Features
|
|
249
|
-
|
|
250
|
-
* 添加mg.mixed ([8196894](https://github.com/mastergo-design/plugin-typings/commit/8196894b5ad35214319dc311a52e1c441e36bc35))
|
|
251
|
-
* 废弃teamLibrary, 换成getTeamLibraryAsync([ffecaa](https://github.com/mastergo-design/plugin-typings/commit/ffecaaf8fae47530e75b818a7918716b4170a984))
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
# [1.10.0](https://github.com/mastergo-design/plugin-typings/compare/v1.9.0...v1.10.0) (2022-12-01)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
### Features
|
|
258
|
-
|
|
259
|
-
* 文字分段样式增加fontWeight字重字段 ([3619b51](https://github.com/mastergo-design/plugin-typings/commit/3619b518fcd8cbd137df5fa0387bc8162fb53940))
|
|
260
|
-
* 文字新增百分比行高 ([a560491](https://github.com/mastergo-design/plugin-typings/commit/a560491b9fb146184fdce13d48b6eb58be4b6949))
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
# [1.9.0](https://github.com/mastergo-design/plugin-typings/compare/v1.8.0...v1.9.0) (2022-11-24)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
### Bug Fixes
|
|
268
|
-
|
|
269
|
-
* 修复ComponentPropertyDefinitions类型不清晰的问题 ([dd8ad00](https://github.com/mastergo-design/plugin-typings/commit/dd8ad0049e2edfe48c18118991f15f0f97b90f87))
|
|
270
|
-
* 修复variantProperties类型不清晰问题 ([1da5b1d](https://github.com/mastergo-design/plugin-typings/commit/1da5b1dc57f3ad8b2116523e03e62165084d0453))
|
|
271
|
-
* 移除BooleanOperationNode, ComponentSetNode, InstanceNode无效的appendChild, insertChild方法 ([c3da0cd](https://github.com/mastergo-design/plugin-typings/commit/c3da0cdc00eb37728f816a05dbcd81fb4dd256b6))
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
### Features
|
|
275
|
-
|
|
276
|
-
* 添加flatten和rescale接口 ([dc87721](https://github.com/mastergo-design/plugin-typings/commit/dc87721478c725285e3e903beab045c6f175360c))
|
|
277
|
-
* 图层新增翻转接口/新增findAllWithCriteria接口/全局创建组件和创建容器方法新增可选参数 ([a318458](https://github.com/mastergo-design/plugin-typings/commit/a318458714cadf0e1c16613c73b3d77f866a3b70))
|
|
278
|
-
* 新增setRangeTextStyleId设置分段文字样式 ([7cd5e9c](https://github.com/mastergo-design/plugin-typings/commit/7cd5e9c59cc54a63f2c0a22cf992dcce5b2184ea))
|
|
279
|
-
* 与group等接口统一类型 ([4107784](https://github.com/mastergo-design/plugin-typings/commit/410778431defb243d3cc3a191d5fb9790f5ea26e))
|
|
280
|
-
* textNode增加setRangeFillStyleId ([f03314b](https://github.com/mastergo-design/plugin-typings/commit/f03314b1e32eb9c327b31ac487dbcb3148781da4))
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
# [1.8.0](https://github.com/mastergo-design/plugin-typings/compare/v1.7.1...v1.8.0) (2022-11-18)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Features
|
|
288
|
-
|
|
289
|
-
* 添加clientStorage的deleteAsync和keysAsync方法 ([481d020](https://github.com/mastergo-design/plugin-typings/commit/481d020c0d7816ebab85290b5b36437474f30761))
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
## [1.7.1](https://github.com/mastergo-design/plugin-typings/compare/v1.7.0...v1.7.1) (2022-11-16)
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
# [1.7.0](https://github.com/mastergo-design/plugin-typings/compare/v1.6.1...v1.7.0) (2022-11-11)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
### Bug Fixes
|
|
301
|
-
|
|
302
|
-
* 删除PageNode不存在的pluginData相关接口 ([6bf26d0](https://github.com/mastergo-design/plugin-typings/commit/6bf26d0957859516e02b3a49b4ebae42fe2810f8))
|
|
303
|
-
* 修复Document findAll和findOne入参出参类型错误问题 ([4576d99](https://github.com/mastergo-design/plugin-typings/commit/4576d998fa9f2c65cd37587ec3f2ef11e1c23654))
|
|
304
|
-
* 修复DocumentNode类型错误问题 ([b34511e](https://github.com/mastergo-design/plugin-typings/commit/b34511ed489d9e20b78b6bc25de9d14f126b5ea6))
|
|
305
|
-
* 修复export接口返回类型错误问题 ([8760817](https://github.com/mastergo-design/plugin-typings/commit/87608176944225bc69e27587772b42bbde2ca246))
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
### Features
|
|
309
|
-
|
|
310
|
-
* 添加ShowUIOptions.x, ShowUIOption.y ([298e252](https://github.com/mastergo-design/plugin-typings/commit/298e252bfc655245d6829d7598dd54f8d52e92dd))
|
|
311
|
-
* 新增teamLibrary, importComponentByKeyAsync, importComponentSetByKeyAsync, importStyleByKeyAsync等团队库接口 ([8a59a5c](https://github.com/mastergo-design/plugin-typings/commit/8a59a5cc5991fe6b2e0a7b4626d355fc90070135))
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
# 1.6.1 (2022-11-09)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
### Features
|
|
319
|
-
|
|
320
|
-
* viewport增加rulerVisible控制标识显示和layoutGridVisible控制布局网格展示
|
|
321
|
-
增加resizeToFit()让容器图层缩放到和内容尺寸一致
|
|
322
|
-
增加文字列表样式listStyle ([2d22357](https://github.com/mastergo-design/plugin-typings/commit/2d22357015b51c5f80efc33c8dcfbd32d1504cf2))
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
# [1.5.0] (2022-10-18)
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
### Features
|
|
330
|
-
|
|
331
|
-
* 添加command、run
|
|
332
|
-
|
|
333
|
-
# [1.4.0] (2022-10-13)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
### Features
|
|
337
|
-
|
|
338
|
-
* 调整changelog
|
|
339
|
-
* 连接线增加bound
|
|
340
|
-
* 限定master
|
|
341
|
-
* 修复loadFontAsync的返回类型错误问题
|
|
342
|
-
* 移除test
|
|
343
|
-
* 增加锁定比例字段
|
|
344
|
-
* 增加自动布局相关定义
|
|
345
|
-
* 增加ignore
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
# [1.3.0] (2022-09-30)
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
### Features
|
|
352
|
-
|
|
353
|
-
* 连接线增加bound
|
|
354
|
-
* 修复loadFontAsync的返回类型错误问题
|
|
355
|
-
* 增加锁定比例字段
|
|
356
|
-
* 增加自动布局相关定义
|
|
357
|
-
|
|
358
|
-
# [1.1.0] (2022-09-16)
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
### Bug Fixes
|
|
362
|
-
|
|
363
|
-
* 限制连接线的strokeAlign为center
|
|
364
|
-
* 修复connector的strokeAlign可写的bug
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
### Features
|
|
368
|
-
|
|
369
|
-
* 添加textcase类型
|
|
370
|
-
* 完善连接点类型
|
|
371
|
-
* 移除超链接,等待接入新版
|
|
372
|
-
* 移除createText参数
|
|
373
|
-
* 增加connector类型typings
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
# [1.0.0] (2022-09-02)
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
### Bug Fixes
|
|
381
|
-
|
|
382
|
-
* 修复strokeStyle type错误问题
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
### Features
|
|
386
|
-
|
|
387
|
-
* 补充lineNode strokeCap
|
|
388
|
-
* 补充scaleMode
|
|
389
|
-
* 更新package设置及readme
|
|
390
|
-
* 整理npm包,移除工具函数
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
# [1.0.0] (2022-09-02)
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
### Bug Fixes
|
|
398
|
-
|
|
399
|
-
* 修复strokeStyle type错误问题
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
### Features
|
|
403
|
-
|
|
404
|
-
* 补充lineNode strokeCap
|
|
405
|
-
* 补充scaleMode
|
|
406
|
-
* 更新package设置及readme
|
|
407
|
-
* 整理npm包,移除工具函数
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
# [1.0.0] (2022-09-02)
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
### Bug Fixes
|
|
415
|
-
|
|
416
|
-
* 修复strokeStyle type错误问题
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
### Features
|
|
420
|
-
|
|
421
|
-
* 补充lineNode strokeCap
|
|
422
|
-
* 补充scaleMode
|
|
423
|
-
* 更新package设置及readme
|
|
424
|
-
* 整理npm包,移除工具函数
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
# [1.1.0] (2022-09-02)
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
### Bug Fixes
|
|
432
|
-
|
|
433
|
-
* 修复strokeStyle type错误问题
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
### Features
|
|
437
|
-
|
|
438
|
-
* 补充lineNode strokeCap
|
|
439
|
-
* 补充scaleMode
|
|
440
|
-
* 更新package设置及readme
|
|
441
|
-
* 整理npm包,移除工具函数
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
# [0.4.0] (2022-07-22)
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
### Bug Fixes
|
|
449
|
-
|
|
450
|
-
* 修复booleanoperation的type错误
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
### Features
|
|
454
|
-
|
|
455
|
-
* 添加单边描边类型
|
|
456
|
-
* 增加获取自定义样式列表接口
|
|
457
|
-
* 增加document name 属性
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
## [0.3.1] (2022-07-08)
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
# [0.3.0] (2022-07-08)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
# [0.3.0] (2022-07-08)
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
# [0.2.0] (2022-07-01)
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
# [0.27.0] (2022-01-25)
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
### Features
|
|
481
|
-
|
|
482
|
-
* new mg api
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
## [0.26.1] (2021-12-23)
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
# [0.26.0] (2021-12-23)
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
### Features
|
|
494
|
-
|
|
495
|
-
* 添加颜色转换函数
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
## [0.25.1] (2021-12-23)
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
# [0.25.0] (2021-12-22)
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
### Features
|
|
507
|
-
|
|
508
|
-
* 添加 paint 工具函数
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
# [0.24.0] (2021-12-21)
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
### Features
|
|
516
|
-
|
|
517
|
-
* add useAbsoluteBounds for ExportSettings
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
## [0.23.1] (2021-12-21)
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
### Features
|
|
525
|
-
|
|
526
|
-
* add visible option for ShowUIOptions
|
|
527
|
-
* update
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
# [0.23.0] (2021-12-21)
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
### Features
|
|
535
|
-
|
|
536
|
-
* add relativeTransform
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
## [0.22.1] (2021-12-20)
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
# [0.22.0] (2021-11-30)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
### Bug Fixes
|
|
548
|
-
|
|
549
|
-
* change showUI interface
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
# [0.21.0] (2021-11-17)
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
### Features
|
|
557
|
-
|
|
558
|
-
* add text superlink interfacee
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
# [0.20.0] (2021-11-17)
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
### Bug Fixes
|
|
566
|
-
|
|
567
|
-
* fix notify
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
# [0.19.0] (2021-11-17)
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
### Bug Fixes
|
|
575
|
-
|
|
576
|
-
* fix notify interface
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
# [0.18.0] (2021-11-17)
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
### Bug Fixes
|
|
584
|
-
|
|
585
|
-
* remove useless imagePaint properties
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
# [0.17.0] (2021-11-17)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
### Features
|
|
593
|
-
|
|
594
|
-
* add image interface and createImage
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
# [0.16.0] (2021-11-09)
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
### Bug Fixes
|
|
602
|
-
|
|
603
|
-
* setRangeTextDecoration
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
# [0.15.0] (2021-11-09)
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
### Bug Fixes
|
|
611
|
-
|
|
612
|
-
* setRangeLineHeight
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
# [0.14.0] (2021-11-09)
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
### Bug Fixes
|
|
620
|
-
|
|
621
|
-
* lineheight
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
# [0.13.0] (2021-11-09)
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
### Bug Fixes
|
|
629
|
-
|
|
630
|
-
* range letterspacing
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
# [0.12.0] (2021-11-09)
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
### Bug Fixes
|
|
638
|
-
|
|
639
|
-
* text setRangeFont
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
### Features
|
|
643
|
-
|
|
644
|
-
* add removed
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
# [0.22.0] (2021-11-30)
|
|
649
|
-
|
|
650
|
-
### Bug Fixes
|
|
651
|
-
|
|
652
|
-
- change showUI interface
|
|
653
|
-
|
|
654
|
-
# [0.21.0] (2021-11-17)
|
|
655
|
-
|
|
656
|
-
### Features
|
|
657
|
-
|
|
658
|
-
- add text superlink interfacee
|
|
659
|
-
|
|
660
|
-
# [0.20.0] (2021-11-17)
|
|
661
|
-
|
|
662
|
-
### Bug Fixes
|
|
663
|
-
|
|
664
|
-
- fix notify
|
|
665
|
-
|
|
666
|
-
# [0.19.0] (2021-11-17)
|
|
667
|
-
|
|
668
|
-
### Bug Fixes
|
|
669
|
-
|
|
670
|
-
- fix notify interface
|
|
671
|
-
|
|
672
|
-
# [0.18.0] (2021-11-17)
|
|
673
|
-
|
|
674
|
-
### Bug Fixes
|
|
675
|
-
|
|
676
|
-
- remove useless imagePaint properties
|
|
677
|
-
|
|
678
|
-
# [0.17.0] (2021-11-17)
|
|
679
|
-
|
|
680
|
-
### Features
|
|
681
|
-
|
|
682
|
-
- add image interface and createImage
|
|
683
|
-
|
|
684
|
-
# [0.16.0] (2021-11-09)
|
|
685
|
-
|
|
686
|
-
### Bug Fixes
|
|
687
|
-
|
|
688
|
-
- setRangeTextDecoration
|
|
689
|
-
|
|
690
|
-
# [0.15.0] (2021-11-09)
|
|
691
|
-
|
|
692
|
-
### Bug Fixes
|
|
693
|
-
|
|
694
|
-
- setRangeLineHeight
|
|
695
|
-
|
|
696
|
-
# [0.14.0] (2021-11-09)
|
|
697
|
-
|
|
698
|
-
### Bug Fixes
|
|
699
|
-
|
|
700
|
-
- lineheight
|
|
701
|
-
|
|
702
|
-
# [0.13.0] (2021-11-09)
|
|
703
|
-
|
|
704
|
-
### Bug Fixes
|
|
705
|
-
|
|
706
|
-
- range letterspacing
|
|
707
|
-
|
|
708
|
-
# [0.12.0] (2021-11-09)
|
|
709
|
-
|
|
710
|
-
### Bug Fixes
|
|
711
|
-
|
|
712
|
-
- text setRangeFont
|
|
713
|
-
|
|
714
|
-
# [0.11.0] (2021-11-04)
|
|
715
|
-
|
|
716
|
-
### Features
|
|
717
|
-
|
|
718
|
-
- add removed
|
|
719
|
-
|
|
720
|
-
# [0.10.0] (2021-11-02)
|
|
721
|
-
|
|
722
|
-
## [0.9.1] (2021-10-28)
|
|
723
|
-
|
|
724
|
-
### Features
|
|
725
|
-
|
|
726
|
-
- 补充组件与实例相关接口
|
|
727
|
-
|
|
728
|
-
# [0.9.0] (2021-10-28)
|
|
729
|
-
|
|
730
|
-
### Features
|
|
731
|
-
|
|
732
|
-
- 文本节点相关接口类型
|
|
733
|
-
|
|
734
|
-
## [0.8.1] (2021-10-27)
|
|
735
|
-
|
|
736
|
-
### Features
|
|
737
|
-
|
|
738
|
-
- 字体加载 api
|
|
739
|
-
|
|
740
|
-
# [0.8.0] (2021-10-27)
|
|
741
|
-
|
|
742
|
-
### Features
|
|
743
|
-
|
|
744
|
-
- 添加 clone() 类型
|
|
745
|
-
|
|
746
|
-
## [0.7.1] (2021-10-26)
|
|
747
|
-
|
|
748
|
-
### Bug Fixes
|
|
749
|
-
|
|
750
|
-
- BlurEffect 增加 blendMode
|
|
751
|
-
|
|
752
|
-
# [0.7.0] (2021-10-26)
|
|
753
|
-
|
|
754
|
-
### Features
|
|
755
|
-
|
|
756
|
-
- 补充样式相关的 api
|
|
757
|
-
|
|
758
|
-
## [0.6.1] (2021-10-18)
|
|
759
|
-
|
|
760
|
-
### Features
|
|
761
|
-
|
|
762
|
-
- 支持 flexGrow 和 alignSelf
|
|
763
|
-
|
|
764
|
-
# [0.6.0] (2021-10-11)
|
|
765
|
-
|
|
766
|
-
### Features
|
|
767
|
-
|
|
768
|
-
- support ui.notify() & mastergo.saveVersionHistoryAsync
|
|
769
|
-
|
|
770
|
-
# [0.5.0] (2021-10-09)
|
|
771
|
-
|
|
772
|
-
### Features
|
|
773
|
-
|
|
774
|
-
- auto layout
|
|
775
|
-
|
|
776
|
-
## [0.4.9] (2021-09-28)
|
|
777
|
-
|
|
778
|
-
### Bug Fixes
|
|
779
|
-
|
|
780
|
-
- some tweak
|
|
781
|
-
|
|
782
|
-
## [0.4.8] (2021-09-26)
|
|
783
|
-
|
|
784
|
-
### Bug Fixes
|
|
785
|
-
|
|
786
|
-
- export typings
|
|
787
|
-
|
|
788
|
-
## [0.4.7] (2021-09-24)
|
|
789
|
-
|
|
790
|
-
### Bug Fixes
|
|
791
|
-
|
|
792
|
-
- rename bound to bounds
|
|
793
|
-
|
|
794
|
-
## [0.4.6] (2021-09-24)
|
|
795
|
-
|
|
796
|
-
### Bug Fixes
|
|
797
|
-
|
|
798
|
-
- the type of ui.onmessage
|
|
799
|
-
|
|
800
|
-
## [0.4.5] (2021-09-24)
|
|
801
|
-
|
|
802
|
-
### Bug Fixes
|
|
803
|
-
|
|
804
|
-
- tweak the type of ui.postMessage
|
|
805
|
-
|
|
806
|
-
## [0.4.4] (2021-09-23)
|
|
807
|
-
|
|
808
|
-
### Bug Fixes
|
|
809
|
-
|
|
810
|
-
- the off type
|
|
811
|
-
- types
|
|
812
|
-
|
|
813
|
-
## [0.4.3] (2021-09-23)
|
|
814
|
-
|
|
815
|
-
### Bug Fixes
|
|
816
|
-
|
|
817
|
-
- PageNode's children should be SceneNode
|
|
818
|
-
|
|
819
|
-
## [0.4.2] (2021-09-23)
|
|
820
|
-
|
|
821
|
-
### Bug Fixes
|
|
822
|
-
|
|
823
|
-
- tweak typings
|
|
824
|
-
|
|
825
|
-
## [0.4.1] (2021-09-22)
|
|
826
|
-
|
|
827
|
-
### Bug Fixes
|
|
828
|
-
|
|
829
|
-
- upgrade layout mixin
|
|
830
|
-
|
|
831
|
-
# [0.4.0] (2021-09-22)
|
|
832
|
-
|
|
833
|
-
### Features
|
|
834
|
-
|
|
835
|
-
- support children methods
|
|
836
|
-
|
|
837
|
-
# [0.3.0] (2021-09-17)
|
|
838
|
-
|
|
839
|
-
### Features
|
|
840
|
-
|
|
841
|
-
- support some methods
|
|
842
|
-
|
|
843
|
-
# [0.2.0] (2021-09-17)
|
|
844
|
-
|
|
845
|
-
### Bug Fixes
|
|
846
|
-
|
|
847
|
-
- concat dts
|
|
848
|
-
|
|
849
|
-
# 0.1.0 (2021-09-17)
|