浏览代码

use same selection icon

Ryan Di 1 月之前
父节点
当前提交
a22f311bab
共有 2 个文件被更改,包括 2 次插入24 次删除
  1. 2 2
      packages/excalidraw/components/Actions.tsx
  2. 0 22
      packages/excalidraw/components/icons.tsx

+ 2 - 2
packages/excalidraw/components/Actions.tsx

@@ -63,7 +63,7 @@ import {
   laserPointerToolIcon,
   laserPointerToolIcon,
   MagicIcon,
   MagicIcon,
   LassoIcon,
   LassoIcon,
-  LassoIconMobile,
+  SelectionIcon,
 } from "./icons";
 } from "./icons";
 
 
 import type { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
 import type { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
@@ -309,7 +309,7 @@ export const ShapesSwitcher = ({
       ? ([
       ? ([
           {
           {
             value: "lasso",
             value: "lasso",
-            icon: LassoIconMobile,
+            icon: SelectionIcon,
             key: KEYS.L,
             key: KEYS.L,
             numericKey: KEYS["1"],
             numericKey: KEYS["1"],
             fillable: true,
             fillable: true,

+ 0 - 22
packages/excalidraw/components/icons.tsx

@@ -314,28 +314,6 @@ export const LassoIcon = createIcon(
   { fill: "none", width: 22, height: 22, strokeWidth: 1.25 },
   { fill: "none", width: 22, height: 22, strokeWidth: 1.25 },
 );
 );
 
 
-export const LassoIconMobile = createIcon(
-  <g>
-    <path
-      d="M2.5 12
-       C2.5 6.5, 8 4.5, 15 7.5
-       C21 9, 22 12, 20 14.5
-       C18 17, 11.5 17.5, 7 16
-       C4 15.2, 2.5 13.5, 2.5 12Z"
-      fill="none"
-      stroke="black"
-      strokeDasharray="2 2"
-      strokeLinecap="round"
-      strokeLinejoin="round"
-    />
-  </g>,
-  {
-    width: 24,
-    height: 24,
-    strokeWidth: 1.5,
-  },
-);
-
 // tabler-icons: square
 // tabler-icons: square
 export const RectangleIcon = createIcon(
 export const RectangleIcon = createIcon(
   <g strokeWidth="1.5">
   <g strokeWidth="1.5">