@cesdk/engine 1.13.0-rc.1 → 1.13.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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="offscreencanvas" />
|
|
2
|
-
|
|
3
1
|
declare type ArbitraryString = string & {
|
|
4
2
|
arbitrary?: any;
|
|
5
3
|
};
|
|
@@ -238,6 +236,8 @@ export declare interface AssetResult extends Asset {
|
|
|
238
236
|
};
|
|
239
237
|
}
|
|
240
238
|
|
|
239
|
+
declare type _AssetResult = AssetResult;
|
|
240
|
+
|
|
241
241
|
/** @public */
|
|
242
242
|
declare interface AssetResultContext {
|
|
243
243
|
sourceId: string;
|
|
@@ -318,6 +318,8 @@ export declare interface AssetSource {
|
|
|
318
318
|
getSupportedMimeTypes?(): string[] | undefined;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
declare type _AssetSource = AssetSource;
|
|
322
|
+
|
|
321
323
|
/**
|
|
322
324
|
* Return type of a `findAssets` query.
|
|
323
325
|
* @public
|
|
@@ -333,6 +335,8 @@ export declare interface AssetsQueryResult<T extends AssetResult = AssetResult>
|
|
|
333
335
|
total: number;
|
|
334
336
|
}
|
|
335
337
|
|
|
338
|
+
declare type _AssetsQueryResult = AssetsQueryResult;
|
|
339
|
+
|
|
336
340
|
/**
|
|
337
341
|
* @public
|
|
338
342
|
*/
|
|
@@ -2229,6 +2233,12 @@ declare type CameraSettings = {
|
|
|
2229
2233
|
pixelRatio: number;
|
|
2230
2234
|
};
|
|
2231
2235
|
|
|
2236
|
+
/**
|
|
2237
|
+
* An HTML Canvas or an Offscreen Canvas
|
|
2238
|
+
* @public
|
|
2239
|
+
*/
|
|
2240
|
+
export declare type Canvas = HTMLCanvasElement | OffscreenCanvas_2;
|
|
2241
|
+
|
|
2232
2242
|
/**
|
|
2233
2243
|
* A Channel represents a reactive data source consisting of three elements:
|
|
2234
2244
|
*
|
|
@@ -2297,7 +2307,7 @@ export declare namespace ConfigTypes {
|
|
|
2297
2307
|
* @deprecated This type definition has been moved
|
|
2298
2308
|
* It can instead be imported directly as `HexColorString`
|
|
2299
2309
|
*/
|
|
2300
|
-
export type HexColorString =
|
|
2310
|
+
export type HexColorString = _HexColorString;
|
|
2301
2311
|
/**
|
|
2302
2312
|
* @deprecated
|
|
2303
2313
|
* This type definition has be removed. Please use the asset api at
|
|
@@ -2315,19 +2325,19 @@ export declare namespace ConfigTypes {
|
|
|
2315
2325
|
* @deprecated
|
|
2316
2326
|
* This type definition has been moved and can be imported directly as `AssetResult`.
|
|
2317
2327
|
*/
|
|
2318
|
-
export type AssetResult =
|
|
2328
|
+
export type AssetResult = _AssetResult;
|
|
2319
2329
|
/**
|
|
2320
2330
|
* @deprecated
|
|
2321
2331
|
* This type definition has been moved and can be imported directly as `AssetsQueryResult`.
|
|
2322
2332
|
*/
|
|
2323
|
-
export type AssetsQueryResult =
|
|
2333
|
+
export type AssetsQueryResult = _AssetsQueryResult;
|
|
2324
2334
|
/**
|
|
2325
2335
|
* @deprecated
|
|
2326
2336
|
* This type definition has been moved and can be imported directly as `AssetSource`,
|
|
2327
2337
|
* when working with the asset api.
|
|
2328
2338
|
* @public
|
|
2329
2339
|
*/
|
|
2330
|
-
export type AssetSource = Omit<
|
|
2340
|
+
export type AssetSource = Omit<_AssetSource, 'id'>;
|
|
2331
2341
|
/**
|
|
2332
2342
|
* @deprecated This type definition is not used anymore and will be removed.
|
|
2333
2343
|
*/
|
|
@@ -3148,6 +3158,8 @@ declare type Handler<T> = (v: T) => void;
|
|
|
3148
3158
|
*/
|
|
3149
3159
|
export declare type HexColorString = string;
|
|
3150
3160
|
|
|
3161
|
+
declare type _HexColorString = HexColorString;
|
|
3162
|
+
|
|
3151
3163
|
/**
|
|
3152
3164
|
* A numerical identifier for a history stack
|
|
3153
3165
|
* @public
|
|
@@ -3231,6 +3243,16 @@ declare enum MimeType_2 {
|
|
|
3231
3243
|
}
|
|
3232
3244
|
export { MimeType_2 as MimeType }
|
|
3233
3245
|
|
|
3246
|
+
/**
|
|
3247
|
+
* A simplified placeholder type for `OffscreenCanvas`, to avoid a dependency on `@types/offscreencanvas`
|
|
3248
|
+
* @public
|
|
3249
|
+
*/
|
|
3250
|
+
declare type OffscreenCanvas_2 = {
|
|
3251
|
+
width: number;
|
|
3252
|
+
height: number;
|
|
3253
|
+
};
|
|
3254
|
+
export { OffscreenCanvas_2 as OffscreenCanvas }
|
|
3255
|
+
|
|
3234
3256
|
/** @public */
|
|
3235
3257
|
export declare interface PageDuration {
|
|
3236
3258
|
pageId: DesignBlockId;
|