@cesdk/engine 1.36.1 → 1.37.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.36.1-5BQYTD5C.wasm → cesdk-v1.37.0-rc.0-ESV4ODWJ.wasm} +0 -0
- package/assets/core/{worker-host-v1.36.1.js → worker-host-v1.37.0-rc.0.js} +1 -1
- package/index.d.ts +12 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.36.1-XHZXX7DG.data → cesdk-v1.37.0-rc.0-XHZXX7DG.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2250,11 +2250,21 @@ export declare class BlockAPI {
|
|
|
2250
2250
|
toggleItalicFont(id: DesignBlockId, from?: number, to?: number): void;
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Sets the given font and typeface for the text block.
|
|
2253
|
+
* Existing formatting is reset.
|
|
2253
2254
|
* @param id - The text block whose font should be changed.
|
|
2254
2255
|
* @param fontFileUri - The URI of the new font file.
|
|
2255
2256
|
* @param typeface - The typeface of the new font.
|
|
2256
2257
|
*/
|
|
2257
2258
|
setFont(id: DesignBlockId, fontFileUri: string, typeface: Typeface): void;
|
|
2259
|
+
/**
|
|
2260
|
+
* Sets the given typeface for the text block.
|
|
2261
|
+
* The current formatting, e.g., bold or italic, is retained as far as possible. Some formatting might change if the
|
|
2262
|
+
* new typeface does not support it, e.g. thin might change to light, bold to normal, and/or italic to non-italic.
|
|
2263
|
+
* @param id - The text block whose font should be changed.
|
|
2264
|
+
* @param fallbackFontFileUri - The URI of the fallback font file.
|
|
2265
|
+
* @param typeface - The new typeface.
|
|
2266
|
+
*/
|
|
2267
|
+
setTypeface(id: DesignBlockId, fallbackFontFileUri: string, typeface: Typeface): void;
|
|
2258
2268
|
/**
|
|
2259
2269
|
* Returns the current typeface of the given text block.
|
|
2260
2270
|
* @param id - The text block whose typeface should be queried.
|
|
@@ -3606,7 +3616,9 @@ export declare class EditorAPI {
|
|
|
3606
3616
|
* @returns The converted color.
|
|
3607
3617
|
*/
|
|
3608
3618
|
convertColorToColorSpace(color: Color, colorSpace: 'sRGB'): RGBAColor;
|
|
3619
|
+
/** */
|
|
3609
3620
|
convertColorToColorSpace(color: Color, colorSpace: 'CMYK'): CMYKColor;
|
|
3621
|
+
/** */
|
|
3610
3622
|
convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
|
|
3611
3623
|
/**
|
|
3612
3624
|
* Create a resizable buffer that can hold arbitrary data.
|