Upload VectorRenderManager.ts
Browse files
frontend/src/utils/VectorRenderManager.ts
CHANGED
|
@@ -358,6 +358,15 @@ export class VectorRenderManager {
|
|
| 358 |
const width = rect.width || 100;
|
| 359 |
const height = rect.height || 100;
|
| 360 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
// 创建简化的SVG
|
| 362 |
const simplifiedSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}">
|
| 363 |
<rect width="100%" height="100%" fill="#f0f0f0" stroke="#ccc" stroke-width="1"/>
|
|
|
|
| 358 |
const width = rect.width || 100;
|
| 359 |
const height = rect.height || 100;
|
| 360 |
|
| 361 |
+
// 处理 vector-effect 相关的元素
|
| 362 |
+
const vectorEffectElements = element.querySelectorAll('[vector-effect], .vector-path-element');
|
| 363 |
+
vectorEffectElements.forEach(el => {
|
| 364 |
+
// 移除 vector-effect 属性
|
| 365 |
+
el.removeAttribute('vector-effect');
|
| 366 |
+
// 移除 vector-path-element 类
|
| 367 |
+
el.classList.remove('vector-path-element');
|
| 368 |
+
});
|
| 369 |
+
|
| 370 |
// 创建简化的SVG
|
| 371 |
const simplifiedSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}">
|
| 372 |
<rect width="100%" height="100%" fill="#f0f0f0" stroke="#ccc" stroke-width="1"/>
|