@vvfx/sdk 0.1.19-alpha.10 → 0.1.19-alpha.11
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.cjs +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1739,7 +1739,7 @@ type SpriteCreateInfo = {
|
|
|
1739
1739
|
};
|
|
1740
1740
|
};
|
|
1741
1741
|
/**
|
|
1742
|
-
* @description
|
|
1742
|
+
* @description 组 元素创建信息
|
|
1743
1743
|
*/
|
|
1744
1744
|
type GroupCreateInfo = {
|
|
1745
1745
|
type: SDKItemType.GROUP;
|
|
@@ -3571,6 +3571,13 @@ declare class SDK {
|
|
|
3571
3571
|
closeItemCreateGizmo(): void;
|
|
3572
3572
|
setItemName(id: string, name: string): void;
|
|
3573
3573
|
setSafeAreaPreviewVisible(id: number, type: 'url' | 'color', visible: boolean): void;
|
|
3574
|
+
/**
|
|
3575
|
+
* @description 修改画板元素大小
|
|
3576
|
+
* @param id 元素id
|
|
3577
|
+
* @param size 目标大小 [width, height]
|
|
3578
|
+
* @param translation 位置偏移补偿(可选,用于保持拖拽角点固定)
|
|
3579
|
+
*/
|
|
3580
|
+
resizeFrameItem(id: string, size: [number, number], translation?: [number, number]): void;
|
|
3574
3581
|
}
|
|
3575
3582
|
|
|
3576
3583
|
export { type ActiveData, BaseItem, type BaseItemProperty, type BaseItemPropertyKey, type BaseItemPropertyValueMap, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type FrameCreateInfo, FrameItem, type FrameItemOptions, type FrameItemProperty, FrameLayoutMode, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type ItemPropertyMap, type Operation, type PageData, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem, type SDKItemOptions, SDKItemType, type SDKOptions, type SetItemPropertyParam, type SetSingleItemMultiplePropertiesParam, type SetSingleItemSinglePropertyParam, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isFrameItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -1739,7 +1739,7 @@ type SpriteCreateInfo = {
|
|
|
1739
1739
|
};
|
|
1740
1740
|
};
|
|
1741
1741
|
/**
|
|
1742
|
-
* @description
|
|
1742
|
+
* @description 组 元素创建信息
|
|
1743
1743
|
*/
|
|
1744
1744
|
type GroupCreateInfo = {
|
|
1745
1745
|
type: SDKItemType.GROUP;
|
|
@@ -3571,6 +3571,13 @@ declare class SDK {
|
|
|
3571
3571
|
closeItemCreateGizmo(): void;
|
|
3572
3572
|
setItemName(id: string, name: string): void;
|
|
3573
3573
|
setSafeAreaPreviewVisible(id: number, type: 'url' | 'color', visible: boolean): void;
|
|
3574
|
+
/**
|
|
3575
|
+
* @description 修改画板元素大小
|
|
3576
|
+
* @param id 元素id
|
|
3577
|
+
* @param size 目标大小 [width, height]
|
|
3578
|
+
* @param translation 位置偏移补偿(可选,用于保持拖拽角点固定)
|
|
3579
|
+
*/
|
|
3580
|
+
resizeFrameItem(id: string, size: [number, number], translation?: [number, number]): void;
|
|
3574
3581
|
}
|
|
3575
3582
|
|
|
3576
3583
|
export { type ActiveData, BaseItem, type BaseItemProperty, type BaseItemPropertyKey, type BaseItemPropertyValueMap, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type FrameCreateInfo, FrameItem, type FrameItemOptions, type FrameItemProperty, FrameLayoutMode, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type ItemPropertyMap, type Operation, type PageData, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem, type SDKItemOptions, SDKItemType, type SDKOptions, type SetItemPropertyParam, type SetSingleItemMultiplePropertiesParam, type SetSingleItemSinglePropertyParam, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isFrameItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|