@vvfx/sdk 0.0.0-alpha.87 → 0.0.0-alpha.89

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
@@ -797,6 +797,10 @@ type TransformGizmoConfig = {
797
797
  * @description 名称文字颜色
798
798
  */
799
799
  nameTextColor: number;
800
+ /**
801
+ * @description 选中信息展示
802
+ */
803
+ infoShowEnabled: boolean;
800
804
  };
801
805
  /**
802
806
  * @description 图片裁切参数
@@ -1437,7 +1441,7 @@ declare class SDK {
1437
1441
  * @param children 子元素ID
1438
1442
  */
1439
1443
  groupItems(nullInfo: NullCreateInfo, scene?: spec.JSONScene): string | undefined;
1440
- addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<void>;
1444
+ addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<string | undefined>;
1441
1445
  deleteItems(idInfo: string | string[]): void;
1442
1446
  getItemCreateInfo(idInfo: string | string[]): ItemCreateInfo[];
1443
1447
  createScreenShotSceneByIds(idInfo: string | string[], time?: number): Promise<string | undefined>;
@@ -1493,10 +1497,12 @@ declare class SDK {
1493
1497
  getViewBoxByBox(box: Box2): Box2;
1494
1498
  openSpriteTextEditGizmo(initParam: SpriteTextInitParam[]): void;
1495
1499
  closeSpriteTextEditGizmo(): void;
1496
- changeSpriteTextSelectedIndex(id: string, index: number): void;
1497
- changeSpriteTextSelectedText(id: string, index: number, text: string): void;
1500
+ setSpriteTextSelectedIndex(id: string, index: number): void;
1501
+ setSpriteTextSelectedText(id: string, index: number, text: string): void;
1498
1502
  getBoundingBoxByItemCreateInfo(createInfo: ItemCreateInfo): Box2;
1499
1503
  getBoundingBoxByItemCreateInfos(createInfos: ItemCreateInfo[]): Box2;
1504
+ setSpriteTextChangedState(id: string, index: number, hasChanged: boolean): void;
1505
+ setSpriteTextEditState(id: string, index: number, isEditing: boolean): void;
1500
1506
  }
1501
1507
 
1502
1508
  type SizeAdaptDirection = 'x' | 'y';
@@ -2079,4 +2085,4 @@ type ViewportFitShiftParam = {
2079
2085
  bottom?: number;
2080
2086
  };
2081
2087
 
2082
- export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, type GizmoType, type ItemCreateInfo, ItemOrderAction, type NullCreateInfo, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, type SpriteFormProperty, type TextCreateInfo, type TextFormProperty, type UpdateOperation, Vector2, type ViewItem, type ViewItemTypedProperty, type ViewParam, type ViewProperty };
2088
+ export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, type GizmoType, type ItemCreateInfo, ItemOrderAction, type NullCreateInfo, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, type SpriteFormProperty, type TextCreateInfo, type TextFormProperty, type UpdateOperation, Vector2, type VideoCreateInfo, type ViewItem, type ViewItemTypedProperty, type ViewParam, type ViewProperty };
package/dist/index.d.ts CHANGED
@@ -797,6 +797,10 @@ type TransformGizmoConfig = {
797
797
  * @description 名称文字颜色
798
798
  */
799
799
  nameTextColor: number;
800
+ /**
801
+ * @description 选中信息展示
802
+ */
803
+ infoShowEnabled: boolean;
800
804
  };
801
805
  /**
802
806
  * @description 图片裁切参数
@@ -1437,7 +1441,7 @@ declare class SDK {
1437
1441
  * @param children 子元素ID
1438
1442
  */
1439
1443
  groupItems(nullInfo: NullCreateInfo, scene?: spec.JSONScene): string | undefined;
1440
- addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<void>;
1444
+ addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<string | undefined>;
1441
1445
  deleteItems(idInfo: string | string[]): void;
1442
1446
  getItemCreateInfo(idInfo: string | string[]): ItemCreateInfo[];
1443
1447
  createScreenShotSceneByIds(idInfo: string | string[], time?: number): Promise<string | undefined>;
@@ -1493,10 +1497,12 @@ declare class SDK {
1493
1497
  getViewBoxByBox(box: Box2): Box2;
1494
1498
  openSpriteTextEditGizmo(initParam: SpriteTextInitParam[]): void;
1495
1499
  closeSpriteTextEditGizmo(): void;
1496
- changeSpriteTextSelectedIndex(id: string, index: number): void;
1497
- changeSpriteTextSelectedText(id: string, index: number, text: string): void;
1500
+ setSpriteTextSelectedIndex(id: string, index: number): void;
1501
+ setSpriteTextSelectedText(id: string, index: number, text: string): void;
1498
1502
  getBoundingBoxByItemCreateInfo(createInfo: ItemCreateInfo): Box2;
1499
1503
  getBoundingBoxByItemCreateInfos(createInfos: ItemCreateInfo[]): Box2;
1504
+ setSpriteTextChangedState(id: string, index: number, hasChanged: boolean): void;
1505
+ setSpriteTextEditState(id: string, index: number, isEditing: boolean): void;
1500
1506
  }
1501
1507
 
1502
1508
  type SizeAdaptDirection = 'x' | 'y';
@@ -2079,4 +2085,4 @@ type ViewportFitShiftParam = {
2079
2085
  bottom?: number;
2080
2086
  };
2081
2087
 
2082
- export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, type GizmoType, type ItemCreateInfo, ItemOrderAction, type NullCreateInfo, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, type SpriteFormProperty, type TextCreateInfo, type TextFormProperty, type UpdateOperation, Vector2, type ViewItem, type ViewItemTypedProperty, type ViewParam, type ViewProperty };
2088
+ export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, type GizmoType, type ItemCreateInfo, ItemOrderAction, type NullCreateInfo, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, type SpriteFormProperty, type TextCreateInfo, type TextFormProperty, type UpdateOperation, Vector2, type VideoCreateInfo, type ViewItem, type ViewItemTypedProperty, type ViewParam, type ViewProperty };