-
-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add override internal function api #260
- Loading branch information
Showing
7 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Override | ||
|
||
## How to Use | ||
|
||
```javascript | ||
import Editor from "@hufe921/canvas-editor" | ||
|
||
const instance = new Editor(container, <IElement[]>data, options) | ||
instance.override.overrideFunction = ()=>{} | ||
``` | ||
|
||
## paste | ||
|
||
Feature: Override internal paste function | ||
|
||
Usage: | ||
|
||
```javascript | ||
instance.override.paste = (evt: ClipboardEvent) => void | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 重写方法 | ||
|
||
## 使用方式 | ||
|
||
```javascript | ||
import Editor from "@hufe921/canvas-editor" | ||
|
||
const instance = new Editor(container, <IElement[]>data, options) | ||
instance.override.overrideFunction = ()=>{} | ||
``` | ||
|
||
## paste | ||
|
||
功能:重写粘贴方法 | ||
|
||
用法: | ||
|
||
```javascript | ||
instance.override.paste = (evt: ClipboardEvent) => void | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class Override { | ||
public paste: ((evt: ClipboardEvent) => void) | undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters