@cesdk/node 1.36.0 → 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.
|
Binary file
|
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.
|
|
@@ -4300,11 +4312,11 @@ export declare type SceneMode = 'Design' | 'Video';
|
|
|
4300
4312
|
export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
4301
4313
|
|
|
4302
4314
|
/** @public */
|
|
4303
|
-
export declare type SettingsBool = 'controlGizmo/
|
|
4315
|
+
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'checkScopesInAPIs' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
|
|
4304
4316
|
|
|
4305
4317
|
/** @public
|
|
4306
4318
|
*/
|
|
4307
|
-
export declare type SettingsColor = 'borderOutlineColor' | 'clearColor' | 'colorMaskingSettings/maskColor' | 'cropOverlayColor' | 'errorStateColor' | 'highlightColor' | 'page/innerBorderColor' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/outerBorderColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | 'rotationSnappingGuideColor' | 'snappingGuideColor' | 'textVariableHighlightColor';
|
|
4319
|
+
export declare type SettingsColor = 'borderOutlineColor' | 'clearColor' | 'colorMaskingSettings/maskColor' | 'cropOverlayColor' | 'errorStateColor' | 'highlightColor' | 'page/innerBorderColor' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/outerBorderColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | 'rotationSnappingGuideColor' | 'ruleOfThirdsLineColor' | 'snappingGuideColor' | 'textVariableHighlightColor';
|
|
4308
4320
|
|
|
4309
4321
|
/** @public
|
|
4310
4322
|
* @deprecated Use SettingsColor instead.
|
|
@@ -4320,10 +4332,10 @@ export declare type SettingsEnum = {
|
|
|
4320
4332
|
};
|
|
4321
4333
|
|
|
4322
4334
|
/** @public */
|
|
4323
|
-
export declare type SettingsFloat = 'positionSnappingThreshold' | 'rotationSnappingThreshold';
|
|
4335
|
+
export declare type SettingsFloat = 'controlGizmo/blockScaleDownLimit' | 'positionSnappingThreshold' | 'rotationSnappingThreshold';
|
|
4324
4336
|
|
|
4325
4337
|
/** @public */
|
|
4326
|
-
export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'license' | 'page/title/fontFileUri' | 'page/title/separator';
|
|
4338
|
+
export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'defaultFontFileUri' | 'license' | 'page/title/fontFileUri' | 'page/title/separator';
|
|
4327
4339
|
|
|
4328
4340
|
/** @public */
|
|
4329
4341
|
export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
|