bill 2 månader sedan
förälder
incheckning
0325f6315d
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/core/hook/use-expose.ts

+ 2 - 2
src/core/hook/use-expose.ts

@@ -48,7 +48,7 @@ export const useAutoPaste = () => {
         console.log(val);
         if (isSvgString(val)) {
           const url = await resourceHandler(val, "svg");
-          drawAPI.addShape("icon", { url, stroke: themeColor, fill: null }, pos, true);
+          drawAPI.addShape("icon", { url, stroke: '#000000', fill: null }, pos, true);
         } else {
           drawAPI.addShape("text", { content: val }, pos, true);
         }
@@ -59,7 +59,7 @@ export const useAutoPaste = () => {
       async handler(pos, val, type) {
         const url = await resourceHandler(val, type);
         if (type.includes("svg")) {
-          drawAPI.addShape("icon", { url, stroke: themeColor, fill: null }, pos, true);
+          drawAPI.addShape("icon", { url, stroke: '#000000', fill: null }, pos, true);
         } else {
           const image = await getImage(url);
           drawAPI.addShape(