mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
emphasise when split affects multiple ways
* new icon with two "sciscors" indicates that there will be more than one split perfomed * the tooltip mentions that one can limit to a single line closes #8818
This commit is contained in:
+2
-2
@@ -468,8 +468,8 @@ en:
|
||||
single_node: Divide this line into two at this point.
|
||||
multiple_node: Divide this line at these points.
|
||||
multiple:
|
||||
single_node: Divide these lines at this point.
|
||||
multiple_node: Divide these lines at these points.
|
||||
single_node: "Divide all lines at this point. Tip: To limit this operation to a specific line, select both the line and point before performing the split."
|
||||
multiple_node: "Divide all lines at these points. Tip: To limit this operation to a specific line, select the line as well as the points before performing the split."
|
||||
area:
|
||||
single:
|
||||
single_node: Divide the edge of this area into two at this point.
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -77,6 +77,14 @@ export function operationSplit(context, selectedIDs) {
|
||||
return t('operations.split.annotation.' + _geometry, { n: _ways.length });
|
||||
};
|
||||
|
||||
operation.icon = function() {
|
||||
if (_waysAmount === 'multiple') {
|
||||
return '#iD-operation-split-multiple';
|
||||
} else {
|
||||
return '#iD-operation-split';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
operation.id = 'split';
|
||||
operation.keys = [t('operations.split.key')];
|
||||
|
||||
@@ -114,7 +114,7 @@ export function uiEditMenu(context) {
|
||||
.call(tooltip)
|
||||
.append('div')
|
||||
.attr('class', 'icon-wrap')
|
||||
.call(svgIcon('#iD-operation-' + d.id, 'operation'));
|
||||
.call(svgIcon(d.icon && d.icon() || '#iD-operation-' + d.id, 'operation'));
|
||||
});
|
||||
|
||||
if (showLabels) {
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
x="0"
|
||||
y="0"
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 20 20"
|
||||
id="svg4"
|
||||
sodipodi:docname="operation-split-multiple.svg"
|
||||
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1884"
|
||||
inkscape:window-height="2096"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="32"
|
||||
inkscape:cx="11.531136"
|
||||
inkscape:cy="22.639016"
|
||||
inkscape:window-x="1956"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
style="stroke-width:0.94534558"
|
||||
d="m 3.3515625,1.4042969 c -0.9453456,0 -1.890625,0.9452795 -1.890625,1.890625 v 1.890625 H 4.296875 L 6.1875,6.1308594 4.296875,7.0761719 H 1.4609375 v 1.890625 c 0,0.9453456 0.9452794,1.8906251 1.890625,1.8906251 l 0.066291,0.01105 -0.00678,-0.343914 c -0.00651,-0.256267 0.00548,-0.398159 0.053768,-0.5851046 -0.1452918,0.00768 -0.109145,-0.00229 -0.109145,-0.00229 0,0 -0.9494488,-0.025022 -0.9494488,-0.9703681 V 8.0214844 H 6.1875 c 1.5478745,0.021396 0,0 1.4202466,0.012016 L 8.078125,7.0761719 16.585938,2.3496094 c 0,0 6.4e-5,-0.9453125 -1.890626,-0.9453125 L 8.0488281,5.0976562 7.1328125,3.2949219 C 6.6658118,2.3609205 6.1875661,1.4042969 4.296875,1.4042969 Z m 0,0.9453125 h 1.890625 L 6.1875,4.2402344 H 2.40625 V 3.2949219 c 0,-0.957635 0.9453125,-0.9453125 0.9453125,-0.9453125 z M 11.003906,6.8105469 9.1132812,7.7558594 13.617188,10.355469 15.527344,9.2988281 Z"
|
||||
id="path2"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="sscccccssccccsccccccccssccccscccccc" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 6.0834963,8.7362595 c -0.9453455,0 -1.8906912,0.945346 -1.8906912,1.8906925 v 1.890692 H 7.0288419 L 8.9195338,13.46299 7.0288419,14.408334 H 4.1928051 v 1.890692 c 0,0.945345 0.9453457,1.89069 1.8906912,1.89069 h 0.9453456 c 1.8906919,0 2.3510749,-0.920767 2.8360379,-1.89069 l 0.9453452,-1.890692 8.508111,-4.7267285 c 0,0 0,-0.945346 -1.890691,-0.945346 L 10.78092,12.428781 9.8648798,10.626952 C 9.3978788,9.6929495 8.9195338,8.7362595 7.0288419,8.7362595 Z m 0,0.945346 h 1.8906912 l 0.9453463,1.8906915 h -3.781383 c 0,0 0,-0.630545 0,-0.945345 0,-0.9576365 0.9453455,-0.9453465 0.9453455,-0.9453465 z m 7.6516287,4.4610875 -1.890692,0.945345 5.583212,3.101678 c 1.890691,0 1.890691,-0.945345 1.890691,-0.945345 z M 5.1381508,15.35368 h 3.781383 L 7.9741875,17.244371 H 6.0834963 c 0,0 -0.9453455,0 -0.9453455,-0.945345 z"
|
||||
fill="inherit"
|
||||
id="path2-3"
|
||||
style="stroke-width:0.94534558" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user