@mastergo/plugin-typings 1.7.2 → 1.8.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 ADDED
@@ -0,0 +1,566 @@
1
+ # [1.8.0](https://github.com/mastergo-design/plugin-typings/compare/v1.7.1...v1.8.0) (2022-11-18)
2
+
3
+
4
+ ### Features
5
+
6
+ * 添加clientStorage的deleteAsync和keysAsync方法 ([481d020](https://github.com/mastergo-design/plugin-typings/commit/481d020c0d7816ebab85290b5b36437474f30761))
7
+
8
+
9
+
10
+ ## [1.7.1](https://github.com/mastergo-design/plugin-typings/compare/v1.7.0...v1.7.1) (2022-11-16)
11
+
12
+
13
+
14
+ # [1.7.0](https://github.com/mastergo-design/plugin-typings/compare/v1.6.1...v1.7.0) (2022-11-11)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * 删除PageNode不存在的pluginData相关接口 ([6bf26d0](https://github.com/mastergo-design/plugin-typings/commit/6bf26d0957859516e02b3a49b4ebae42fe2810f8))
20
+ * 修复Document findAll和findOne入参出参类型错误问题 ([4576d99](https://github.com/mastergo-design/plugin-typings/commit/4576d998fa9f2c65cd37587ec3f2ef11e1c23654))
21
+ * 修复DocumentNode类型错误问题 ([b34511e](https://github.com/mastergo-design/plugin-typings/commit/b34511ed489d9e20b78b6bc25de9d14f126b5ea6))
22
+ * 修复export接口返回类型错误问题 ([8760817](https://github.com/mastergo-design/plugin-typings/commit/87608176944225bc69e27587772b42bbde2ca246))
23
+
24
+
25
+ ### Features
26
+
27
+ * 添加ShowUIOptions.x, ShowUIOption.y ([298e252](https://github.com/mastergo-design/plugin-typings/commit/298e252bfc655245d6829d7598dd54f8d52e92dd))
28
+ * 新增teamLibrary, importComponentByKeyAsync, importComponentSetByKeyAsync, importStyleByKeyAsync等团队库接口 ([8a59a5c](https://github.com/mastergo-design/plugin-typings/commit/8a59a5cc5991fe6b2e0a7b4626d355fc90070135))
29
+
30
+
31
+
32
+ # 1.6.1 (2022-11-09)
33
+
34
+
35
+ ### Features
36
+
37
+ * viewport增加rulerVisible控制标识显示和layoutGridVisible控制布局网格展示
38
+ 增加resizeToFit()让容器图层缩放到和内容尺寸一致
39
+ 增加文字列表样式listStyle ([2d22357](https://github.com/mastergo-design/plugin-typings/commit/2d22357015b51c5f80efc33c8dcfbd32d1504cf2))
40
+
41
+
42
+
43
+ # [1.5.0] (2022-10-18)
44
+
45
+
46
+ ### Features
47
+
48
+ * 添加command、run
49
+
50
+ # [1.4.0] (2022-10-13)
51
+
52
+
53
+ ### Features
54
+
55
+ * 调整changelog
56
+ * 连接线增加bound
57
+ * 限定master
58
+ * 修复loadFontAsync的返回类型错误问题
59
+ * 移除test
60
+ * 增加锁定比例字段
61
+ * 增加自动布局相关定义
62
+ * 增加ignore
63
+
64
+
65
+ # [1.3.0] (2022-09-30)
66
+
67
+
68
+ ### Features
69
+
70
+ * 连接线增加bound
71
+ * 修复loadFontAsync的返回类型错误问题
72
+ * 增加锁定比例字段
73
+ * 增加自动布局相关定义
74
+
75
+ # [1.1.0] (2022-09-16)
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * 限制连接线的strokeAlign为center
81
+ * 修复connector的strokeAlign可写的bug
82
+
83
+
84
+ ### Features
85
+
86
+ * 添加textcase类型
87
+ * 完善连接点类型
88
+ * 移除超链接,等待接入新版
89
+ * 移除createText参数
90
+ * 增加connector类型typings
91
+
92
+
93
+
94
+ # [1.0.0] (2022-09-02)
95
+
96
+
97
+ ### Bug Fixes
98
+
99
+ * 修复strokeStyle type错误问题
100
+
101
+
102
+ ### Features
103
+
104
+ * 补充lineNode strokeCap
105
+ * 补充scaleMode
106
+ * 更新package设置及readme
107
+ * 整理npm包,移除工具函数
108
+
109
+
110
+
111
+ # [1.0.0] (2022-09-02)
112
+
113
+
114
+ ### Bug Fixes
115
+
116
+ * 修复strokeStyle type错误问题
117
+
118
+
119
+ ### Features
120
+
121
+ * 补充lineNode strokeCap
122
+ * 补充scaleMode
123
+ * 更新package设置及readme
124
+ * 整理npm包,移除工具函数
125
+
126
+
127
+
128
+ # [1.0.0] (2022-09-02)
129
+
130
+
131
+ ### Bug Fixes
132
+
133
+ * 修复strokeStyle type错误问题
134
+
135
+
136
+ ### Features
137
+
138
+ * 补充lineNode strokeCap
139
+ * 补充scaleMode
140
+ * 更新package设置及readme
141
+ * 整理npm包,移除工具函数
142
+
143
+
144
+
145
+ # [1.1.0] (2022-09-02)
146
+
147
+
148
+ ### Bug Fixes
149
+
150
+ * 修复strokeStyle type错误问题
151
+
152
+
153
+ ### Features
154
+
155
+ * 补充lineNode strokeCap
156
+ * 补充scaleMode
157
+ * 更新package设置及readme
158
+ * 整理npm包,移除工具函数
159
+
160
+
161
+
162
+ # [0.4.0] (2022-07-22)
163
+
164
+
165
+ ### Bug Fixes
166
+
167
+ * 修复booleanoperation的type错误
168
+
169
+
170
+ ### Features
171
+
172
+ * 添加单边描边类型
173
+ * 增加获取自定义样式列表接口
174
+ * 增加document name 属性
175
+
176
+
177
+
178
+ ## [0.3.1] (2022-07-08)
179
+
180
+
181
+
182
+ # [0.3.0] (2022-07-08)
183
+
184
+
185
+
186
+ # [0.3.0] (2022-07-08)
187
+
188
+
189
+
190
+ # [0.2.0] (2022-07-01)
191
+
192
+
193
+
194
+ # [0.27.0] (2022-01-25)
195
+
196
+
197
+ ### Features
198
+
199
+ * new mg api
200
+
201
+
202
+
203
+ ## [0.26.1] (2021-12-23)
204
+
205
+
206
+
207
+ # [0.26.0] (2021-12-23)
208
+
209
+
210
+ ### Features
211
+
212
+ * 添加颜色转换函数
213
+
214
+
215
+
216
+ ## [0.25.1] (2021-12-23)
217
+
218
+
219
+
220
+ # [0.25.0] (2021-12-22)
221
+
222
+
223
+ ### Features
224
+
225
+ * 添加 paint 工具函数
226
+
227
+
228
+
229
+ # [0.24.0] (2021-12-21)
230
+
231
+
232
+ ### Features
233
+
234
+ * add useAbsoluteBounds for ExportSettings
235
+
236
+
237
+
238
+ ## [0.23.1] (2021-12-21)
239
+
240
+
241
+ ### Features
242
+
243
+ * add visible option for ShowUIOptions
244
+ * update
245
+
246
+
247
+
248
+ # [0.23.0] (2021-12-21)
249
+
250
+
251
+ ### Features
252
+
253
+ * add relativeTransform
254
+
255
+
256
+
257
+ ## [0.22.1] (2021-12-20)
258
+
259
+
260
+
261
+ # [0.22.0] (2021-11-30)
262
+
263
+
264
+ ### Bug Fixes
265
+
266
+ * change showUI interface
267
+
268
+
269
+
270
+ # [0.21.0] (2021-11-17)
271
+
272
+
273
+ ### Features
274
+
275
+ * add text superlink interfacee
276
+
277
+
278
+
279
+ # [0.20.0] (2021-11-17)
280
+
281
+
282
+ ### Bug Fixes
283
+
284
+ * fix notify
285
+
286
+
287
+
288
+ # [0.19.0] (2021-11-17)
289
+
290
+
291
+ ### Bug Fixes
292
+
293
+ * fix notify interface
294
+
295
+
296
+
297
+ # [0.18.0] (2021-11-17)
298
+
299
+
300
+ ### Bug Fixes
301
+
302
+ * remove useless imagePaint properties
303
+
304
+
305
+
306
+ # [0.17.0] (2021-11-17)
307
+
308
+
309
+ ### Features
310
+
311
+ * add image interface and createImage
312
+
313
+
314
+
315
+ # [0.16.0] (2021-11-09)
316
+
317
+
318
+ ### Bug Fixes
319
+
320
+ * setRangeTextDecoration
321
+
322
+
323
+
324
+ # [0.15.0] (2021-11-09)
325
+
326
+
327
+ ### Bug Fixes
328
+
329
+ * setRangeLineHeight
330
+
331
+
332
+
333
+ # [0.14.0] (2021-11-09)
334
+
335
+
336
+ ### Bug Fixes
337
+
338
+ * lineheight
339
+
340
+
341
+
342
+ # [0.13.0] (2021-11-09)
343
+
344
+
345
+ ### Bug Fixes
346
+
347
+ * range letterspacing
348
+
349
+
350
+
351
+ # [0.12.0] (2021-11-09)
352
+
353
+
354
+ ### Bug Fixes
355
+
356
+ * text setRangeFont
357
+
358
+
359
+ ### Features
360
+
361
+ * add removed
362
+
363
+
364
+
365
+ # [0.22.0] (2021-11-30)
366
+
367
+ ### Bug Fixes
368
+
369
+ - change showUI interface
370
+
371
+ # [0.21.0] (2021-11-17)
372
+
373
+ ### Features
374
+
375
+ - add text superlink interfacee
376
+
377
+ # [0.20.0] (2021-11-17)
378
+
379
+ ### Bug Fixes
380
+
381
+ - fix notify
382
+
383
+ # [0.19.0] (2021-11-17)
384
+
385
+ ### Bug Fixes
386
+
387
+ - fix notify interface
388
+
389
+ # [0.18.0] (2021-11-17)
390
+
391
+ ### Bug Fixes
392
+
393
+ - remove useless imagePaint properties
394
+
395
+ # [0.17.0] (2021-11-17)
396
+
397
+ ### Features
398
+
399
+ - add image interface and createImage
400
+
401
+ # [0.16.0] (2021-11-09)
402
+
403
+ ### Bug Fixes
404
+
405
+ - setRangeTextDecoration
406
+
407
+ # [0.15.0] (2021-11-09)
408
+
409
+ ### Bug Fixes
410
+
411
+ - setRangeLineHeight
412
+
413
+ # [0.14.0] (2021-11-09)
414
+
415
+ ### Bug Fixes
416
+
417
+ - lineheight
418
+
419
+ # [0.13.0] (2021-11-09)
420
+
421
+ ### Bug Fixes
422
+
423
+ - range letterspacing
424
+
425
+ # [0.12.0] (2021-11-09)
426
+
427
+ ### Bug Fixes
428
+
429
+ - text setRangeFont
430
+
431
+ # [0.11.0] (2021-11-04)
432
+
433
+ ### Features
434
+
435
+ - add removed
436
+
437
+ # [0.10.0] (2021-11-02)
438
+
439
+ ## [0.9.1] (2021-10-28)
440
+
441
+ ### Features
442
+
443
+ - 补充组件与实例相关接口
444
+
445
+ # [0.9.0] (2021-10-28)
446
+
447
+ ### Features
448
+
449
+ - 文本节点相关接口类型
450
+
451
+ ## [0.8.1] (2021-10-27)
452
+
453
+ ### Features
454
+
455
+ - 字体加载 api
456
+
457
+ # [0.8.0] (2021-10-27)
458
+
459
+ ### Features
460
+
461
+ - 添加 clone() 类型
462
+
463
+ ## [0.7.1] (2021-10-26)
464
+
465
+ ### Bug Fixes
466
+
467
+ - BlurEffect 增加 blendMode
468
+
469
+ # [0.7.0] (2021-10-26)
470
+
471
+ ### Features
472
+
473
+ - 补充样式相关的 api
474
+
475
+ ## [0.6.1] (2021-10-18)
476
+
477
+ ### Features
478
+
479
+ - 支持 flexGrow 和 alignSelf
480
+
481
+ # [0.6.0] (2021-10-11)
482
+
483
+ ### Features
484
+
485
+ - support ui.notify() & mastergo.saveVersionHistoryAsync
486
+
487
+ # [0.5.0] (2021-10-09)
488
+
489
+ ### Features
490
+
491
+ - auto layout
492
+
493
+ ## [0.4.9] (2021-09-28)
494
+
495
+ ### Bug Fixes
496
+
497
+ - some tweak
498
+
499
+ ## [0.4.8] (2021-09-26)
500
+
501
+ ### Bug Fixes
502
+
503
+ - export typings
504
+
505
+ ## [0.4.7] (2021-09-24)
506
+
507
+ ### Bug Fixes
508
+
509
+ - rename bound to bounds
510
+
511
+ ## [0.4.6] (2021-09-24)
512
+
513
+ ### Bug Fixes
514
+
515
+ - the type of ui.onmessage
516
+
517
+ ## [0.4.5] (2021-09-24)
518
+
519
+ ### Bug Fixes
520
+
521
+ - tweak the type of ui.postMessage
522
+
523
+ ## [0.4.4] (2021-09-23)
524
+
525
+ ### Bug Fixes
526
+
527
+ - the off type
528
+ - types
529
+
530
+ ## [0.4.3] (2021-09-23)
531
+
532
+ ### Bug Fixes
533
+
534
+ - PageNode's children should be SceneNode
535
+
536
+ ## [0.4.2] (2021-09-23)
537
+
538
+ ### Bug Fixes
539
+
540
+ - tweak typings
541
+
542
+ ## [0.4.1] (2021-09-22)
543
+
544
+ ### Bug Fixes
545
+
546
+ - upgrade layout mixin
547
+
548
+ # [0.4.0] (2021-09-22)
549
+
550
+ ### Features
551
+
552
+ - support children methods
553
+
554
+ # [0.3.0] (2021-09-17)
555
+
556
+ ### Features
557
+
558
+ - support some methods
559
+
560
+ # [0.2.0] (2021-09-17)
561
+
562
+ ### Bug Fixes
563
+
564
+ - concat dts
565
+
566
+ # 0.1.0 (2021-09-17)
package/dist/index.d.ts CHANGED
@@ -134,6 +134,8 @@ declare global {
134
134
  interface ClientStorageAPI {
135
135
  getAsync(key: string): Promise<any | undefined>
136
136
  setAsync(key: string, value: any): Promise<void>
137
+ deleteAsync(key: string): Promise<void>
138
+ keysAsync(): Promise<string[]>
137
139
  }
138
140
 
139
141
  type ShowUIOptions = {
@@ -295,7 +297,6 @@ declare global {
295
297
  readonly color: RGBA
296
298
  // Effect的 x, y;
297
299
  readonly offset: Vector
298
- // spread和radius待确定
299
300
  readonly spread: number
300
301
  readonly radius: number
301
302
  readonly isVisible: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",