@mastergo/plugin-typings 2.8.1-beta.0 → 2.8.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -11
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1113,6 +1113,8 @@ declare global {
1113
1113
  */
1114
1114
  readonly codegen?: CodegenAPI
1115
1115
 
1116
+ readonly mode?: "inspect" | "design" | "codegen" | "snippetgen"
1117
+
1116
1118
  closePlugin(): void
1117
1119
 
1118
1120
  on<T extends PluginEventType>(type: T, callback: MGEventCallbackMap[T]): void
@@ -1829,9 +1831,13 @@ declare global {
1829
1831
  }
1830
1832
 
1831
1833
  interface CornerMixin {
1832
- // 待确认
1833
1834
  cornerSmooth: number
1834
1835
  cornerRadius: number | PluginAPI['mixed']
1836
+
1837
+ topLeftRadius: number
1838
+ topRightRadius: number
1839
+ bottomLeftRadius: number
1840
+ bottomRightRadius: number
1835
1841
  }
1836
1842
 
1837
1843
  interface DefaultShapeMixin
@@ -1849,7 +1855,6 @@ declare global {
1849
1855
  ReactionMixin,
1850
1856
  SceneNodeMixin,
1851
1857
  ChildrenMixin,
1852
- RectangleCornerMixin,
1853
1858
  BlendMixin,
1854
1859
  CornerMixin,
1855
1860
  ConstraintMixin,
@@ -1914,13 +1919,6 @@ declare global {
1914
1919
 
1915
1920
  type OverflowDirection = "NONE" | "HORIZONTAL" | "VERTICAL" | "BOTH"
1916
1921
 
1917
- interface RectangleCornerMixin {
1918
- topLeftRadius: number
1919
- topRightRadius: number
1920
- bottomLeftRadius: number
1921
- bottomRightRadius: number
1922
- }
1923
-
1924
1922
  interface ReactionMixin {
1925
1923
  reactions: ReadonlyArray<Reaction>
1926
1924
  }
@@ -2023,8 +2021,7 @@ declare global {
2023
2021
  extends DefaultShapeMixin,
2024
2022
  ConstraintMixin,
2025
2023
  CornerMixin,
2026
- RectangleStrokeWeightMixin,
2027
- RectangleCornerMixin {
2024
+ RectangleStrokeWeightMixin {
2028
2025
  readonly type: 'RECTANGLE'
2029
2026
  clone(): RectangleNode
2030
2027
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "2.8.1-beta.0",
3
+ "version": "2.8.2",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",