+
-
@@ -518,8 +518,8 @@ const fetchData = async () => {
//ecgCenter.offsetWidth
//ecgCenter.offsetHeight
- let targetWidth = 1760
- let targetHeight = 862
+ let targetWidth = 1164
+ let targetHeight = 624
let options = {
allowTaint: false,
taintTest: false,
@@ -528,7 +528,7 @@ const fetchData = async () => {
width: targetWidth,
height: targetHeight,
dpi: 300, //将分辨率提高到特定的DPI 提高四倍
- scale: 1.14 //按比例增加分辨率
+ scale: 1.2 //按比例增加分辨率
} as any
const canvas = await html2canvas(ecgCenter, options)
if (canvas) {
@@ -602,7 +602,7 @@ const createImage = async () => {
/** 钩子方法 **/
onMounted(async () => {
//heightoff.value = (leftCanvas.value.height - 100) / 6
- heightoff.value = (821 - 0) / 6
+ heightoff.value = (618 - 0) / 6
await fetchData()
})
@@ -623,13 +623,13 @@ defineExpose({ ecg_loading })
margin: 1px;
padding: 1px;
position: relative;
- width: 99.2%;
+ width: 99.888%;
min-height: 204mm;
}
.ecg-main {
- margin-top: 8px;
- margin-bottom: 26px;
+ margin-top: 4px;
+ margin-bottom: 30px;
}
/*** ecg核心 ***/
@@ -648,8 +648,14 @@ defineExpose({ ecg_loading })
position: relative;
overflow-x: hidden;
overflow-y: hidden;
+}
+
+#canvas-container-l {
+ width: calc(50% - 1px);
+}
+
+#canvas-container-r {
width: 50%;
- margin-right: 0;
}
#leftCanvas,