@nywqs/scada-engine 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/README.md +15 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @wqs/scada-engine
1
+ # @nywqs/scada-engine
2
2
 
3
3
  基于 AntV X6 + Vue 3 的自研 SCADA 组态引擎
4
4
 
@@ -14,11 +14,11 @@
14
14
  ## 📦 安装
15
15
 
16
16
  ```bash
17
- npm install @wqs/scada-engine
17
+ npm install @nywqs/scada-engine
18
18
  # 或
19
- pnpm add @wqs/scada-engine
19
+ pnpm add @nywqs/scada-engine
20
20
  # 或
21
- yarn add @wqs/scada-engine
21
+ yarn add @nywqs/scada-engine
22
22
  ```
23
23
 
24
24
  ### Peer Dependencies
@@ -35,8 +35,8 @@ npm install vue@^3.4.0 vue-router@^4.6.0 @antv/x6@^2.18.0 echarts@^5.5.0 pinia@^
35
35
 
36
36
  ```typescript
37
37
  import { createApp } from 'vue'
38
- import ScadaEngine from '@wqs/scada-engine'
39
- import '@wqs/scada-engine/dist/scada-engine.css'
38
+ import ScadaEngine from '@nywqs/scada-engine'
39
+ import '@nywqs/scada-engine/dist/scada-engine.css'
40
40
 
41
41
  const app = createApp(App)
42
42
  app.use(ScadaEngine)
@@ -56,8 +56,8 @@ app.mount('#app')
56
56
  </template>
57
57
 
58
58
  <script setup lang="ts">
59
- import { ScadaCanvas } from '@wqs/scada-engine'
60
- import '@wqs/scada-engine/dist/scada-engine.css'
59
+ import { ScadaCanvas } from '@nywqs/scada-engine'
60
+ import '@nywqs/scada-engine/dist/scada-engine.css'
61
61
 
62
62
  const handleNodeClick = (node: any) => {
63
63
  console.log('Node clicked:', node)
@@ -101,7 +101,7 @@ const handleNodeUpdate = (data: any) => {
101
101
 
102
102
  <script setup lang="ts">
103
103
  import { ref } from 'vue'
104
- import { ScadaCanvas } from '@wqs/scada-engine'
104
+ import { ScadaCanvas } from '@nywqs/scada-engine'
105
105
 
106
106
  const canvasRef = ref()
107
107
 
@@ -184,7 +184,7 @@ const handleLoadData = (jsonData: any) => {
184
184
 
185
185
  <script setup lang="ts">
186
186
  import { ref } from 'vue'
187
- import { ScadaCanvas } from '@wqs/scada-engine'
187
+ import { ScadaCanvas } from '@nywqs/scada-engine'
188
188
 
189
189
  const canvasRef = ref()
190
190
 
@@ -222,7 +222,7 @@ const handleZoomOut = () => {
222
222
  ### 组件注册系统
223
223
 
224
224
  ```typescript
225
- import { componentRegistry } from '@wqs/scada-engine'
225
+ import { componentRegistry } from '@nywqs/scada-engine'
226
226
 
227
227
  // 获取所有组件
228
228
  const components = componentRegistry.getAllComponents()
@@ -234,7 +234,7 @@ const basicComponents = componentRegistry.getComponentsByCategory('basic')
234
234
  ### 画布配置
235
235
 
236
236
  ```typescript
237
- import { canvasConfigManager } from '@wqs/scada-engine'
237
+ import { canvasConfigManager } from '@nywqs/scada-engine'
238
238
 
239
239
  // 获取画布配置
240
240
  const config = canvasConfigManager.getConfig()
@@ -251,7 +251,7 @@ import type {
251
251
  BindingConfig,
252
252
  ComponentConfig,
253
253
  ComponentCategory
254
- } from '@wqs/scada-engine'
254
+ } from '@nywqs/scada-engine'
255
255
  ```
256
256
 
257
257
  ## 📝 使用示例
@@ -291,8 +291,8 @@ import {
291
291
  ComponentLibrary,
292
292
  ScadaCanvas,
293
293
  PropertyPanel
294
- } from '@wqs/scada-engine'
295
- import '@wqs/scada-engine/dist/scada-engine.css'
294
+ } from '@nywqs/scada-engine'
295
+ import '@nywqs/scada-engine/dist/scada-engine.css'
296
296
 
297
297
  const canvasRef = ref()
298
298
  const selectedNode = ref(null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nywqs/scada-engine",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "自研 SCADA 组态引擎 - 基于 AntV X6",
5
5
  "type": "module",
6
6
  "main": "./dist/scada-engine.umd.js",