@cesdk/node 1.36.1 → 1.37.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.
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.
@@ -3536,7 +3546,9 @@ export declare class EditorAPI {
3536
3546
  * @returns The converted color.
3537
3547
  */
3538
3548
  convertColorToColorSpace(color: Color, colorSpace: 'sRGB'): RGBAColor;
3549
+ /** */
3539
3550
  convertColorToColorSpace(color: Color, colorSpace: 'CMYK'): CMYKColor;
3551
+ /** */
3540
3552
  convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
3541
3553
  /**
3542
3554
  * Create a resizable buffer that can hold arbitrary data.