@titaui/pc 1.9.84 → 1.9.85
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.
|
@@ -119,7 +119,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
119
119
|
|
|
120
120
|
canvas = document.createElement("canvas"); // 创建一个canvas节点
|
|
121
121
|
|
|
122
|
-
scale =
|
|
122
|
+
scale = 20; // 定义任意放大倍数 支持小数
|
|
123
123
|
|
|
124
124
|
canvas.width = width * scale; // 定义canvas 宽度 * 缩放
|
|
125
125
|
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ const ExportMapModal: FC<IProps> = (props: IProps) => {
|
|
|
59
59
|
const width = okrMapRef.clientWidth; // 获取dom 宽度
|
|
60
60
|
const height = okrMapRef.clientHeight; // 获取dom 高度
|
|
61
61
|
const canvas = document.createElement("canvas"); // 创建一个canvas节点
|
|
62
|
-
const scale =
|
|
62
|
+
const scale = 20; // 定义任意放大倍数 支持小数
|
|
63
63
|
canvas.width = width * scale; // 定义canvas 宽度 * 缩放
|
|
64
64
|
canvas.height = height * scale; // 定义canvas高度 *缩放
|
|
65
65
|
canvas.style.width = `${width}px`;
|