@vvfx/sdk 0.0.0-alpha.65 → 0.0.0-alpha.66
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 +23 -1
- package/dist/index.d.ts +23 -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
|
@@ -1257,8 +1257,9 @@ declare class SDK {
|
|
|
1257
1257
|
pageZoom(shift: number, center?: [number, number]): void;
|
|
1258
1258
|
setPictureCutGizmoLockScale(state: boolean): void;
|
|
1259
1259
|
setPictureExpandGizmoLockScale(state: boolean): void;
|
|
1260
|
-
viewportFit(): void;
|
|
1260
|
+
viewportFit(shiftParam?: ViewportFitShiftParam): void;
|
|
1261
1261
|
getItemBoxById(idInfo: string): Box2;
|
|
1262
|
+
setItemFontFamily(id: string, fontFamilyName: string, url: string): Promise<void>;
|
|
1262
1263
|
}
|
|
1263
1264
|
|
|
1264
1265
|
type SizeAdaptDirection = 'x' | 'y';
|
|
@@ -1741,5 +1742,26 @@ declare enum ItemOrderAction {
|
|
|
1741
1742
|
BringForward = 2,
|
|
1742
1743
|
SendBackward = 3
|
|
1743
1744
|
}
|
|
1745
|
+
/**
|
|
1746
|
+
* @description 视图自适应偏移参数
|
|
1747
|
+
*/
|
|
1748
|
+
type ViewportFitShiftParam = {
|
|
1749
|
+
/**
|
|
1750
|
+
* @description 左偏移
|
|
1751
|
+
*/
|
|
1752
|
+
left?: number;
|
|
1753
|
+
/**
|
|
1754
|
+
* @description 右偏移
|
|
1755
|
+
*/
|
|
1756
|
+
right?: number;
|
|
1757
|
+
/**
|
|
1758
|
+
* @description 上偏移
|
|
1759
|
+
*/
|
|
1760
|
+
top?: number;
|
|
1761
|
+
/**
|
|
1762
|
+
* @description 下偏移
|
|
1763
|
+
*/
|
|
1764
|
+
bottom?: number;
|
|
1765
|
+
};
|
|
1744
1766
|
|
|
1745
1767
|
export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1257,8 +1257,9 @@ declare class SDK {
|
|
|
1257
1257
|
pageZoom(shift: number, center?: [number, number]): void;
|
|
1258
1258
|
setPictureCutGizmoLockScale(state: boolean): void;
|
|
1259
1259
|
setPictureExpandGizmoLockScale(state: boolean): void;
|
|
1260
|
-
viewportFit(): void;
|
|
1260
|
+
viewportFit(shiftParam?: ViewportFitShiftParam): void;
|
|
1261
1261
|
getItemBoxById(idInfo: string): Box2;
|
|
1262
|
+
setItemFontFamily(id: string, fontFamilyName: string, url: string): Promise<void>;
|
|
1262
1263
|
}
|
|
1263
1264
|
|
|
1264
1265
|
type SizeAdaptDirection = 'x' | 'y';
|
|
@@ -1741,5 +1742,26 @@ declare enum ItemOrderAction {
|
|
|
1741
1742
|
BringForward = 2,
|
|
1742
1743
|
SendBackward = 3
|
|
1743
1744
|
}
|
|
1745
|
+
/**
|
|
1746
|
+
* @description 视图自适应偏移参数
|
|
1747
|
+
*/
|
|
1748
|
+
type ViewportFitShiftParam = {
|
|
1749
|
+
/**
|
|
1750
|
+
* @description 左偏移
|
|
1751
|
+
*/
|
|
1752
|
+
left?: number;
|
|
1753
|
+
/**
|
|
1754
|
+
* @description 右偏移
|
|
1755
|
+
*/
|
|
1756
|
+
right?: number;
|
|
1757
|
+
/**
|
|
1758
|
+
* @description 上偏移
|
|
1759
|
+
*/
|
|
1760
|
+
top?: number;
|
|
1761
|
+
/**
|
|
1762
|
+
* @description 下偏移
|
|
1763
|
+
*/
|
|
1764
|
+
bottom?: number;
|
|
1765
|
+
};
|
|
1744
1766
|
|
|
1745
1767
|
export { type ActiveData, type BaseFormProperty, Box2, type CreateOperation, type DeleteOperation, 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 };
|