@cesdk/engine 1.24.0-rc.0 → 1.25.0-rc.0
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/assets/core/{cesdk-v1.24.0-rc.0-6ZXHJSN6.wasm → cesdk-v1.25.0-rc.0-ACPUJKKJ.wasm} +0 -0
- package/assets/core/{worker-host-v1.24.0-rc.0-IISZWDHP.js → worker-host-v1.25.0-rc.0-HYFBE6IY.js} +1 -1
- package/index.d.ts +24 -5
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.24.0-rc.0-GD242ZBP.data → cesdk-v1.25.0-rc.0-GD242ZBP.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -3065,6 +3065,18 @@ export declare class EditorAPI {
|
|
|
3065
3065
|
* @returns A method to unsubscribe.
|
|
3066
3066
|
*/
|
|
3067
3067
|
onSettingsChanged: (callback: () => void) => (() => void);
|
|
3068
|
+
/**
|
|
3069
|
+
* Subscribe to changes to the editor role.
|
|
3070
|
+
*
|
|
3071
|
+
* This lets you react to changes in the role of the user and update engine
|
|
3072
|
+
* and editor settings in response.
|
|
3073
|
+
*
|
|
3074
|
+
* @param callback - This function will be called immediately after a role has
|
|
3075
|
+
* been set and the default settings for that role have been applied. This function
|
|
3076
|
+
* will also be called in case the role is set to the same value as before.
|
|
3077
|
+
* @returns A function for unsubscribing
|
|
3078
|
+
*/
|
|
3079
|
+
onRoleChanged: (callback: (role: RoleString) => void) => (() => void);
|
|
3068
3080
|
/**
|
|
3069
3081
|
* Set a boolean setting.
|
|
3070
3082
|
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
|
|
@@ -3166,7 +3178,7 @@ export declare class EditorAPI {
|
|
|
3166
3178
|
getSettingColorRGBA(keypath: SettingsColorRGBA | `ubq://${SettingsColorRGBA}`): RGBA;
|
|
3167
3179
|
/**
|
|
3168
3180
|
* Set an enum setting.
|
|
3169
|
-
* @param keypath - The settings keypath, e.g. `
|
|
3181
|
+
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
3170
3182
|
* @param value - The enum value as string.
|
|
3171
3183
|
*/
|
|
3172
3184
|
setSettingEnum<T extends keyof SettingsEnum>(keypath: T, value: SettingsEnum[T]): void;
|
|
@@ -3175,7 +3187,7 @@ export declare class EditorAPI {
|
|
|
3175
3187
|
|
|
3176
3188
|
/**
|
|
3177
3189
|
* Get an enum setting.
|
|
3178
|
-
* @param keypath - The settings keypath, e.g. `
|
|
3190
|
+
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
3179
3191
|
* @returns The value as string.
|
|
3180
3192
|
*/
|
|
3181
3193
|
getSettingEnum<T extends keyof SettingsEnum>(keypath: T): SettingsEnum[T];
|
|
@@ -3184,12 +3196,20 @@ export declare class EditorAPI {
|
|
|
3184
3196
|
|
|
3185
3197
|
/**
|
|
3186
3198
|
* Get the possible enum options for a given enum setting.
|
|
3187
|
-
* @param keypath - The settings keypath, e.g. `
|
|
3199
|
+
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
3188
3200
|
* @returns The possible enum options as strings.
|
|
3189
3201
|
*/
|
|
3190
3202
|
getSettingEnumOptions<T extends keyof SettingsEnum>(keypath: T): string[];
|
|
3191
3203
|
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
3192
3204
|
getSettingEnumOptions<T extends keyof SettingsEnum>(keypath: `ubq://${T}`): string[];
|
|
3205
|
+
/**
|
|
3206
|
+
* Set the role of the user and apply role-dependent defaults for scopes and settings
|
|
3207
|
+
*/
|
|
3208
|
+
setRole(role: RoleString): void;
|
|
3209
|
+
/**
|
|
3210
|
+
* Get the current role of the user
|
|
3211
|
+
*/
|
|
3212
|
+
getRole(): RoleString;
|
|
3193
3213
|
/**
|
|
3194
3214
|
* Returns a list of all the settings available.
|
|
3195
3215
|
* @returns A list of settings keypaths.
|
|
@@ -3197,7 +3217,7 @@ export declare class EditorAPI {
|
|
|
3197
3217
|
findAllSettings(): string[];
|
|
3198
3218
|
/**
|
|
3199
3219
|
* Returns the type of a setting.
|
|
3200
|
-
* @param keypath - The settings keypath, e.g. `
|
|
3220
|
+
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
3201
3221
|
* @returns The setting type.
|
|
3202
3222
|
*/
|
|
3203
3223
|
getSettingType(keypath: string): SettingType;
|
|
@@ -4074,7 +4094,6 @@ export declare type SettingsColorRGBA = SettingsColor;
|
|
|
4074
4094
|
|
|
4075
4095
|
/** @public */
|
|
4076
4096
|
export declare type SettingsEnum = {
|
|
4077
|
-
role: RoleString;
|
|
4078
4097
|
doubleClickSelectionMode: 'Direct' | 'Hierarchical';
|
|
4079
4098
|
'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
|
|
4080
4099
|
'touch/rotateAction': 'None' | 'Rotate';
|