@vvfx/sdk 0.0.0-alpha.43 → 0.0.0-alpha.45

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
@@ -568,6 +568,14 @@ type PageConfig$1 = {
568
568
  * @description 成组操作元素显隐
569
569
  */
570
570
  groupVisible: boolean;
571
+ /**
572
+ * @description 缩放最大值
573
+ */
574
+ maxZoom: number;
575
+ /**
576
+ * @description 缩放最小值
577
+ */
578
+ minZoom: number;
571
579
  };
572
580
  /**
573
581
  * @description 视频导出功能配置
@@ -719,6 +727,22 @@ type TransformGizmoConfig = {
719
727
  * @description 交互框旋转圆半径
720
728
  */
721
729
  rotationCircleSize: number;
730
+ /**
731
+ * @description 图片Logo地址
732
+ */
733
+ pictureLogoUrl: string;
734
+ /**
735
+ * @description
736
+ */
737
+ nullLogoUrl: string;
738
+ /**
739
+ * @description 大小文字颜色
740
+ */
741
+ sizeTextColor: number;
742
+ /**
743
+ * @description 名称文字颜色
744
+ */
745
+ nameTextColor: number;
722
746
  };
723
747
  /**
724
748
  * @description 图片裁切参数
@@ -1017,10 +1041,10 @@ declare class SDK {
1017
1041
  * @description 获取场景预览图
1018
1042
  * @returns 视图预览图
1019
1043
  */
1020
- getViewThumbnail(): {
1044
+ getViewThumbnail(): Promise<{
1021
1045
  id: number;
1022
- thumbnail: Promise<string | undefined>;
1023
- }[];
1046
+ thumbnail: string | undefined;
1047
+ }>[];
1024
1048
  /**
1025
1049
  * @description 获取视图JSON产物
1026
1050
  * @returns 当前所有视图JSON产物
@@ -1149,8 +1173,9 @@ declare class SDK {
1149
1173
  } | undefined;
1150
1174
  setExpandBox(min: Vector2, max: Vector2): Box2 | undefined;
1151
1175
  openMaskGizmo(brushSize: number): void;
1176
+ clearMaskGizmo(): void;
1152
1177
  closeMaskGizmo(): void;
1153
- getMask(): string | undefined;
1178
+ getMask(): string | null | undefined;
1154
1179
  openLoadingGizmo(id: string): void;
1155
1180
  closeLoadingGizmo(id: string): void;
1156
1181
  /**
@@ -1175,6 +1200,9 @@ declare class SDK {
1175
1200
  * @returns JSON数组
1176
1201
  */
1177
1202
  exportJSON(idInfo?: number | number[]): spec.JSONScene[];
1203
+ getViewBoxById(id: string): Box2;
1204
+ getViewItemById(id: string): ViewItem | undefined;
1205
+ getViewProperty(id: number): ViewProperty | undefined;
1178
1206
  }
1179
1207
 
1180
1208
  type SizeAdaptDirection = 'x' | 'y';
package/dist/index.d.ts CHANGED
@@ -568,6 +568,14 @@ type PageConfig$1 = {
568
568
  * @description 成组操作元素显隐
569
569
  */
570
570
  groupVisible: boolean;
571
+ /**
572
+ * @description 缩放最大值
573
+ */
574
+ maxZoom: number;
575
+ /**
576
+ * @description 缩放最小值
577
+ */
578
+ minZoom: number;
571
579
  };
572
580
  /**
573
581
  * @description 视频导出功能配置
@@ -719,6 +727,22 @@ type TransformGizmoConfig = {
719
727
  * @description 交互框旋转圆半径
720
728
  */
721
729
  rotationCircleSize: number;
730
+ /**
731
+ * @description 图片Logo地址
732
+ */
733
+ pictureLogoUrl: string;
734
+ /**
735
+ * @description
736
+ */
737
+ nullLogoUrl: string;
738
+ /**
739
+ * @description 大小文字颜色
740
+ */
741
+ sizeTextColor: number;
742
+ /**
743
+ * @description 名称文字颜色
744
+ */
745
+ nameTextColor: number;
722
746
  };
723
747
  /**
724
748
  * @description 图片裁切参数
@@ -1017,10 +1041,10 @@ declare class SDK {
1017
1041
  * @description 获取场景预览图
1018
1042
  * @returns 视图预览图
1019
1043
  */
1020
- getViewThumbnail(): {
1044
+ getViewThumbnail(): Promise<{
1021
1045
  id: number;
1022
- thumbnail: Promise<string | undefined>;
1023
- }[];
1046
+ thumbnail: string | undefined;
1047
+ }>[];
1024
1048
  /**
1025
1049
  * @description 获取视图JSON产物
1026
1050
  * @returns 当前所有视图JSON产物
@@ -1149,8 +1173,9 @@ declare class SDK {
1149
1173
  } | undefined;
1150
1174
  setExpandBox(min: Vector2, max: Vector2): Box2 | undefined;
1151
1175
  openMaskGizmo(brushSize: number): void;
1176
+ clearMaskGizmo(): void;
1152
1177
  closeMaskGizmo(): void;
1153
- getMask(): string | undefined;
1178
+ getMask(): string | null | undefined;
1154
1179
  openLoadingGizmo(id: string): void;
1155
1180
  closeLoadingGizmo(id: string): void;
1156
1181
  /**
@@ -1175,6 +1200,9 @@ declare class SDK {
1175
1200
  * @returns JSON数组
1176
1201
  */
1177
1202
  exportJSON(idInfo?: number | number[]): spec.JSONScene[];
1203
+ getViewBoxById(id: string): Box2;
1204
+ getViewItemById(id: string): ViewItem | undefined;
1205
+ getViewProperty(id: number): ViewProperty | undefined;
1178
1206
  }
1179
1207
 
1180
1208
  type SizeAdaptDirection = 'x' | 'y';