@mastergo/plugin-typings 1.20.0 → 1.21.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 +19 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -226,8 +226,12 @@ declare global {
|
|
|
226
226
|
onmessage: ((pluginMessage: any, origin: string) => void) | undefined
|
|
227
227
|
}
|
|
228
228
|
type PublishStatus = 'UNPUBLISHED' | 'CURRENT' | 'CHANGED'
|
|
229
|
+
interface DocumentationLink {
|
|
230
|
+
readonly uri: string
|
|
231
|
+
}
|
|
229
232
|
interface PublishableMixin {
|
|
230
233
|
description: string
|
|
234
|
+
documentationLinks: ReadonlyArray<DocumentationLink>
|
|
231
235
|
/**
|
|
232
236
|
* 是否为团队库组件/样式
|
|
233
237
|
*/
|
|
@@ -241,7 +245,7 @@ declare global {
|
|
|
241
245
|
|
|
242
246
|
type StyleType = 'PAINT' | 'TEXT' | 'EFFECT' | 'GRID'
|
|
243
247
|
|
|
244
|
-
interface BaseStyle extends
|
|
248
|
+
interface BaseStyle extends Omit<PublishableMixin, 'documentationLinks'> {
|
|
245
249
|
readonly id: string
|
|
246
250
|
readonly type: StyleType
|
|
247
251
|
name: string
|
|
@@ -404,15 +408,29 @@ declare global {
|
|
|
404
408
|
readonly name?: string
|
|
405
409
|
}
|
|
406
410
|
|
|
411
|
+
interface ImageFilters {
|
|
412
|
+
exposure?: number
|
|
413
|
+
contrast?: number
|
|
414
|
+
saturation?: number
|
|
415
|
+
temperature?: number
|
|
416
|
+
tint?: number
|
|
417
|
+
highlights?: number
|
|
418
|
+
shadows?: number
|
|
419
|
+
hue?: number
|
|
420
|
+
}
|
|
421
|
+
|
|
407
422
|
interface ImagePaint {
|
|
408
423
|
readonly type: 'IMAGE'
|
|
409
424
|
readonly imageRef: string
|
|
410
425
|
readonly scaleMode?: 'FILL' | 'TILE' | 'STRETCH' | 'FIT' | 'CROP'
|
|
426
|
+
readonly filters?: ImageFilters
|
|
411
427
|
|
|
412
428
|
readonly isVisible?: boolean
|
|
413
429
|
readonly alpha?: number
|
|
414
430
|
readonly blendMode?: BlendMode
|
|
415
431
|
readonly name?: string
|
|
432
|
+
readonly ratio?: number
|
|
433
|
+
readonly rotation?: number
|
|
416
434
|
}
|
|
417
435
|
|
|
418
436
|
type Paint = SolidPaint | GradientPaint | ImagePaint
|