|
@@ -2,7 +2,7 @@
|
|
|
* @Author: LiZhiWei
|
|
|
* @Date: 2025-04-10 14:38:27
|
|
|
* @LastEditors: LiZhiWei
|
|
|
- * @LastEditTime: 2025-04-27 08:36:57
|
|
|
+ * @LastEditTime: 2025-04-29 10:25:59
|
|
|
* @Description:
|
|
|
-->
|
|
|
<template>
|
|
@@ -1996,9 +1996,11 @@ const createShapeElement = (element) => {
|
|
|
"http://www.w3.org/2000/svg",
|
|
|
"circle"
|
|
|
)
|
|
|
+ const fmla = element?.formulas[0].split(" ")[1]
|
|
|
+ console.log('fmla', fmla)
|
|
|
innerCircle.setAttribute("cx", element.width / 2)
|
|
|
innerCircle.setAttribute("cy", element.height / 2)
|
|
|
- innerCircle.setAttribute("r", Math.min(element.width, element.height) / 4)
|
|
|
+ innerCircle.setAttribute("r", Math.min(element.width, element.height)/2 * (1- Math.sqrt(fmla/100000)/2))
|
|
|
|
|
|
// 设置填充色
|
|
|
setBackground(element, outerCircle)
|