react-design-editor 0.0.47 → 0.0.48
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Handler from './Handler';
|
|
2
|
-
import { FabricObject } from '../utils';
|
|
3
1
|
import { NodeObject } from '../objects/Node';
|
|
2
|
+
import { FabricObject } from '../utils';
|
|
3
|
+
import Handler from './Handler';
|
|
4
4
|
declare class NodeHandler {
|
|
5
5
|
handler: Handler;
|
|
6
6
|
constructor(handler: Handler);
|
|
@@ -26,7 +26,7 @@ declare class NodeHandler {
|
|
|
26
26
|
*/
|
|
27
27
|
deselect: () => void;
|
|
28
28
|
/**
|
|
29
|
-
* Highlight
|
|
29
|
+
* Highlight path by ids
|
|
30
30
|
* @param {string[]} [path]
|
|
31
31
|
*/
|
|
32
32
|
highlightingByPath: (path?: string[]) => void;
|
|
@@ -45,6 +45,6 @@ declare class NodeHandler {
|
|
|
45
45
|
* @param {number} [minBlur=0]
|
|
46
46
|
* @param {number} [maxBlur=50]
|
|
47
47
|
*/
|
|
48
|
-
highlightingNode: (object:
|
|
48
|
+
highlightingNode: (object: FabricObject, duration?: number, minBlur?: number, maxBlur?: number) => void;
|
|
49
49
|
}
|
|
50
50
|
export default NodeHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-design-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "Design Editor Tools with React.js + ant.design + fabric.js",
|
|
5
5
|
"main": "dist/react-design-editor.min.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"build:lib": "npm run tsc && webpack --node-env production --config webpack.lib.js",
|
|
15
15
|
"start": "npm install && npm run start:dev",
|
|
16
16
|
"start:dev": "webpack serve --config webpack.dev.js",
|
|
17
|
+
"serve": "http-server docs -p 4001",
|
|
17
18
|
"ghpages": "npm run build && node scripts/ghpages",
|
|
18
19
|
"deploy": "npm run build:lib && npm publish",
|
|
19
20
|
"lint": "npm run tsc",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"homepage": "https://salgum1114.github.io/react-design-editor",
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"animejs": "^3.0.0",
|
|
43
|
-
"fabric": "^
|
|
44
|
+
"fabric": "^4.6.0",
|
|
44
45
|
"react": "^16.14.0",
|
|
45
46
|
"react-dom": "^16.14.0"
|
|
46
47
|
},
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"classnames": "^2.2.6",
|
|
51
52
|
"color": "^3.1.2",
|
|
52
53
|
"echarts": "^4.7.0",
|
|
53
|
-
"fabric": "^
|
|
54
|
+
"fabric": "^4.6.0",
|
|
54
55
|
"gifler": "^0.1.0",
|
|
55
56
|
"honeycomb-grid": "^3.1.7",
|
|
56
57
|
"i18next": "^19.0.0",
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
"@types/animejs": "^3.1.0",
|
|
90
91
|
"@types/color": "^3.0.1",
|
|
91
92
|
"@types/echarts": "^4.4.6",
|
|
92
|
-
"@types/fabric": "^4.
|
|
93
|
+
"@types/fabric": "^4.5.7",
|
|
93
94
|
"@types/lodash": "^4.14.150",
|
|
94
95
|
"@types/react": "^16.14.21",
|
|
95
96
|
"@types/react-dom": "^16.9.14",
|
|
@@ -114,16 +115,16 @@
|
|
|
114
115
|
"fs-extra": "^9.0.0",
|
|
115
116
|
"gh-pages": "^2.2.0",
|
|
116
117
|
"html-webpack-plugin": "^3.2.0",
|
|
118
|
+
"http-server": "^14.1.0",
|
|
117
119
|
"less": "^2.7.3",
|
|
118
120
|
"less-loader": "^5.0.0",
|
|
119
121
|
"path": "^0.12.7",
|
|
120
|
-
"serve": "^11.3.0",
|
|
121
122
|
"style-loader": "^1.1.4",
|
|
122
123
|
"terser-webpack-plugin": "^4.2.3",
|
|
123
124
|
"tslint": "^6.1.1",
|
|
124
125
|
"tslint-react": "^5.0.0",
|
|
125
126
|
"typedoc": "^0.17.4",
|
|
126
|
-
"typescript": "^3.9.
|
|
127
|
+
"typescript": "^3.9.10",
|
|
127
128
|
"url-loader": "^4.1.0",
|
|
128
129
|
"webpack": "^4.46.0",
|
|
129
130
|
"webpack-cli": "^4.9.1",
|