@mastergo/plugin-typings 1.10.2 → 1.11.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 +16 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [1.11.0](https://github.com/mastergo-design/plugin-typings/compare/v1.10.2...v1.11.0) (2022-12-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 修复错误的parent类型 ([b92257d](https://github.com/mastergo-design/plugin-typings/commit/b92257db0b34b8689328a82f523183161cef71c2))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 添加getNodeByPosition接口 ([9cda766](https://github.com/mastergo-design/plugin-typings/commit/9cda7668c19e07f2f4755c81464efa11a25a5ab9))
|
|
12
|
+
* 文字分段样式增加lineHeightByPx描述实际px行高字段 ([0cd8111](https://github.com/mastergo-design/plugin-typings/commit/0cd81114b45304f0363f6f05a4a0a84ea8a9208f))
|
|
13
|
+
* 修改返回值类型 ([eb71a36](https://github.com/mastergo-design/plugin-typings/commit/eb71a36444ff1c2f714d686ac7476579a4fe0a23))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
1
17
|
## [1.10.2](https://github.com/mastergo-design/plugin-typings/compare/v1.10.0...v1.10.2) (2022-12-13)
|
|
2
18
|
|
|
3
19
|
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ declare global {
|
|
|
59
59
|
showUI(html: string, options?: ShowUIOptions): void
|
|
60
60
|
|
|
61
61
|
getNodeById(id: string): SceneNode | null
|
|
62
|
+
getNodeByPosition(position: {x: number, y: number}): SceneNode | null
|
|
62
63
|
createRectangle(): RectangleNode
|
|
63
64
|
createLine(): LineNode
|
|
64
65
|
createEllipse(): EllipseNode
|
|
@@ -231,6 +232,7 @@ declare global {
|
|
|
231
232
|
fontSize: number
|
|
232
233
|
letterSpacing: LetterSpacing
|
|
233
234
|
lineHeight: LineHeight
|
|
235
|
+
lineHeightByPx: number
|
|
234
236
|
textDecoration: TextDecoration
|
|
235
237
|
textCase: TextCase
|
|
236
238
|
fontWeight: number
|
|
@@ -445,7 +447,7 @@ declare global {
|
|
|
445
447
|
|
|
446
448
|
interface BaseNodeMixin {
|
|
447
449
|
readonly id: string
|
|
448
|
-
readonly parent: (BaseNode & ChildrenMixin) |
|
|
450
|
+
readonly parent: (BaseNode & ChildrenMixin) | null
|
|
449
451
|
name: string
|
|
450
452
|
removed: boolean
|
|
451
453
|
remove(): void
|