polyline tools

This commit is contained in:
Fedor Katurov 2020-01-22 09:42:48 +07:00
parent 2d749166cf
commit 3de4c085da
3 changed files with 69 additions and 14 deletions

View file

@ -33,16 +33,16 @@ const PolylineDialogUnconnected: FC<Props> = ({ route, mapSetRoute }) => {
<div className="control-dialog control-dialog__medium">
<div className="helper">
<div className="helper__text">
<button className="helper__icon_button" onClick={reverseRoute}>
<Icon icon="icon-reverse" />
</button>
<button className="helper__icon_button" onClick={curRouteStart}>
<Icon icon="icon-pin-1" />
<Icon icon="icon-drop-start" />
</button>
<button className="helper__icon_button" onClick={curRouteEnd}>
<Icon icon="icon-pin-1" />
<Icon icon="icon-drop-end" />
</button>
<button className="helper__icon_button" onClick={reverseRoute}>
<Icon icon="icon-reverse" />
</button>
<div className="flex_1" />

View file

@ -370,6 +370,16 @@
<path d="M9.832 2.934c-.967 0-1.683-.018-1.683-.018L7.021 0l-3.1 6.51 5.843 2.368-.777-3.032s.351-.051.845-.052a6.974 6.974 0 016.973 6.972 6.973 6.973 0 01-.922 3.457l2.07 2.07a9.833 9.833 0 001.711-5.527c0-5.43-4.402-9.831-9.832-9.832zm-8.094 4.27A9.833 9.833 0 000 12.766c0 5.43 4.402 9.832 9.832 9.832 1.108 0 1.398-.153 1.398-.153l.902 2.4 3.734-5.378-6.43-1.959.914 2.2s.046.03-.518.031a6.974 6.974 0 01-6.973-6.973 6.974 6.974 0 01.948-3.494z" fill="#fff" />
</g>
</g>
<g id="icon-drop-start" stroke="none">
<g transform="translate(6 12)" fill="white">
<path d="M23.528 6.662H11.979L9.953 4.98l2.026-1.887h11.549zM7.572 9.755l2.183-2.183-2.696-2.695 2.696-2.695L7.572 0 4.877 2.695 2.182 0 0 2.182l2.695 2.695L0 7.572l2.182 2.183 2.695-2.696z" fill="#fff"/>
</g>
</g>
<g id="icon-drop-end" stroke="none">
<g transform="translate(6 12)" fill="white">
<path d="M0 3.093h11.548l2.026 1.681-2.026 1.888H0zM15.955 0l-2.182 2.182 2.695 2.695-2.695 2.695 2.182 2.183 2.695-2.696 2.696 2.696 2.182-2.183-2.696-2.695 2.696-2.695L21.346 0 18.65 2.695z" fill="#fff" />
</g>
</g>
</svg>
</defs>
<use xlink:href="#icon-trash-6" />

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

View file

@ -15,7 +15,7 @@
viewBox="0 0 600 32"
version="1.1"
id="svg8"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="icons_draft.svg">
<defs
id="defs2">
@ -48,20 +48,20 @@
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568542"
inkscape:cx="-59.116412"
inkscape:cy="72.422571"
inkscape:zoom="1"
inkscape:cx="22.770291"
inkscape:cy="17.290238"
inkscape:document-units="px"
inkscape:current-layer="svg8"
inkscape:current-layer="g2550"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1036"
inkscape:window-height="1015"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-y="25"
inkscape:window-maximized="1"
units="px"
inkscape:showpageshadow="false"
inkscape:snap-global="true" />
inkscape:snap-global="false" />
<metadata
id="metadata5">
<rdf:RDF>
@ -662,4 +662,49 @@
transform="matrix(2,0,0,2,128,98.814754)"
id="path8777" />
</g>
<g
id="g6599-3"
style="fill:#1a1a1a">
<rect
y="0"
x="0"
height="32"
width="32"
id="rect6597-6"
style="opacity:1;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.94117647" />
</g>
<g
id="g2523"
transform="translate(-352)">
<rect
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.94117647"
id="rect2521"
width="32"
height="32"
x="0"
y="0" />
</g>
<path
sodipodi:nodetypes="cccccccccccccccccccccccc"
inkscape:connector-curvature="0"
id="path2525"
d="m -336,6.1679688 c -0.96725,6.15e-5 -2.8393,0.419056 -2.8393,0.419056 l -0.81565,-1.6970847 -2.25681,4.8545539 5.09396,1.335474 -0.77694,-1.9377484 c 0,0 1.1011,-0.1135361 1.59474,-0.1148758 3.8507,4.733e-4 6.97218,3.1219602 6.97266,6.9726562 -0.001,1.212906 -0.31917,2.404467 -0.92188,3.457031 l 2.07031,2.070313 C -326.76713,19.898199 -326.171,17.972348 -326.16797,16 -326.16826,10.570039 -330.57004,6.168257 -336,6.1679688 Z m -8.09375,4.2695312 c -1.12822,1.635905 -1.73428,3.575276 -1.73828,5.5625 2.9e-4,5.429961 4.40207,9.831743 9.83203,9.832031 1.10826,-7e-5 2.50275,-0.418906 2.50275,-0.418906 l 0.63688,2.091388 2.49706,-5.245741 -5.01712,-1.384383 1.04758,1.891034 c 0,0 -1.10269,0.205584 -1.66715,0.207233 -3.8507,-4.73e-4 -6.97218,-3.12196 -6.97266,-6.972656 0.003,-1.227795 0.32942,-2.433127 0.94727,-3.494141 z"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.13512897;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g
id="g2550"
transform="translate(0.9697265,-0.5)"
style="fill:#ffffff">
<path
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.0570724;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 5,15 h 9.707804 L 16.41085,16.413321 14.707804,18 H 5 Z"
id="rect2536"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
inkscape:connector-curvature="0"
id="rect2540"
d="m 18.41211,12.400102 -1.834273,1.834273 2.265625,2.265625 -2.265625,2.265624 1.834273,1.834273 2.265624,-2.265625 2.265625,2.265625 1.834273,-1.834273 L 22.512007,16.5 l 2.265625,-2.265625 -1.834273,-1.834273 -2.265625,2.265625 z"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.94913757;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:nodetypes="ccccccccccccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before After
Before After