@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/package.json CHANGED
@@ -1,177 +1,181 @@
1
- {
2
- "name": "@syhr/sy-graph",
3
- "version": "1.0.9",
4
- "author": "syhr <aiops.sieyuan@gmail.com>",
5
- "description": "Planar graphic config tool based on @meta2d.",
6
- "license": "MIT",
7
- "type": "module",
8
- "main": "./lib/sy-graph.cjs",
9
- "module": "./lib/sy-graph.mjs",
10
- "unpkg": "./lib/sy-graph.umd.js",
11
- "types": "./lib/sy-graph.d.ts",
12
- "exports": {
13
- "./package.json": "./package.json",
14
- ".": {
15
- "types": "./lib/sy-graph.d.ts",
16
- "import": "./lib/sy-graph.mjs",
17
- "require": "./lib/sy-graph.umd.js",
18
- "browser": "./lib/sy-graph.umd.js"
19
- },
20
- "./style.css": {
21
- "import": "./lib/graph.css",
22
- "require": "./lib/graph.css"
23
- },
24
- "./sy-graph.cjs": {
25
- "types": "./lib/sy-graph.d.ts",
26
- "require": "./lib/sy-graph.cjs"
27
- }
28
- },
29
- "homepage": "https://github.com/syhr/sy-graph",
30
- "repository": {
31
- "type": "git",
32
- "url": "https://github.com/syhr/sy-graph.git"
33
- },
34
- "scripts": {
35
- "dev": "vite",
36
- "dev:qiankun": "vite --mode qiankun",
37
- "dev:microapp": "vite --mode microapp",
38
- "build": "vite build",
39
- "build:lib": "vite build --config vite.config.lib.js",
40
- "build:qiankun": "vite build --mode qiankun",
41
- "build:microapp": "vite build --mode microapp",
42
- "preview": "vite preview",
43
- "preview:lib": "vite preview --config vite.config.lib.js",
44
- "lint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore --fix src",
45
- "lint:check": "eslint --ext .js,.vue,.ts --ignore-path .gitignore src",
46
- "clean": "rimraf lib dist node_modules/.vite",
47
- "clean:lib": "rimraf lib",
48
- "clean:dist": "rimraf dist",
49
- "release:first": "standard-version -f && pnpm changelog:replace",
50
- "release:major": "standard-version -r major && pnpm changelog:replace",
51
- "release:minor": "standard-version -r minor && pnpm changelog:replace",
52
- "release:patch": "standard-version -r patch && pnpm changelog:replace",
53
- "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s && pnpm changelog:replace",
54
- "changelog:rebuild": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && pnpm changelog:replace",
55
- "changelog:replace": "replace 'https://10.17.196.142:10022/hmi-dev/cbb/cockpit-editor/commit/' '' CHANGELOG.md"
56
- },
57
- "dependencies": {
58
- "@element-plus/icons-vue": "~2.3.2",
59
- "@ffmpeg/ffmpeg": "~0.12.15",
60
- "@ffmpeg/util": "~0.12.2",
61
- "@meta2d/activity-diagram": "~1.0.1",
62
- "@meta2d/chart-diagram": "~1.0.16",
63
- "@meta2d/class-diagram": "~1.0.2",
64
- "@meta2d/core": "~1.0.97",
65
- "@meta2d/flow-diagram": "~1.0.2",
66
- "@meta2d/form-diagram": "~1.0.29",
67
- "@meta2d/fta-diagram": "~1.0.1",
68
- "@meta2d/le5le-charts": "~1.0.5",
69
- "@meta2d/plugin-mind-collapse": "~1.0.1",
70
- "@meta2d/plugin-mind-core": "~1.0.4",
71
- "@meta2d/sequence-diagram": "~1.0.1",
72
- "@meta2d/svg": "~1.0.7",
73
- "@meta2d/utils": "1.0.1",
74
- "@micro-zoe/micro-app": "1.0.0-rc.26",
75
- "@syhr/sy-player": "~3.2.3",
76
- "axios": "~1.11.0",
77
- "comlink": "~4.4.2",
78
- "crypto-js": "~4.2.0",
79
- "dayjs": "~1.11.18",
80
- "dxf": "~5.2.0",
81
- "dxf-parser": "~1.1.2",
82
- "element-plus": "~2.10.7",
83
- "fabric": "~4.6.0",
84
- "file-saver": "~2.0.5",
85
- "flv.js": "^1.6.2",
86
- "gm-crypto": "~0.1.12",
87
- "jszip": "~3.10.1",
88
- "lodash-es": "~4.17.21",
89
- "mitt": "~3.0.1",
90
- "monaco-editor": "~0.43.0",
91
- "nprogress": "~0.2.0",
92
- "photoswipe": "~5.4.4",
93
- "pinia": "~2.2.6",
94
- "qs": "~6.14.0",
95
- "sm-crypto": "~0.3.13",
96
- "vue": "~3.5.22",
97
- "vue-draggable-plus": "~0.6.0",
98
- "vue-router": "~4.5.1",
99
- "vue3-colorpicker": "^2.3.0"
100
- },
101
- "devDependencies": {
102
- "@babel/core": "~7.28.5",
103
- "@babel/eslint-parser": "~7.28.5",
104
- "@iconify-json/ant-design": "~1.2.5",
105
- "@iconify-json/ep": "~1.2.2",
106
- "@iconify-json/tdesign": "~1.2.10",
107
- "@iconify/utils": "~2.3.0",
108
- "@unocss/preset-rem-to-px": "~66.5.4",
109
- "@vitejs/plugin-basic-ssl": "~2.1.0",
110
- "@vitejs/plugin-vue": "~5.2.4",
111
- "@vitejs/plugin-vue-jsx": "~4.2.0",
112
- "@vue/eslint-config-prettier": "~8.0.0",
113
- "autoprefixer": "~10.4.21",
114
- "conventional-changelog-cli": "~5.0.0",
115
- "dotenv": "~16.5.0",
116
- "eslint": "~8.50.0",
117
- "eslint-config-prettier": "~9.0.0",
118
- "eslint-plugin-prettier": "~5.5.4",
119
- "eslint-plugin-vue": "~9.32.0",
120
- "glob": "~11.0.3",
121
- "picocolors": "~1.1.1",
122
- "postcss": "~8.5.6",
123
- "postcss-px-to-viewport-8-plugin": "~1.2.5",
124
- "replace": "~1.2.2",
125
- "rimraf": "~5.0.5",
126
- "sass": "~1.79.6",
127
- "standard-version": "~9.5.0",
128
- "terser": "~5.44.0",
129
- "unocss": "~66.5.4",
130
- "unplugin-auto-import": "~19.3.0",
131
- "unplugin-element-plus": "~0.10.0",
132
- "unplugin-vue-components": "~28.8.0",
133
- "unplugin-vue-macros": "~2.14.5",
134
- "vite": "~5.4.20",
135
- "vite-plugin-css-injected-by-js": "~3.5.2",
136
- "vite-plugin-eslint": "~1.8.1",
137
- "vite-plugin-lib-inject-css": "~2.2.2",
138
- "vite-plugin-qiankun": "~1.0.15"
139
- },
140
- "peerDependencies": {
141
- "element-plus": "~2.10.7",
142
- "vue": "~3.5.18"
143
- },
144
- "files": [
145
- "lib",
146
- "package.json",
147
- "CHANGELOG.md",
148
- "README.md"
149
- ],
150
- "keywords": [
151
- "vue3",
152
- "meta2d",
153
- "graph",
154
- "canvas",
155
- "editor",
156
- "diagram",
157
- "sy-graph"
158
- ],
159
- "browserslist": [
160
- "> 1%",
161
- "last 2 versions",
162
- "not dead"
163
- ],
164
- "publishConfig": {
165
- "access": "public",
166
- "registry": "https://registry.npmjs.org/",
167
- "registry_nexus": "http://10.17.196.142:8081/#browse/browse:sieyuan_npm_hosted"
168
- },
169
- "standard-version": {
170
- "skip": {
171
- "tag": true
172
- },
173
- "scripts": {
174
- "postchangelog": "replace 'https://github.com/syhr/sy-graph/commit/' '' CHANGELOG.md"
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
@@ -0,0 +1,4 @@
1
+ 1. 打包平面组态 npm run build:lib
2
+ 2. 推送平面组态包直接运行 npm publish
3
+ 3. 打包三维组态 npm run build:three
4
+ 4. 推送三维组态包运行 npm run publish:three
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}