cnhis-design-vue 3.1.17-beta.9 → 3.1.17

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.
@@ -228,14 +228,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
228
228
  });
229
229
  }
230
230
  function drawPolyLine(item, dataIndex, scaleValue) {
231
- const {
232
- pointAttr = {},
233
- lineAttr = {},
234
- noRiseStyle = {},
235
- verifiedStyle = {},
236
- reduceStyle = {},
237
- type = "circle"
238
- } = item;
231
+ const { pointAttr = {}, lineAttr = {}, type = "circle" } = item;
232
+ const { noRiseStyle = {}, verifiedStyle = {}, reduceStyle = {}, pacemaker = {} } = scaleValue;
239
233
  const pointList = [];
240
234
  const lineList = [];
241
235
  const otherList = [];
@@ -337,11 +331,12 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
337
331
  reduceLine,
338
332
  reducePoint,
339
333
  lockMovementX: true,
340
- ...pointAttr,
334
+ ...pacemaker.show && scaleValue.type == "pulse" ? pacemaker.style : pointAttr,
341
335
  ...propItems.event
342
336
  };
337
+ const pointType = pacemaker.show && scaleValue.type == "pulse" ? pacemaker.value : type;
343
338
  if (previousLine) {
344
- point = drawPoint(type, {
339
+ point = drawPoint(pointType, {
345
340
  left: previousLine.get("x2"),
346
341
  top: previousLine.get("y2"),
347
342
  ...pointAttrNew
@@ -349,13 +344,13 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
349
344
  } else {
350
345
  if (points) {
351
346
  pointAttrNew.leftLine = null;
352
- if (scaleValue.type === "temperature" && index === 0) {
347
+ if (scaleValue.type == "temperature" && index === 0) {
353
348
  const objLine = [...prevLines].find((v2) => v2.dataIndex === dataIndex - 1);
354
349
  if (objLine) {
355
350
  pointAttrNew.leftLine = objLine.line;
356
351
  }
357
352
  }
358
- point = drawPoint(type, {
353
+ point = drawPoint(pointType, {
359
354
  left: points[0],
360
355
  top: points[1],
361
356
  ...pointAttrNew
@@ -120,7 +120,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
120
120
  }
121
121
  const rectWidth = index === 0 ? firstColWidth : colWidth;
122
122
  const rectLeft = index === 0 ? start : firstColWidth + start + (index - 1) * colWidth;
123
- const line = index > 0 ? new fabric.Line([rectLeft, painIndex == 0 ? vitalSignsOriginY.originY : originY, rectLeft, vitalSignsOriginY.endY], {
123
+ const line = index > 0 ? new fabric.Line([rectLeft, vitalSignsOriginY.originY, rectLeft, vitalSignsOriginY.endY], {
124
124
  ...defaultBorderStyle
125
125
  }) : null;
126
126
  line && list.push(line);
@@ -135,8 +135,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
135
135
  const top = vitalSignsOriginY.endY - i * yCellHeight * spaceGridNumber;
136
136
  const isMaxMinNumber = i === 0 || i === listLen - 1;
137
137
  if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
138
- const text = drawScaleNumber(v, item, textLeft, i === 0 ? top - 5 : top);
139
- list.push(text);
138
+ const y = i == 0 ? top - 5 : top;
139
+ y > vitalSignsOriginY.originY && list.push(drawScaleNumber(v, item, textLeft, y));
140
140
  }
141
141
  if (item.showScale && i !== listLen - 1) {
142
142
  for (let j = 0; j < 5; j++) {
@@ -144,9 +144,11 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
144
144
  const x1 = j == 0 ? lineXMain[0] : lineXSub[0];
145
145
  const x2 = j == 0 ? lineXMain[1] : lineXSub[1];
146
146
  const y = top - j * spaceScale;
147
- createLine([x1, y, x2, y]);
148
- if (i == listLen - 2 && j == 4) {
149
- createLine([lineXMain[0], y - spaceScale, lineXMain[1], y - spaceScale]);
147
+ if (y > vitalSignsOriginY.originY) {
148
+ createLine([x1, y, x2, y]);
149
+ if (i == listLen - 2 && j == 4) {
150
+ createLine([lineXMain[0], y - spaceScale, lineXMain[1], y - spaceScale]);
151
+ }
150
152
  }
151
153
  }
152
154
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.17-beta.9",
4
+ "version": "3.1.17",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",