@cesdk/engine 1.12.1 → 1.12.2
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
|
*/
|
|
@@ -2217,6 +2221,12 @@ declare type CameraSettings = {
|
|
|
2217
2221
|
pixelRatio: number;
|
|
2218
2222
|
};
|
|
2219
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* An HTML Canvas or an Offscreen Canvas
|
|
2226
|
+
* @public
|
|
2227
|
+
*/
|
|
2228
|
+
export declare type Canvas = HTMLCanvasElement | OffscreenCanvas_2;
|
|
2229
|
+
|
|
2220
2230
|
/**
|
|
2221
2231
|
* A Channel represents a reactive data source consisting of three elements:
|
|
2222
2232
|
*
|
|
@@ -2285,7 +2295,7 @@ export declare namespace ConfigTypes {
|
|
|
2285
2295
|
* @deprecated This type definition has been moved
|
|
2286
2296
|
* It can instead be imported directly as `HexColorString`
|
|
2287
2297
|
*/
|
|
2288
|
-
export type HexColorString =
|
|
2298
|
+
export type HexColorString = _HexColorString;
|
|
2289
2299
|
/**
|
|
2290
2300
|
* @deprecated
|
|
2291
2301
|
* This type definition has be removed. Please use the asset api at
|
|
@@ -2303,19 +2313,19 @@ export declare namespace ConfigTypes {
|
|
|
2303
2313
|
* @deprecated
|
|
2304
2314
|
* This type definition has been moved and can be imported directly as `AssetResult`.
|
|
2305
2315
|
*/
|
|
2306
|
-
export type AssetResult =
|
|
2316
|
+
export type AssetResult = _AssetResult;
|
|
2307
2317
|
/**
|
|
2308
2318
|
* @deprecated
|
|
2309
2319
|
* This type definition has been moved and can be imported directly as `AssetsQueryResult`.
|
|
2310
2320
|
*/
|
|
2311
|
-
export type AssetsQueryResult =
|
|
2321
|
+
export type AssetsQueryResult = _AssetsQueryResult;
|
|
2312
2322
|
/**
|
|
2313
2323
|
* @deprecated
|
|
2314
2324
|
* This type definition has been moved and can be imported directly as `AssetSource`,
|
|
2315
2325
|
* when working with the asset api.
|
|
2316
2326
|
* @public
|
|
2317
2327
|
*/
|
|
2318
|
-
export type AssetSource = Omit<
|
|
2328
|
+
export type AssetSource = Omit<_AssetSource, 'id'>;
|
|
2319
2329
|
/**
|
|
2320
2330
|
* @deprecated This type definition is not used anymore and will be removed.
|
|
2321
2331
|
*/
|
|
@@ -3132,6 +3142,8 @@ declare type Handler<T> = (v: T) => void;
|
|
|
3132
3142
|
*/
|
|
3133
3143
|
export declare type HexColorString = string;
|
|
3134
3144
|
|
|
3145
|
+
declare type _HexColorString = HexColorString;
|
|
3146
|
+
|
|
3135
3147
|
/**
|
|
3136
3148
|
* A numerical identifier for a history stack
|
|
3137
3149
|
* @public
|
|
@@ -3215,6 +3227,16 @@ declare enum MimeType_2 {
|
|
|
3215
3227
|
}
|
|
3216
3228
|
export { MimeType_2 as MimeType }
|
|
3217
3229
|
|
|
3230
|
+
/**
|
|
3231
|
+
* A simplified placeholder type for `OffscreenCanvas`, to avoid a dependency on `@types/offscreencanvas`
|
|
3232
|
+
* @public
|
|
3233
|
+
*/
|
|
3234
|
+
declare type OffscreenCanvas_2 = {
|
|
3235
|
+
width: number;
|
|
3236
|
+
height: number;
|
|
3237
|
+
};
|
|
3238
|
+
export { OffscreenCanvas_2 as OffscreenCanvas }
|
|
3239
|
+
|
|
3218
3240
|
/** @public */
|
|
3219
3241
|
export declare interface PageDuration {
|
|
3220
3242
|
pageId: DesignBlockId;
|