cnhis-design-vue 3.2.3-beta.21 → 3.2.3-beta.22
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/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l,defaultLineStyle as i,defaultTextStyle as n}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import{isNumber as o}from"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{ECG as d}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as m}from"./useElectrocardiogram.js";import{useMeasureInstrument as s}from"./useMeasureInstrument.js";function v(v,c,g,h,f,p){const N=e(),
|
|
1
|
+
import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l,defaultLineStyle as i,defaultTextStyle as n}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import{isNumber as o}from"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{ECG as d}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as m}from"./useElectrocardiogram.js";import{useMeasureInstrument as s}from"./useMeasureInstrument.js";function v(v,c,g,h,f,p){const N=e(),b=e(),M=e(),L=e(),y=a((()=>c.data.width)),x=a((()=>c.data.height)),C=a((()=>(y.value-0)/w.value)),S=a((()=>(x.value-0)/E.value)),w=a((()=>{const{dataList:e,config:a,grid:t}=c.data;if(o(t.gridXNumber))return t.gridXNumber;const r=e[e.length-1].data.length/a.hz;return Math.ceil(r/a.mainXCellValue)})),E=a((()=>{const{config:e,grid:a,dataList:t}=c.data;if(o(a.gridYNumber))return a.gridYNumber;const r=t.length;return Math.ceil(X.value*r*2/e.mainYCellValue)})),X=a((()=>{const{dataList:e,config:a}=c.data,t=e[e.length-1].data,r=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*r:"v"===a.valueUnit?1e3*r:r})),Y=a((()=>{var e;return(null==(e=c.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),j=a((()=>{const{mode:e="2-6"}=c.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),R=a((()=>{const{rowNumber:e}=j.value,{dataList:a}=c.data,t=a.length;return Math.round(E.value/(e+(t===d.MAXLINENUMBER?1:0)))})),I=a((()=>{const{dataList:e,width:a,config:t,grid:r}=c.data,{columnNumber:u,rowNumber:l}=j.value,i=a/u,n=e.length,o=Math.ceil(R.value/2),m=function(){const{valueUnit:a,mainYCellValue:r}=t,l=e[0].data,i=d(Math.max(...l));if(2!==u)return i;const n=e[6].data,o=d(Math.max(...n));return Math.max(i,o);function d(e){return("uv"===a?.001*e:"v"===a?1e3*e:e)/r*S.value}}(),s=S.value*o,v=1===u||s<m?S.value*Math.ceil(m/S.value):s,g=4===u?0:C.value;return e.map(((e,a)=>{const t=d.MAXLINENUMBER===n&&a===n-1?l:a%l;return{...e,origin:{x:(d.MAXLINENUMBER===n&&a===n-1?0:Math.floor(a/l))*i+g,y:t*(S.value*R.value)+v,rowIdx:t}}}))})),U=a((()=>{var e;const{calibrationLineGridYNumber:a,mainYCellValue:t}=(null==(e=c.data)?void 0:e.config)||{};return a?S.value*a:t?S.value/t:S.value})),A=t({canvasWidth:c.data.width,canvasHeight:c.data.height,borderStyle:{...l,...c.data.borderStyle},lineStyle:{...i,...c.data.lineStyle},titleStyle:{...n,...c.data.titleStyle},measureLineStyle:{...i,...c.data.measureLineStyle},measureTextStyle:{...n,...c.data.measureTextStyle},grid:c.data.grid,originX:0,endX:y.value,originY:0,endY:x.value,xCellWidth:C.value,yCellHeight:S.value,gridXNumber:w.value,gridYNumber:E.value,event:Y.value,dataList:I.value,columnNumber:r(j).columnNumber,rowNumber:r(j).rowNumber,config:c.data.config,calibrationLineHeight:r(U)});return u((()=>v.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:r}=s(v,A),{updatePolyline:u}=m(v,A,a);b.value=e,M.value=t,L.value=r,N.value=u}()}),{immediate:!0}),{propItems:A,updatePolyline:N,useMeasureRuler:b,useCaliper:M,useCaliperRuler:L,getGridInfo:function(){return{cellWidth:C.value,cellHeight:S.value,smallCellNumber:d.SMALLCELLNUMBER}}}}export{v as useElectrocardiogramChart};
|
|
@@ -457,9 +457,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
457
457
|
requiredDisable: boolean;
|
|
458
458
|
hide: boolean;
|
|
459
459
|
}>;
|
|
460
|
-
isHighlightRow: boolean;
|
|
461
460
|
idx: number;
|
|
462
461
|
isHighlight: boolean;
|
|
462
|
+
isHighlightRow: boolean;
|
|
463
463
|
}>;
|
|
464
464
|
EditDialog: import("vue").DefineComponent<{
|
|
465
465
|
visible: {
|
|
@@ -575,9 +575,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
575
575
|
requiredDisable: boolean;
|
|
576
576
|
hide: boolean;
|
|
577
577
|
}>;
|
|
578
|
-
isHighlightRow: boolean;
|
|
579
578
|
idx: number;
|
|
580
579
|
isHighlight: boolean;
|
|
580
|
+
isHighlightRow: boolean;
|
|
581
581
|
}>;
|
|
582
582
|
isArray: {
|
|
583
583
|
(value?: any): value is any[];
|
|
@@ -282,8 +282,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
282
|
requiredDisable: boolean;
|
|
283
283
|
hide: boolean;
|
|
284
284
|
}>;
|
|
285
|
-
isHighlightRow: boolean;
|
|
286
285
|
idx: number;
|
|
287
286
|
isHighlight: boolean;
|
|
287
|
+
isHighlightRow: boolean;
|
|
288
288
|
}>;
|
|
289
289
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.3-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.3-beta.22",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.3-beta.22",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.2.3-beta.
|
|
3
|
+
"version": "3.2.3-beta.22",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"iOS 7",
|
|
72
72
|
"last 3 iOS versions"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e6767c2d0b35d4f6433709c17f61417d5c8f54d3"
|
|
75
75
|
}
|