kd-curve-v2 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # kd-lane-chart-container 使用手册
1
+ # kd-curve-v2 使用手册
2
2
 
3
3
  ## 1. 项目介绍
4
4
 
5
- kd-lane-chart-container 是一个功能强大的井深-时间曲线图表容器,主要用于石油钻探领域的数据可视化。它提供了丰富的配置选项和交互功能,支持实时数据展示、多主题切换、岩性显示等功能。
5
+ kd-curve-v2 是一个功能强大的井深-时间曲线图表容器,主要用于石油钻探领域的数据可视化。它提供了丰富的配置选项和交互功能,支持实时数据展示、多主题切换、岩性显示等功能。
6
6
 
7
7
  ### 主要特点
8
8
 
@@ -21,39 +21,10 @@ kd-lane-chart-container 是一个功能强大的井深-时间曲线图表容器
21
21
  ### 2.1 环境要求
22
22
 
23
23
  - Vue 2.x
24
- - ECharts
25
- - SCSS
26
24
 
27
- ### 2.2 安装依赖
25
+ ### 2.2 安装
28
26
 
29
- ```bash
30
- # 安装项目依赖
31
- npm install
32
-
33
- # 启动开发服务器
34
- npm run serve
35
-
36
- # 构建生产版本
37
- npm run build
38
- ```
39
-
40
- ### 2.3 项目结构
41
-
42
- ```
43
- kd-lane-chart-container/
44
- ├── src/
45
- │ ├── App.vue # 主应用组件
46
- │ ├── components/ # 组件目录
47
- │ │ ├── frame-layout/ # 框架布局组件
48
- │ │ ├── resizeEcharts/ # 自适应ECharts组件
49
- │ │ └── util/ # 工具函数
50
- │ ├── mock/ # 模拟数据
51
- │ │ ├── convertedData.json
52
- │ │ └── testData.js
53
- │ └── styles/ # 样式文件
54
- │ └── theme/ # 主题样式
55
- └── public/ # 静态资源
56
- ```
27
+ - npm install kd-curve-v2
57
28
 
58
29
  ## 3. 主要功能说明
59
30
 
@@ -607,13 +578,13 @@ async visibleDataChange(data) {
607
578
 
608
579
  return {
609
580
  value: 10,
610
- name: layer?.name || "",
611
- startDepth: layer?.start,
612
- endDepth: layer?.end,
581
+ name: layer && layer.name || "",
582
+ startDepth: layer && layer.start,
583
+ endDepth: layer && layer.end,
613
584
  itemStyle: {
614
585
  borderWidth: 0,
615
586
  borderColor: "transparent",
616
- color: layer?.color || "#000",
587
+ color: layer && layer.color || "#000",
617
588
  },
618
589
  };
619
590
  });
@@ -841,9 +812,9 @@ getTopData(content) {
841
812
  ```javascript
842
813
  getBottomData(content) {
843
814
  const generator = createMockDataGenerator(this.dataSource, {
844
- startDepth: content?.depth || 0,
815
+ startDepth: content && content.depth || 0,
845
816
  depthStep: 5,
846
- startTime: content?.timestamp || 0,
817
+ startTime: content && content.timestamp || 0,
847
818
  timeStep: 10,
848
819
  });
849
820
  let curveDatas = [];
@@ -1380,9 +1351,9 @@ getTopData(content) {
1380
1351
  // 获取底部数据
1381
1352
  getBottomData(content) {
1382
1353
  const generator = createMockDataGenerator(this.dataSource, {
1383
- startDepth: content?.depth || 0,
1354
+ startDepth: content && content.depth || 0,
1384
1355
  depthStep: 5,
1385
- startTime: content?.timestamp || 0,
1356
+ startTime: content && content.timestamp || 0,
1386
1357
  timeStep: 10,
1387
1358
  });
1388
1359
  let curveDatas = [];
@@ -1481,13 +1452,13 @@ async visibleDataChange(data) {
1481
1452
 
1482
1453
  return {
1483
1454
  value: 10,
1484
- name: layer?.name || "",
1485
- startDepth: layer?.start,
1486
- endDepth: layer?.end,
1455
+ name: layer && layer.name || "",
1456
+ startDepth: layer && layer.start,
1457
+ endDepth: layer && layer.end,
1487
1458
  itemStyle: {
1488
1459
  borderWidth: 0,
1489
1460
  borderColor: "transparent",
1490
- color: layer?.color || "#000",
1461
+ color: layer && layer.color || "#000",
1491
1462
  },
1492
1463
  };
1493
1464
  });