@dajiaoai/algeo-sdk 2.13.2 → 2.13.3

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
@@ -590,7 +590,7 @@ const images = await editor.slides.exportImage({
590
590
  mode: 'view',
591
591
  slideIndices: [1],
592
592
  format: 'png',
593
- viewBound: { left: -5, top: -5, right: 5, bottom: 5, scale: 50 },
593
+ viewBound: { left: -5, top: 5, right: 5, bottom: -5, scale: 50 },
594
594
  pixelRatio: 2,
595
595
  });
596
596
  ```
@@ -4011,7 +4011,7 @@ function convertToLatest(content) {
4011
4011
  }
4012
4012
 
4013
4013
  /** SDK 版本号,构建时由 rollup 注入 */
4014
- const VERSION = '2.13.2';
4014
+ const VERSION = '2.13.3';
4015
4015
  const DEFAULT_EMBED_BASE = 'https://dajiaoai.com';
4016
4016
  const DEFAULT_PRESENTATION_PATH = '/embed/present';
4017
4017
  const DEFAULT_EDITOR_PATH = '/embed/edit';
@@ -4009,7 +4009,7 @@ function convertToLatest(content) {
4009
4009
  }
4010
4010
 
4011
4011
  /** SDK 版本号,构建时由 rollup 注入 */
4012
- const VERSION = '2.13.2';
4012
+ const VERSION = '2.13.3';
4013
4013
  const DEFAULT_EMBED_BASE = 'https://dajiaoai.com';
4014
4014
  const DEFAULT_PRESENTATION_PATH = '/embed/present';
4015
4015
  const DEFAULT_EDITOR_PATH = '/embed/edit';
@@ -4015,7 +4015,7 @@
4015
4015
  }
4016
4016
 
4017
4017
  /** SDK 版本号,构建时由 rollup 注入 */
4018
- const VERSION = '2.13.2';
4018
+ const VERSION = '2.13.3';
4019
4019
  const DEFAULT_EMBED_BASE = 'https://dajiaoai.com';
4020
4020
  const DEFAULT_PRESENTATION_PATH = '/embed/present';
4021
4021
  const DEFAULT_EDITOR_PATH = '/embed/edit';
package/dist/shared.d.ts CHANGED
@@ -319,7 +319,7 @@ export interface ExportImageSizeMode extends ExportImageBaseOptions {
319
319
  /**
320
320
  * 场景二(view):viewBound 的四条边界均为世界坐标。
321
321
  * scale 省略时从文件的 camera.scale 读取。
322
- * 输出像素 = (right - left, bottom - top) x viewBound.scale x pixelRatio。
322
+ * 输出像素 = (right - left, top - bottom) x viewBound.scale x pixelRatio。
323
323
  */
324
324
  export interface ExportImageViewMode extends ExportImageBaseOptions {
325
325
  mode: 'view';
@@ -407,10 +407,6 @@ export interface DocumentApi {
407
407
  export interface SlidesApi {
408
408
  getCount(): number;
409
409
  getCurrentIndex(): number;
410
- /**
411
- * 获取有限画布的导出视野。index 为 0-based,省略时读取当前画板;
412
- * 无限画布返回 null,结果可直接作为 exportImage 的 viewBound。
413
- */
414
410
  getViewBounds(index?: number): Promise<ExportViewBound | null>;
415
411
  switchTo(index: number): Promise<void>;
416
412
  add(): Promise<SlideIndexResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dajiaoai/algeo-sdk",
3
- "version": "2.13.2",
3
+ "version": "2.13.3",
4
4
  "description": "大角几何内嵌画板 SDK,支持 iframe 挂载与 postMessage 通信",
5
5
  "main": "dist/algeo-sdk.cjs.js",
6
6
  "module": "dist/algeo-sdk.esm.js",