aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryunahi <60233430+yunahi@users.noreply.github.com>2020-06-27 01:40:00 +0900
committeryunahi <60233430+yunahi@users.noreply.github.com>2020-06-27 01:40:00 +0900
commitbda2ce11499dce2f4647f582c9e4930bf18770ce (patch)
tree41b1462704aa4964a4a3c8484b0b1b06db81b0cf
parenta4d20e9da3078c00147ca16a25b39ce5c81173ff (diff)
fixed arrow/dot?
-rw-r--r--src/client/util/InteractionUtils.tsx11
-rw-r--r--src/client/views/collections/collectionFreeForm/InkOptionsMenu.tsx6
2 files changed, 9 insertions, 8 deletions
diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx
index c38c9b9c2..3634fb704 100644
--- a/src/client/util/InteractionUtils.tsx
+++ b/src/client/util/InteractionUtils.tsx
@@ -121,12 +121,12 @@ export namespace InteractionUtils {
return (<svg fill={fill === "none" ? color : fill}> {/* setting the svg fill sets the arrowhead fill */}
{nodefs ? (null) : <defs>
<marker id={`dot${defGuid}`} orient="auto" overflow="visible">
- <circle r={0.5} fill="context-stroke" />
+ <circle r={1} fill="context-stroke" />
</marker>
- <marker id={`arrowHead${defGuid}`} orient="auto" overflow="visible" refX="3" refY="0" markerWidth="10" markerHeight="7">
- <polygon points="10 -5, 10 5, 0 0" />
+ <marker id={`arrowHead${defGuid}`} orient="auto" overflow="visible" refX="3" refY="1" markerWidth="10" markerHeight="7">
+ <polygon points="3 0, 3 2, 0 1" />
</marker>
- <marker id={`arrowEnd${defGuid}`} orient="auto" overflow="visible" refX="3" refY="1" markerWidth="10" markerHeight="7">
+ <marker id={`arrowEnd${defGuid}`} orient="auto" overflow="visible" refX="0" refY="1" markerWidth="10" markerHeight="7">
<polygon points="0 0, 3 1, 0 2" />
</marker>
@@ -142,7 +142,8 @@ export namespace InteractionUtils {
stroke: color ?? "rgb(0, 0, 0)",
strokeWidth: strokeWidth,
strokeLinejoin: "round",
- strokeLinecap: "round"
+ strokeLinecap: "round",
+ strokeDasharray: dashArray
}}
markerStart={`url(#${arrowStart + defGuid})`}
markerEnd={`url(#${arrowEnd + defGuid})`}
diff --git a/src/client/views/collections/collectionFreeForm/InkOptionsMenu.tsx b/src/client/views/collections/collectionFreeForm/InkOptionsMenu.tsx
index e43e6bbdd..f1032adaa 100644
--- a/src/client/views/collections/collectionFreeForm/InkOptionsMenu.tsx
+++ b/src/client/views/collections/collectionFreeForm/InkOptionsMenu.tsx
@@ -303,9 +303,9 @@ export default class InkOptionsMenu extends AntimodeMenu {
render() {
const buttons = [
- <button className="antimodeMenu-button" title="Drag" key="drag" onPointerDown={e => this.dragStart(e)}>
- <FontAwesomeIcon icon="arrows-alt" size="lg" />
- </button>,
+ // <button className="antimodeMenu-button" title="Drag" key="drag" onPointerDown={e => this.dragStart(e)}>
+ // <FontAwesomeIcon icon="arrows-alt" size="lg" />
+ // </button>,
this.shapePicker,
this.bezierButton,
this.widthPicker,