|
@@ -853,7 +853,13 @@ async function getIconDefs(url: string) {
|
|
}
|
|
}
|
|
|
|
|
|
const downloadSvg = async () => {
|
|
const downloadSvg = async () => {
|
|
- await import('@/assets/canvas2svg');
|
|
|
|
|
|
+ // await import('@/assets/canvas2svg');
|
|
|
|
+ for (const pen of meta2d.store.data.pens) {
|
|
|
|
+ if (pen.calculative.img) {
|
|
|
|
+ //重新生成绘制图片
|
|
|
|
+ pen.onRenderPenRaw?.(pen);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (!C2S) {
|
|
if (!C2S) {
|
|
MessagePlugin.error('请先加载乐吾乐官网下的canvas2svg.js');
|
|
MessagePlugin.error('请先加载乐吾乐官网下的canvas2svg.js');
|
|
return;
|
|
return;
|