@syhr/sy-graph 1.0.9 → 1.1.0-rc.2
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/CHANGELOG.md +717 -717
- package/README.md +61 -185
- package/dist-graph/sy-graph.cjs +6 -0
- package/dist-graph/sy-graph.css +1 -0
- package/dist-graph/sy-graph.mjs +3512 -0
- package/dist-graph/sy-graph.umd.js +7 -0
- package/package.json +181 -177
- package/readme.text +4 -0
- package/lib/graph.css +0 -1
- package/lib/sy-graph.cjs +0 -44
- package/lib/sy-graph.mjs +0 -22120
- package/lib/sy-graph.umd.js +0 -45
package/package.json
CHANGED
|
@@ -1,177 +1,181 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@syhr/sy-graph",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"author": "syhr <aiops.sieyuan@gmail.com>",
|
|
5
|
-
"description": "Planar graphic config tool based on @meta2d.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@syhr/sy-graph",
|
|
3
|
+
"version": "1.1.0-rc.2",
|
|
4
|
+
"author": "syhr <aiops.sieyuan@gmail.com>",
|
|
5
|
+
"description": "Planar graphic config tool based on @meta2d.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"homepage": "https://github.com/syhr/sy-graph",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/syhr/sy-graph.git"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"dev:qiankun": "vite --mode qiankun",
|
|
16
|
+
"dev:microapp": "vite --mode microapp",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"build:node": "node --max-old-space-size=8192 node_modules/vite/bin/vite build",
|
|
19
|
+
"build:graph": "vite build --config vite.config.graph.js",
|
|
20
|
+
"build:three": "vite build --config vite.config.three.js",
|
|
21
|
+
"build:qiankun": "vite build --mode qiankun",
|
|
22
|
+
"build:microapp": "vite build --mode microapp",
|
|
23
|
+
"preview": "vite preview",
|
|
24
|
+
"preview:graph": "vite preview --config vite.config.graph.js",
|
|
25
|
+
"preview:three": "vite preview --config vite.config.three.js",
|
|
26
|
+
"publish:graph": "node scripts/publish-graph.cjs",
|
|
27
|
+
"publish:three": "node scripts/publish-threed.cjs",
|
|
28
|
+
"lint": "eslint --ext .vue,.js,.jsx,.cjs,.mjs --fix src",
|
|
29
|
+
"release:first": "standard-version -f && pnpm changelog:replace",
|
|
30
|
+
"release:major": "standard-version -r major && pnpm changelog:replace",
|
|
31
|
+
"release:minor": "standard-version -r minor && pnpm changelog:replace",
|
|
32
|
+
"release:patch": "standard-version -r patch && pnpm changelog:replace",
|
|
33
|
+
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s && pnpm changelog:replace",
|
|
34
|
+
"changelog:rebuild": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && pnpm changelog:replace",
|
|
35
|
+
"changelog:replace": "replace 'https://10.17.196.142:10022/hmi-dev/cbb/cockpit-editor/commit/' '' CHANGELOG.md"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@element-plus/icons-vue": "~2.3.2",
|
|
39
|
+
"@ffmpeg/ffmpeg": "~0.12.15",
|
|
40
|
+
"@ffmpeg/util": "~0.12.2",
|
|
41
|
+
"@meta2d/activity-diagram": "~1.0.1",
|
|
42
|
+
"@meta2d/chart-diagram": "~1.0.22",
|
|
43
|
+
"@meta2d/class-diagram": "~1.0.2",
|
|
44
|
+
"@meta2d/core": "~1.1.20",
|
|
45
|
+
"@meta2d/flow-diagram": "~1.0.2",
|
|
46
|
+
"@meta2d/form-diagram": "~1.0.29",
|
|
47
|
+
"@meta2d/fta-diagram": "~1.0.1",
|
|
48
|
+
"@meta2d/le5le-charts": "~1.0.6",
|
|
49
|
+
"@meta2d/plugin-mind-collapse": "~1.0.1",
|
|
50
|
+
"@meta2d/plugin-mind-core": "~1.0.4",
|
|
51
|
+
"@meta2d/sequence-diagram": "~1.0.1",
|
|
52
|
+
"@meta2d/svg": "~1.0.7",
|
|
53
|
+
"@meta2d/utils": "1.0.3",
|
|
54
|
+
"@micro-zoe/micro-app": "1.0.0-rc.30",
|
|
55
|
+
"axios": "~1.16.0",
|
|
56
|
+
"comlink": "~4.4.2",
|
|
57
|
+
"crypto-js": "~4.2.0",
|
|
58
|
+
"dayjs": "~1.11.19",
|
|
59
|
+
"dxf": "~5.3.1",
|
|
60
|
+
"dxf-parser": "~1.1.2",
|
|
61
|
+
"element-plus": "~2.12.0",
|
|
62
|
+
"fabric": "~4.6.0",
|
|
63
|
+
"file-saver": "~2.0.5",
|
|
64
|
+
"flv.js": "~1.6.2",
|
|
65
|
+
"gm-crypto": "~0.1.12",
|
|
66
|
+
"jszip": "~3.10.1",
|
|
67
|
+
"localforage": "~1.10.0",
|
|
68
|
+
"lodash-es": "~4.18.1",
|
|
69
|
+
"mitt": "~3.0.1",
|
|
70
|
+
"monaco-editor": "~0.55.1",
|
|
71
|
+
"nprogress": "~0.2.0",
|
|
72
|
+
"pinia": "~3.0.4",
|
|
73
|
+
"qs": "~6.15.1",
|
|
74
|
+
"sm-crypto": "~0.4.0",
|
|
75
|
+
"three": "~0.184.0",
|
|
76
|
+
"three-edit-cores": "~0.0.16",
|
|
77
|
+
"vue": "~3.5.34",
|
|
78
|
+
"vue-draggable-plus": "~0.6.1",
|
|
79
|
+
"vue-router": "~4.6.4",
|
|
80
|
+
"vue3-colorpicker": "~2.3.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@babel/core": "~7.29.0",
|
|
84
|
+
"@babel/eslint-parser": "~7.28.6",
|
|
85
|
+
"@eslint/js": "~9.39.4",
|
|
86
|
+
"@iconify-json/ant-design": "~1.2.5",
|
|
87
|
+
"@iconify-json/ep": "~1.2.4",
|
|
88
|
+
"@iconify-json/tdesign": "~1.2.12",
|
|
89
|
+
"@iconify/utils": "~3.1.3",
|
|
90
|
+
"@oxc-parser/binding-win32-x64-msvc": "~0.130.0",
|
|
91
|
+
"@unocss/preset-rem-to-px": "~66.6.8",
|
|
92
|
+
"@vitejs/plugin-basic-ssl": "~2.3.0",
|
|
93
|
+
"@vitejs/plugin-vue": "~5.2.4",
|
|
94
|
+
"@vitejs/plugin-vue-jsx": "~4.2.0",
|
|
95
|
+
"@vue/eslint-config-prettier": "~10.2.0",
|
|
96
|
+
"autoprefixer": "~10.5.0",
|
|
97
|
+
"conventional-changelog-cli": "~5.0.0",
|
|
98
|
+
"dotenv": "~16.5.0",
|
|
99
|
+
"eslint": "~9.39.4",
|
|
100
|
+
"eslint-config-prettier": "~10.1.8",
|
|
101
|
+
"eslint-plugin-prettier": "~5.5.5",
|
|
102
|
+
"eslint-plugin-vue": "~10.8.0",
|
|
103
|
+
"glob": "~13.0.6",
|
|
104
|
+
"globals": "~17.6.0",
|
|
105
|
+
"picocolors": "~1.1.1",
|
|
106
|
+
"postcss": "~8.5.14",
|
|
107
|
+
"postcss-px-to-viewport-8-plugin": "~1.2.5",
|
|
108
|
+
"replace": "~1.2.2",
|
|
109
|
+
"sass": "~1.79.6",
|
|
110
|
+
"standard-version": "~9.5.0",
|
|
111
|
+
"terser": "~5.47.1",
|
|
112
|
+
"unocss": "~66.6.8",
|
|
113
|
+
"unplugin-auto-import": "~19.3.0",
|
|
114
|
+
"unplugin-element-plus": "~0.11.2",
|
|
115
|
+
"unplugin-vue-components": "~28.8.0",
|
|
116
|
+
"unplugin-vue-macros": "~2.14.5",
|
|
117
|
+
"vite": "~5.4.21",
|
|
118
|
+
"vite-plugin-css-injected-by-js": "~3.5.2",
|
|
119
|
+
"vite-plugin-eslint": "~1.8.1",
|
|
120
|
+
"vite-plugin-lib-inject-css": "~2.2.2",
|
|
121
|
+
"vite-plugin-qiankun": "~1.0.15"
|
|
122
|
+
},
|
|
123
|
+
"peerDependencies": {
|
|
124
|
+
"element-plus": "~2.12.0",
|
|
125
|
+
"vue": "~3.5.34"
|
|
126
|
+
},
|
|
127
|
+
"files": [
|
|
128
|
+
"dist-graph",
|
|
129
|
+
"package.json",
|
|
130
|
+
"CHANGELOG.md",
|
|
131
|
+
"README.md"
|
|
132
|
+
],
|
|
133
|
+
"keywords": [
|
|
134
|
+
"vue3",
|
|
135
|
+
"meta2d",
|
|
136
|
+
"graph",
|
|
137
|
+
"canvas",
|
|
138
|
+
"editor",
|
|
139
|
+
"diagram",
|
|
140
|
+
"sy-graph"
|
|
141
|
+
],
|
|
142
|
+
"browserslist": [
|
|
143
|
+
"> 1%",
|
|
144
|
+
"last 2 versions",
|
|
145
|
+
"not dead"
|
|
146
|
+
],
|
|
147
|
+
"publishConfig": {
|
|
148
|
+
"access": "public",
|
|
149
|
+
"registry": "https://registry.npmjs.org/",
|
|
150
|
+
"registry_nexus": "http://10.17.196.142:8081/#browse/browse:sieyuan_npm_hosted"
|
|
151
|
+
},
|
|
152
|
+
"standard-version": {
|
|
153
|
+
"skip": {
|
|
154
|
+
"tag": true
|
|
155
|
+
},
|
|
156
|
+
"scripts": {
|
|
157
|
+
"postchangelog": "replace 'https://github.com/syhr/sy-graph/commit/' '' CHANGELOG.md"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"main": "./dist-graph/sy-graph.cjs",
|
|
161
|
+
"module": "./dist-graph/sy-graph.mjs",
|
|
162
|
+
"unpkg": "./dist-graph/sy-graph.umd.js",
|
|
163
|
+
"types": "./dist-graph/sy-graph.d.ts",
|
|
164
|
+
"exports": {
|
|
165
|
+
"./package.json": "./package.json",
|
|
166
|
+
".": {
|
|
167
|
+
"types": "./dist-graph/sy-graph.d.ts",
|
|
168
|
+
"import": "./dist-graph/sy-graph.mjs",
|
|
169
|
+
"require": "./dist-graph/sy-graph.umd.js",
|
|
170
|
+
"browser": "./dist-graph/sy-graph.umd.js"
|
|
171
|
+
},
|
|
172
|
+
"./style.css": {
|
|
173
|
+
"import": "./dist-graph/sy-graph.css",
|
|
174
|
+
"require": "./dist-graph/sy-graph.css"
|
|
175
|
+
},
|
|
176
|
+
"./sy-graph.cjs": {
|
|
177
|
+
"types": "./dist-graph/sy-graph.d.ts",
|
|
178
|
+
"require": "./dist-graph/sy-graph.cjs"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
package/readme.text
ADDED
package/lib/graph.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.meta2d-editor[data-v-0f2164ce]{position:relative;width:100%;height:100%}.meta2d-editor[data-v-0f2164ce] .meta2d-map{z-index:1999}.meta2d-editor[data-v-0f2164ce] .stage.value-map{position:absolute;top:1.04vw;right:.52vw;z-index:200}.meta2d-editor .toolbox[data-v-0f2164ce]{position:absolute;display:none;width:5.21vw;height:1.56vw;background:red;z-index:1999}.preview-container[data-v-f0fa9f5e]{position:relative;width:100%;height:100%}.preview-container .back-btn[data-v-f0fa9f5e]{position:absolute;bottom:.52vw;right:.52vw;z-index:1000}
|