@cesdk/node 1.33.0 → 1.34.0-rc.1
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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -385,8 +385,6 @@ export declare interface AssetResult extends Asset {
|
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
declare type _AssetResult = AssetResult;
|
|
389
|
-
|
|
390
388
|
/** @public */
|
|
391
389
|
declare interface AssetResultCredits {
|
|
392
390
|
name: string;
|
|
@@ -467,8 +465,6 @@ export declare interface AssetSource {
|
|
|
467
465
|
getSupportedMimeTypes?(): string[] | undefined;
|
|
468
466
|
}
|
|
469
467
|
|
|
470
|
-
declare type _AssetSource = AssetSource;
|
|
471
|
-
|
|
472
468
|
/**
|
|
473
469
|
* Asset Color payload SpotColor representation
|
|
474
470
|
* @public
|
|
@@ -495,8 +491,6 @@ export declare interface AssetsQueryResult<T extends AssetResult = AssetResult>
|
|
|
495
491
|
total: number;
|
|
496
492
|
}
|
|
497
493
|
|
|
498
|
-
declare type _AssetsQueryResult = AssetsQueryResult;
|
|
499
|
-
|
|
500
494
|
/**
|
|
501
495
|
* Asset string property definition
|
|
502
496
|
* @public
|
|
@@ -2955,225 +2949,6 @@ export declare interface CompleteAssetResult extends AssetResult {
|
|
|
2955
2949
|
active: boolean;
|
|
2956
2950
|
}
|
|
2957
2951
|
|
|
2958
|
-
/**
|
|
2959
|
-
* @deprecated This namespace is not used anymore. Please refer to the
|
|
2960
|
-
* deprecation notices on its members to see where they have moved to.
|
|
2961
|
-
* @public
|
|
2962
|
-
*/
|
|
2963
|
-
export declare namespace ConfigTypes {
|
|
2964
|
-
/**
|
|
2965
|
-
* @deprecated This type definition has been removed.
|
|
2966
|
-
* Instead of `ConfigTypes.Color`, this can be imported directly as `PaletteColor`.
|
|
2967
|
-
*/
|
|
2968
|
-
export type Color = PaletteColor;
|
|
2969
|
-
/**
|
|
2970
|
-
* @deprecated This type definition has been moved
|
|
2971
|
-
* It can instead be imported directly as `HexColorString`
|
|
2972
|
-
*/
|
|
2973
|
-
export type HexColorString = _HexColorString;
|
|
2974
|
-
/**
|
|
2975
|
-
* @deprecated
|
|
2976
|
-
* This type definition has be removed. Please use the asset api at
|
|
2977
|
-
* `cesdk.engine.asset` instead of `config.assetSources`.
|
|
2978
|
-
*/
|
|
2979
|
-
export type AssetSources = {
|
|
2980
|
-
[id: string]: AssetSource;
|
|
2981
|
-
};
|
|
2982
|
-
/**
|
|
2983
|
-
* @deprecated
|
|
2984
|
-
* This type definition has been moved and can be imported directly as `AssetQueryData`.
|
|
2985
|
-
*/
|
|
2986
|
-
export type QueryData = AssetQueryData;
|
|
2987
|
-
/**
|
|
2988
|
-
* @deprecated
|
|
2989
|
-
* This type definition has been moved and can be imported directly as `AssetResult`.
|
|
2990
|
-
*/
|
|
2991
|
-
export type AssetResult = _AssetResult;
|
|
2992
|
-
/**
|
|
2993
|
-
* @deprecated
|
|
2994
|
-
* This type definition has been moved and can be imported directly as `AssetsQueryResult`.
|
|
2995
|
-
*/
|
|
2996
|
-
export type AssetsQueryResult = _AssetsQueryResult;
|
|
2997
|
-
/**
|
|
2998
|
-
* @deprecated
|
|
2999
|
-
* This type definition has been moved and can be imported directly as `AssetSource`,
|
|
3000
|
-
* when working with the asset api.
|
|
3001
|
-
* @public
|
|
3002
|
-
*/
|
|
3003
|
-
export type AssetSource = Omit<_AssetSource, 'id'>;
|
|
3004
|
-
/**
|
|
3005
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3006
|
-
*/
|
|
3007
|
-
export type Preset = {
|
|
3008
|
-
meta?: {
|
|
3009
|
-
default?: boolean;
|
|
3010
|
-
library?: string;
|
|
3011
|
-
categories?: string[];
|
|
3012
|
-
};
|
|
3013
|
-
};
|
|
3014
|
-
/**
|
|
3015
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3016
|
-
*/
|
|
3017
|
-
export type VariableDefinition = Preset & {
|
|
3018
|
-
value: string | number;
|
|
3019
|
-
};
|
|
3020
|
-
/**
|
|
3021
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3022
|
-
*/
|
|
3023
|
-
export type ColorDefinition = Preset & {
|
|
3024
|
-
value: Color;
|
|
3025
|
-
};
|
|
3026
|
-
/**
|
|
3027
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3028
|
-
*/
|
|
3029
|
-
export type ColorPaletteDefinition = Preset & {
|
|
3030
|
-
entries: Color[];
|
|
3031
|
-
};
|
|
3032
|
-
/**
|
|
3033
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3034
|
-
* In the CE.SDK, you can import `PageFormatDefinition` directly.
|
|
3035
|
-
*/
|
|
3036
|
-
export type PageFormatDefinition = Preset & {
|
|
3037
|
-
width: number;
|
|
3038
|
-
height: number;
|
|
3039
|
-
/** @deprecated This property is unused and will be removed */
|
|
3040
|
-
dpi?: number;
|
|
3041
|
-
/** @deprecated This property is unused and will be removed */
|
|
3042
|
-
bleedMargin?: number;
|
|
3043
|
-
unit: 'px' | 'mm' | 'in' | DesignUnit;
|
|
3044
|
-
fixedOrientation?: boolean;
|
|
3045
|
-
};
|
|
3046
|
-
/**
|
|
3047
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3048
|
-
*/
|
|
3049
|
-
export type TypefaceDefinition = _TypefaceDefinition;
|
|
3050
|
-
/**
|
|
3051
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3052
|
-
*/
|
|
3053
|
-
export type TemplateDefinition = Preset & {
|
|
3054
|
-
label: string;
|
|
3055
|
-
scene: string | URL | (() => Promise<string>);
|
|
3056
|
-
thumbnailURL?: string | URL;
|
|
3057
|
-
};
|
|
3058
|
-
/**
|
|
3059
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3060
|
-
* If you need to reference this type in your code,
|
|
3061
|
-
* use `Configuration['presets']` instead of `ConfigTypes.Presets`.
|
|
3062
|
-
*/
|
|
3063
|
-
export type Presets = {
|
|
3064
|
-
/**
|
|
3065
|
-
* @deprecated The configuration option `presets.colors` does not exist anymore.
|
|
3066
|
-
*/
|
|
3067
|
-
colors?: {
|
|
3068
|
-
[id: string]: Color;
|
|
3069
|
-
};
|
|
3070
|
-
/**
|
|
3071
|
-
* @deprecated The configuration option `presets.typefaces` does not exist anymore.
|
|
3072
|
-
* Custom typefaces should be defined as asset sources using
|
|
3073
|
-
* the `cesdk.engine.asset.addSource` or `cesdk.engine.asset.addLocalSource` instead.
|
|
3074
|
-
*/
|
|
3075
|
-
typefaces?: {
|
|
3076
|
-
[id: string]: _TypefaceDefinition;
|
|
3077
|
-
};
|
|
3078
|
-
/**
|
|
3079
|
-
* @deprecated The configuration option `presets.colorPalettes` does not exist anymore.
|
|
3080
|
-
*/
|
|
3081
|
-
colorPalettes?: {
|
|
3082
|
-
[id: string]: ColorPaletteDefinition;
|
|
3083
|
-
};
|
|
3084
|
-
/**
|
|
3085
|
-
* @deprecated The configuration option `presets.pageFormats` does not exist anymore.
|
|
3086
|
-
*/
|
|
3087
|
-
pageFormats?: {
|
|
3088
|
-
[id: string]: PageFormatDefinition;
|
|
3089
|
-
};
|
|
3090
|
-
/**
|
|
3091
|
-
* @deprecated The configuration option `presets.templates` does not exist anymore.
|
|
3092
|
-
* The templates should be defined as asset sources using
|
|
3093
|
-
* the `cesdk.engine.asset.addSource` or `cesdk.engine.asset.addLocalSource` instead.
|
|
3094
|
-
*/
|
|
3095
|
-
templates?: {
|
|
3096
|
-
[id: string]: TemplateDefinition;
|
|
3097
|
-
};
|
|
3098
|
-
};
|
|
3099
|
-
/**
|
|
3100
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3101
|
-
*/
|
|
3102
|
-
export type Variables = {
|
|
3103
|
-
[id: string]: VariableDefinition;
|
|
3104
|
-
};
|
|
3105
|
-
/**
|
|
3106
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3107
|
-
* The settings that were configured here can be set via the BlockApi on the
|
|
3108
|
-
* scene block:
|
|
3109
|
-
*
|
|
3110
|
-
* ```ts
|
|
3111
|
-
* engine.block.setInt(sceneId, 'scene/dpi', dpi);
|
|
3112
|
-
* engine.block.setInt(sceneId, 'scene/pixelScaleFactor', factor);
|
|
3113
|
-
* ```
|
|
3114
|
-
*/
|
|
3115
|
-
export type Scene = {
|
|
3116
|
-
/**
|
|
3117
|
-
* @deprecated Setting this value has no effect. You can change the dpi of the
|
|
3118
|
-
* current scene via `engine.block.setInt(sceneId, 'scene/dpi', dpi)`
|
|
3119
|
-
*/
|
|
3120
|
-
dpi: number;
|
|
3121
|
-
/**
|
|
3122
|
-
* @deprecated Setting this value has no effect. You can change the dpi of the
|
|
3123
|
-
* current scene via `engine.block.setInt(sceneId, 'scene/pixelScaleFactor', * factor)`
|
|
3124
|
-
*/
|
|
3125
|
-
pixelScaleFactor: number;
|
|
3126
|
-
};
|
|
3127
|
-
/**
|
|
3128
|
-
* @deprecated This type definition is not used anymore and will be removed.
|
|
3129
|
-
* The settings that were configured here can be set via the
|
|
3130
|
-
* following EditorAPI settings:
|
|
3131
|
-
* - `setSettingBool('page/title/show', show)`
|
|
3132
|
-
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
3133
|
-
* - `setSettingBool('page/dimOutOfPageAreas', dim)`
|
|
3134
|
-
* @public
|
|
3135
|
-
*/
|
|
3136
|
-
export type Page = {
|
|
3137
|
-
/**
|
|
3138
|
-
* @deprecated
|
|
3139
|
-
* The settings that were configured here can be set via the
|
|
3140
|
-
* following EditorAPI settings:
|
|
3141
|
-
* - `setSettingBool('page/title/show', show)`
|
|
3142
|
-
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
3143
|
-
*/
|
|
3144
|
-
title: {
|
|
3145
|
-
/**
|
|
3146
|
-
* @deprecated
|
|
3147
|
-
* Use the EditorAPI to set the title visibility:
|
|
3148
|
-
* - `setSettingBool('page/title/show', show)`
|
|
3149
|
-
*/
|
|
3150
|
-
show?: boolean;
|
|
3151
|
-
/**
|
|
3152
|
-
* @deprecated
|
|
3153
|
-
* Use the EditorAPI to set the title font:
|
|
3154
|
-
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
3155
|
-
*/
|
|
3156
|
-
fontFileUri?: string;
|
|
3157
|
-
};
|
|
3158
|
-
/**
|
|
3159
|
-
* @deprecated
|
|
3160
|
-
* Use the EditorAPI to control the opacity of out-of-page areas:
|
|
3161
|
-
* - `setSettingBool('page/dimOutOfPageAreas', dim)`
|
|
3162
|
-
*/
|
|
3163
|
-
dimOutOfPageAreas?: boolean;
|
|
3164
|
-
};
|
|
3165
|
-
/**
|
|
3166
|
-
* @deprecated This type definition has been removed
|
|
3167
|
-
* @public
|
|
3168
|
-
*/
|
|
3169
|
-
export type Callbacks = {
|
|
3170
|
-
/**
|
|
3171
|
-
* @deprecated The logger has moved from `config.callbacks.logger` to `config.logger`
|
|
3172
|
-
*/
|
|
3173
|
-
log?: Logger;
|
|
3174
|
-
};
|
|
3175
|
-
}
|
|
3176
|
-
|
|
3177
2952
|
/** @public */
|
|
3178
2953
|
export declare interface Configuration {
|
|
3179
2954
|
baseURL: string;
|
|
@@ -3189,11 +2964,16 @@ export declare interface Configuration {
|
|
|
3189
2964
|
/**
|
|
3190
2965
|
* @deprecated This config key is not used anymore and will be removed.
|
|
3191
2966
|
*/
|
|
3192
|
-
presets:
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
2967
|
+
presets: {
|
|
2968
|
+
/**
|
|
2969
|
+
* @deprecated The configuration option `presets.typefaces` does not exist anymore.
|
|
2970
|
+
* Custom typefaces should be defined as asset sources using
|
|
2971
|
+
* the `cesdk.engine.asset.addSource` or `cesdk.engine.asset.addLocalSource` instead.
|
|
2972
|
+
*/
|
|
2973
|
+
typefaces?: {
|
|
2974
|
+
[id: string]: TypefaceDefinition;
|
|
2975
|
+
};
|
|
2976
|
+
};
|
|
3197
2977
|
/**
|
|
3198
2978
|
* By default the engine tries to create a webgl2 context. If this fails it
|
|
3199
2979
|
* falls back to trying to create a webgl1 context. If this configuration
|
|
@@ -3209,45 +2989,6 @@ export declare interface Configuration {
|
|
|
3209
2989
|
*/
|
|
3210
2990
|
audioOutput?: 'auto' | 'none';
|
|
3211
2991
|
role?: RoleString;
|
|
3212
|
-
/**
|
|
3213
|
-
* @deprecated This config key is not used anymore.
|
|
3214
|
-
* The settings that were configured here can be set via the
|
|
3215
|
-
* following EditorAPI settings:
|
|
3216
|
-
* - `setSettingBool('page/title/show', show)`
|
|
3217
|
-
* - `setSettingBool('page/title/showPageTitleTemplate', show)`
|
|
3218
|
-
* - `setSettingBool('page/title/appendPageName', append)`
|
|
3219
|
-
* - `setSettingBool('page/title/showOnSinglePage', hide)`
|
|
3220
|
-
* - `setSettingString('page/title/separator', separator)`
|
|
3221
|
-
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
3222
|
-
* - `setSettingBool('page/dimOutOfPageAreas', dim)`
|
|
3223
|
-
*/
|
|
3224
|
-
page?: ConfigTypes.Page;
|
|
3225
|
-
/**
|
|
3226
|
-
* @deprecated This config key is not used anymore.
|
|
3227
|
-
* The settings that were configured here can be set via the BlockApi on the scene block
|
|
3228
|
-
* @public
|
|
3229
|
-
*/
|
|
3230
|
-
scene?: ConfigTypes.Scene;
|
|
3231
|
-
/**
|
|
3232
|
-
* @deprecated This config key is not used anymore.
|
|
3233
|
-
* Please use the asset api at `cesdk.engine.asset` instead of `config.assetSources`.
|
|
3234
|
-
*/
|
|
3235
|
-
assetSources?: ConfigTypes.AssetSources;
|
|
3236
|
-
/**
|
|
3237
|
-
* @deprecated This config key is not used anymore.
|
|
3238
|
-
* Please use the VariableAPI at `cesdk.engine.variable` instead of `config.variables`.
|
|
3239
|
-
*/
|
|
3240
|
-
variables?: ConfigTypes.Variables;
|
|
3241
|
-
/**
|
|
3242
|
-
* @deprecated This config key is not used anymore
|
|
3243
|
-
* The `config.callbacks.logger` configuration will be moved to `config.logger`
|
|
3244
|
-
*/
|
|
3245
|
-
callbacks?: {
|
|
3246
|
-
/**
|
|
3247
|
-
* @deprecated The `config.callbacks.logger` has moved to `config.logger`
|
|
3248
|
-
*/
|
|
3249
|
-
log?: Logger;
|
|
3250
|
-
};
|
|
3251
2992
|
}
|
|
3252
2993
|
|
|
3253
2994
|
/**
|
|
@@ -4082,8 +3823,6 @@ a: number
|
|
|
4082
3823
|
*/
|
|
4083
3824
|
export declare type HexColorString = string;
|
|
4084
3825
|
|
|
4085
|
-
declare type _HexColorString = HexColorString;
|
|
4086
|
-
|
|
4087
3826
|
/**
|
|
4088
3827
|
* A numerical identifier for a history stack
|
|
4089
3828
|
* @public
|
|
@@ -4545,7 +4284,7 @@ export declare type SceneMode = 'Design' | 'Video';
|
|
|
4545
4284
|
export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
4546
4285
|
|
|
4547
4286
|
/** @public */
|
|
4548
|
-
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'checkScopesInAPIs' | 'page/dimOutOfPageAreas' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
|
|
4287
|
+
export declare type SettingsBool = 'controlGizmo/blockScaleDownLimit' | 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'checkScopesInAPIs' | 'page/dimOutOfPageAreas' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
|
|
4549
4288
|
|
|
4550
4289
|
/** @public
|
|
4551
4290
|
*/
|
|
@@ -4670,7 +4409,11 @@ export declare interface Typeface {
|
|
|
4670
4409
|
*/
|
|
4671
4410
|
export declare type TypefaceDefinition = {
|
|
4672
4411
|
/** @deprecated The meta field is not used anymore */
|
|
4673
|
-
meta?:
|
|
4412
|
+
meta?: {
|
|
4413
|
+
default?: boolean;
|
|
4414
|
+
library?: string;
|
|
4415
|
+
categories?: string[];
|
|
4416
|
+
};
|
|
4674
4417
|
family: string;
|
|
4675
4418
|
fonts: {
|
|
4676
4419
|
fontURL: string;
|
|
@@ -4679,8 +4422,6 @@ export declare type TypefaceDefinition = {
|
|
|
4679
4422
|
}[];
|
|
4680
4423
|
};
|
|
4681
4424
|
|
|
4682
|
-
declare type _TypefaceDefinition = TypefaceDefinition;
|
|
4683
|
-
|
|
4684
4425
|
/**
|
|
4685
4426
|
* @public
|
|
4686
4427
|
*/
|