costy-plus 1.0.64-0 → 1.0.67-0

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.
@@ -105,18 +105,18 @@ let g = class extends E {
105
105
  initSlidingWindowInfo() {
106
106
  const e = this.publicStep || 0, t = Math.ceil(this.splitPoint / e);
107
107
  if (this.slidingWindowInfo = {
108
- points: this.slidingWindowInfo.points || t,
108
+ points: this.slidingWindowInfo.points !== t ? t : this.slidingWindowInfo.points,
109
109
  startInd: this.slidingWindowInfo.startInd || 0,
110
- endInd: this.slidingWindowInfo.endInd || t
110
+ endInd: this.slidingWindowInfo.endInd !== t ? t : this.slidingWindowInfo.endInd
111
111
  }, this.scrollConfig.isShow && !this.leadModel.isSingleMode) {
112
112
  const s = W(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), a = this.dataTotalLength * s;
113
113
  this.vuescrollWH.width = this.canvasContainer.width + (a || 0) - this.splitPoint;
114
114
  }
115
115
  const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / e);
116
116
  this.addSlidingWindowInfo = {
117
- points: this.addSlidingWindowInfo.points || i,
117
+ points: this.addSlidingWindowInfo.points !== i ? i : this.addSlidingWindowInfo.points,
118
118
  startInd: this.addSlidingWindowInfo.startInd || 0,
119
- endInd: this.addSlidingWindowInfo.endInd || i
119
+ endInd: this.addSlidingWindowInfo.endInd !== i ? i : this.addSlidingWindowInfo.endInd
120
120
  };
121
121
  }
122
122
  calcHighestAndLowestPoint() {
@@ -81,3 +81,31 @@ export interface BottomRulerConfig {
81
81
  /** 走纸 */
82
82
  speed: number;
83
83
  }
84
+ /** 底部时间设置*/
85
+ export interface BottomTimeConfig {
86
+ isShow: boolean;
87
+ /** 采样率 */
88
+ sampleRate: number;
89
+ /** 增益 */
90
+ gain: number;
91
+ /** 走纸 */
92
+ speed: number;
93
+ startTime: string;
94
+ }
95
+ /** 顶部时间线设置*/
96
+ export interface TopTimeLineConfig {
97
+ isShow: boolean;
98
+ /** 采样率 */
99
+ sampleRate: number;
100
+ /** 增益 */
101
+ gain: number;
102
+ /** 走纸 */
103
+ speed: number;
104
+ /** 颜色 */
105
+ color: string;
106
+ startTime: string;
107
+ /** 开始画线时间*/
108
+ startLineTime: string;
109
+ /** 结束画线时间*/
110
+ endLineTime: string;
111
+ }
@@ -1,7 +1,7 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
2
  import type { Config as vueScrollConfig } from 'vuescroll';
3
3
  import { ZRenderType, Group, Polyline, Line, ElementEvent } from 'zrender';
4
- import { LeadModle, LongLeadConfig, SingleModeConfig, WaveConfig, BottomRulerConfig } from './interface';
4
+ import { LeadModle, LongLeadConfig, SingleModeConfig, WaveConfig, BottomRulerConfig, BottomTimeConfig, TopTimeLineConfig } from './interface';
5
5
  import { LeadHeadConfig, MXLeadConfig } from '../../types/EcgWave';
6
6
  import { MXGridConfig } from '../../types/BackgroundGrid';
7
7
  import { HandleScrollParams } from '../../types/Common';
@@ -20,6 +20,8 @@ export default class Methods extends Vue {
20
20
  protected leadModel: LeadModle;
21
21
  /** 底部导联尺子配置 */
22
22
  protected rulerConfig: BottomRulerConfig;
23
+ protected timeConfig: BottomTimeConfig;
24
+ protected timeLineConfig: TopTimeLineConfig;
23
25
  /** 导联配置 */
24
26
  protected leadConfig: MXLeadConfig;
25
27
  /** 网格配置 */
@@ -179,6 +181,11 @@ export default class Methods extends Vue {
179
181
  protected drawRulerNotes(): void;
180
182
  /** 绘制标尺 */
181
183
  protected drawRuler(startTimes?: number): void;
184
+ /** 绘制标尺 */
185
+ protected drawTopTimeLine(startTimes?: number): void;
186
+ timestampToTime(timestamp?: number): string;
187
+ /** 绘制标尺 */
188
+ protected drawTimeLine(startTimes?: number): void;
182
189
  /** 绘制展示波形相关 */
183
190
  protected drawWaveFrom(): void;
184
191
  /** 获取 视图 单导 的数据点位 */