@vvfx/sdk 0.0.0-alpha.70 → 0.0.0-alpha.72

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.cts CHANGED
@@ -314,7 +314,7 @@ declare class Box2 {
314
314
  * @param {Box2} box 二维包围盒
315
315
  * @returns {Box2} 求并结果
316
316
  */
317
- union(box: Box2): this;
317
+ union(target: Box2 | Vector2): this;
318
318
  /**
319
319
  * 二维包围盒位移
320
320
  * @param {Vector2} offset 位移向量
@@ -539,7 +539,7 @@ type SDKMode = 'editor' | 'template';
539
539
  */
540
540
  type SDKConfig = {
541
541
  /**
542
- * @description SDK编辑模式 - 模板编辑 | 产物编辑
542
+ * @description SDK编辑模式 - 模板编辑模式 | 编辑器模式
543
543
  */
544
544
  mode: SDKMode;
545
545
  /**
@@ -1313,7 +1313,7 @@ declare class SDK {
1313
1313
  * @description 视图缩放函数
1314
1314
  * @param shiftParam 视图偏移值
1315
1315
  */
1316
- viewportFit(shiftParam?: ViewportFitShiftParam): void;
1316
+ viewportFit(shiftParam?: ViewportFitShiftParam, box?: Box2): void;
1317
1317
  /**
1318
1318
  * @description 获取元素包围盒
1319
1319
  * @param idInfo 元素Id
@@ -1328,6 +1328,7 @@ declare class SDK {
1328
1328
  */
1329
1329
  setItemFontFamily(id: string, fontFamilyName: string, url: string): Promise<void>;
1330
1330
  createSceneByCreateInfos(createInfos: ItemCreateInfo[], sceneInfo: SceneCreaetInfo): spec.JSONScene;
1331
+ changeItemPropertyByCreateInfo(createInfo: ItemCreateInfo | ItemCreateInfo[]): void;
1331
1332
  }
1332
1333
 
1333
1334
  type SizeAdaptDirection = 'x' | 'y';
@@ -1354,6 +1355,10 @@ type TextFormProperty = BaseFormProperty & {
1354
1355
  lineHeight: number;
1355
1356
  outlineColor?: spec.vec4;
1356
1357
  outlineWidth?: number;
1358
+ /**
1359
+ * @description 描边开关
1360
+ */
1361
+ outlineEnabled?: boolean;
1357
1362
  };
1358
1363
  /**
1359
1364
  * @description 页面表单类型和属性引用
@@ -1798,6 +1803,10 @@ type TextCreateInfo = {
1798
1803
  * @description 描边宽度
1799
1804
  */
1800
1805
  outlineWidth?: number;
1806
+ /**
1807
+ * @description 描边开关
1808
+ */
1809
+ outlineEnabled?: boolean;
1801
1810
  /**
1802
1811
  * @description 字体文件地址
1803
1812
  */
package/dist/index.d.ts CHANGED
@@ -314,7 +314,7 @@ declare class Box2 {
314
314
  * @param {Box2} box 二维包围盒
315
315
  * @returns {Box2} 求并结果
316
316
  */
317
- union(box: Box2): this;
317
+ union(target: Box2 | Vector2): this;
318
318
  /**
319
319
  * 二维包围盒位移
320
320
  * @param {Vector2} offset 位移向量
@@ -539,7 +539,7 @@ type SDKMode = 'editor' | 'template';
539
539
  */
540
540
  type SDKConfig = {
541
541
  /**
542
- * @description SDK编辑模式 - 模板编辑 | 产物编辑
542
+ * @description SDK编辑模式 - 模板编辑模式 | 编辑器模式
543
543
  */
544
544
  mode: SDKMode;
545
545
  /**
@@ -1313,7 +1313,7 @@ declare class SDK {
1313
1313
  * @description 视图缩放函数
1314
1314
  * @param shiftParam 视图偏移值
1315
1315
  */
1316
- viewportFit(shiftParam?: ViewportFitShiftParam): void;
1316
+ viewportFit(shiftParam?: ViewportFitShiftParam, box?: Box2): void;
1317
1317
  /**
1318
1318
  * @description 获取元素包围盒
1319
1319
  * @param idInfo 元素Id
@@ -1328,6 +1328,7 @@ declare class SDK {
1328
1328
  */
1329
1329
  setItemFontFamily(id: string, fontFamilyName: string, url: string): Promise<void>;
1330
1330
  createSceneByCreateInfos(createInfos: ItemCreateInfo[], sceneInfo: SceneCreaetInfo): spec.JSONScene;
1331
+ changeItemPropertyByCreateInfo(createInfo: ItemCreateInfo | ItemCreateInfo[]): void;
1331
1332
  }
1332
1333
 
1333
1334
  type SizeAdaptDirection = 'x' | 'y';
@@ -1354,6 +1355,10 @@ type TextFormProperty = BaseFormProperty & {
1354
1355
  lineHeight: number;
1355
1356
  outlineColor?: spec.vec4;
1356
1357
  outlineWidth?: number;
1358
+ /**
1359
+ * @description 描边开关
1360
+ */
1361
+ outlineEnabled?: boolean;
1357
1362
  };
1358
1363
  /**
1359
1364
  * @description 页面表单类型和属性引用
@@ -1798,6 +1803,10 @@ type TextCreateInfo = {
1798
1803
  * @description 描边宽度
1799
1804
  */
1800
1805
  outlineWidth?: number;
1806
+ /**
1807
+ * @description 描边开关
1808
+ */
1809
+ outlineEnabled?: boolean;
1801
1810
  /**
1802
1811
  * @description 字体文件地址
1803
1812
  */