11---
2- title : cavas - 画布 API
2+ title : canvas - 画布 API
33sidebar_position : 12
44---
55
@@ -17,32 +17,33 @@ sidebar_position: 12
1717
1818获取拖拽操作对象的实例
1919
20- ``` typescript
21- /**
22- * 获取拖拽操作对象的实例
23- * get dragon instance, you can use this to obtain draging related abilities and lifecycle hooks
24- * @since v1.1.0
25- */
26- get dragon (): IPublicModelDragon | null ;
27- ```
28- 关联模型 [ IPublicModelDragon] ( ./model/dragon )
20+ ` @type {IPublicModelDragon | null} `
21+
22+
23+ 相关类型:[ IPublicModelDragon] ( https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/dragon.ts )
2924
3025### activeTracker
3126
3227获取活动追踪器实例
3328
34- ``` typescript
35- /**
36- * 获取活动追踪器实例
37- * get activeTracker instance, which is a singleton running in engine.
38- * it tracks document`s current focusing node/node[], and notify it`s subscribers that when
39- * focusing node/node[] changed.
40- * @since v1.1.0
41- */
42- get activeTracker (): IPublicModelActiveTracker | null ;
43- ```
29+ ` @type {IPublicModelActiveTracker | null} `
30+
31+ 相关类型:[ IPublicModelActiveTracker] ( https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/active-tracker.ts )
32+
33+ ### isInLiveEditing
34+
35+ 是否处于 LiveEditing 状态
4436
45- ## 方法签名
37+ ` @type {boolean} `
38+
39+ ### clipboard
40+ 全局剪贴板实例
41+
42+ ` @type {IPublicModelClipboard} `
43+
44+ 相关类型:[ IPublicModelClipboard] ( https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/clipboard.ts )
45+
46+ ## 方法
4647
4748### createLocation
4849创建一个文档插入位置对象,该对象用来描述一个即将插入的节点在文档中的位置
@@ -61,15 +62,15 @@ createLocation(locationData: IPublicTypeLocationData): IPublicModelDropLocation;
6162``` typescript
6263/**
6364 * 创建一个滚动控制器 Scroller,赋予一个视图滚动的基本能力,
64- * a Scroller is a controller that gives a view (IPublicModelScrollable ) the ability scrolling
65+ * a Scroller is a controller that gives a view (IPublicTypeScrollable ) the ability scrolling
6566 * to some cordination by api scrollTo.
6667 *
6768 * when a scroller is inited, will need to pass is a scrollable, which has a scrollTarget.
6869 * and when scrollTo(options: { left?: number; top?: number }) is called, scroller will
6970 * move scrollTarget`s top-left corner to (options.left, options.top) that passed in.
7071 * @since v1.1.0
7172 */
72- createScroller (scrollable : IPublicModelScrollable ): IPublicModelScroller ;
73+ createScroller (scrollable : IPublicTypeScrollable ): IPublicModelScroller ;
7374
7475```
7576
@@ -83,4 +84,4 @@ createScroller(scrollable: IPublicModelScrollable): IPublicModelScroller;
8384 * @since v1.1.0
8485 */
8586createScrollTarget (shell : HTMLDivElement ): IPublicModelScrollTarget ;
86- ```
87+ ```
0 commit comments