Skip to content

Commit

Permalink
Up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 30, 2023
1 parent b495cfc commit 945156a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/api/canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ editor.on('canvas:pointer', () => {
});
```

* ToScreenOption

[Component]: component.html

[Frame]: frame.html

[CanvasSpot]: canvas_spot.html

## getConfig

Get configuration object
Expand Down
1 change: 1 addition & 0 deletions src/canvas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*
* [Component]: component.html
* [Frame]: frame.html
* [CanvasSpot]: canvas_spot.html
*
* @module Canvas
*/
Expand Down
20 changes: 10 additions & 10 deletions src/canvas/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
export interface ToScreenOption {
toScreen?: boolean;
}

export interface ToWorldOption {
toWorld?: boolean;
}

export interface GetBoxRectOptions extends ToScreenOption {}

/**{START_EVENTS}*/
export enum CanvasEvents {
/**
Expand Down Expand Up @@ -90,13 +100,3 @@ export enum CanvasEvents {
pointer = 'canvas:pointer',
}
/**{END_EVENTS}*/

export interface ToScreenOption {
toScreen?: boolean;
}

export interface ToWorldOption {
toWorld?: boolean;
}

export interface GetBoxRectOptions extends ToScreenOption {}

0 comments on commit 945156a

Please sign in to comment.