@cesdk/node-native 1.77.0-nightly.20260611 → 1.77.0-nightly.20260612

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/README.md CHANGED
@@ -264,7 +264,7 @@ pnpEnableInlining: false
264
264
  ```jsonc
265
265
  // package.json
266
266
  {
267
- "dependencies": { "@cesdk/node-native": "^1.77.0-nightly.20260611" },
267
+ "dependencies": { "@cesdk/node-native": "^1.77.0-nightly.20260612" },
268
268
  "dependenciesMeta": {
269
269
  "@cesdk/node-native-darwin-arm64": { "unplugged": true },
270
270
  "@cesdk/node-native-darwin-x64": { "unplugged": true },
package/lib/index.d.ts CHANGED
@@ -2503,6 +2503,12 @@ export declare class BlockAPI implements IBlockAPI {
2503
2503
  getTextParagraphIndices(block: DesignBlockId, from?: number, to?: number): number[];
2504
2504
  getTextLineHeight(block: DesignBlockId, paragraphIndex: number): number;
2505
2505
  setTextLineHeight(block: DesignBlockId, lineHeight: number | null, paragraphIndex?: number): void;
2506
+ setTextOnPath(block: DesignBlockId, svgPath: string | null): void;
2507
+ getTextOnPath(block: DesignBlockId): string | null;
2508
+ setTextOnPathOffset(block: DesignBlockId, offset: number): void;
2509
+ getTextOnPathOffset(block: DesignBlockId): number;
2510
+ setTextOnPathFlipped(block: DesignBlockId, flipped: boolean): void;
2511
+ getTextOnPathFlipped(block: DesignBlockId): boolean;
2506
2512
  getFontMetrics(fontFileUri: string): Promise<FontMetrics>;
2507
2513
  getSourceSet(block: DesignBlockId, property: string): Source[];
2508
2514
  setSourceSet(block: DesignBlockId, property: string, sources: Source[]): void;
@@ -3769,6 +3775,12 @@ export interface NativeEngine {
3769
3775
  getTextParagraphIndices(block: DesignBlockId, from?: number, to?: number): number[];
3770
3776
  getTextLineHeight(block: DesignBlockId, paragraphIndex: number): number;
3771
3777
  setTextLineHeight(block: DesignBlockId, lineHeight: number | undefined, paragraphIndex?: number): void;
3778
+ setTextOnPath(block: DesignBlockId, svgPath: string | undefined): void;
3779
+ getTextOnPath(block: DesignBlockId): string | undefined;
3780
+ setTextOnPathOffset(block: DesignBlockId, offset: number): void;
3781
+ getTextOnPathOffset(block: DesignBlockId): number;
3782
+ setTextOnPathFlipped(block: DesignBlockId, flipped: boolean): void;
3783
+ getTextOnPathFlipped(block: DesignBlockId): boolean;
3772
3784
  getFontMetrics(fontFileUri: string): Promise<FontMetrics>;
3773
3785
  setMovementConstraint(targets: (DesignBlockId | string)[], overshoot: number): void;
3774
3786
  getMovementConstraint(block: DesignBlockId): number;
package/lib/index.js CHANGED
@@ -2499,6 +2499,24 @@ var BlockAPI = class {
2499
2499
  paragraphIndex
2500
2500
  );
2501
2501
  }
2502
+ setTextOnPath(block, svgPath) {
2503
+ this.#engine.setTextOnPath(block, svgPath ?? void 0);
2504
+ }
2505
+ getTextOnPath(block) {
2506
+ return this.#engine.getTextOnPath(block) ?? null;
2507
+ }
2508
+ setTextOnPathOffset(block, offset) {
2509
+ this.#engine.setTextOnPathOffset(block, offset);
2510
+ }
2511
+ getTextOnPathOffset(block) {
2512
+ return this.#engine.getTextOnPathOffset(block);
2513
+ }
2514
+ setTextOnPathFlipped(block, flipped) {
2515
+ this.#engine.setTextOnPathFlipped(block, flipped);
2516
+ }
2517
+ getTextOnPathFlipped(block) {
2518
+ return this.#engine.getTextOnPathFlipped(block);
2519
+ }
2502
2520
  getFontMetrics(fontFileUri) {
2503
2521
  return this.#engine.getFontMetrics(fontFileUri);
2504
2522
  }
@@ -4698,7 +4716,7 @@ var AssetAPI = class {
4698
4716
  }
4699
4717
  }
4700
4718
  };
4701
- var _version = true ? "1.77.0-nightly.20260611" : "0.0.0";
4719
+ var _version = true ? "1.77.0-nightly.20260612" : "0.0.0";
4702
4720
  var CreativeEngine = class _CreativeEngine {
4703
4721
  constructor(engine) {
4704
4722
  this.version = _CreativeEngine.version;