mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Don't show pattern fills on are preset icons (re: #6900)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { select as d3_select } from 'd3-selection';
|
||||
|
||||
import { svgTagClasses } from '../svg/tag_classes';
|
||||
import { svgIcon } from '../svg/icon';
|
||||
import { svgTagPattern } from '../svg/tag_pattern';
|
||||
import { svgIcon, svgTagClasses } from '../svg';
|
||||
import { utilFunctor } from '../util';
|
||||
|
||||
export function uiPresetIcon(context) {
|
||||
@@ -284,15 +282,10 @@ export function uiPresetIcon(context) {
|
||||
renderSquareFill(fillEnter);
|
||||
fill = fillEnter.merge(fill);
|
||||
|
||||
var patternID = svgTagPattern(tags);
|
||||
var patternStyle = patternID ? 'url("#' + patternID + '")' : null;
|
||||
|
||||
fill.selectAll('path.stroke')
|
||||
.attr('class', 'area stroke ' + tagClasses);
|
||||
fill.selectAll('path.fill')
|
||||
.attr('class', 'area fill ' + tagClasses)
|
||||
.style('fill', patternStyle)
|
||||
.style('stroke', patternStyle);
|
||||
.attr('class', 'area fill ' + tagClasses);
|
||||
|
||||
|
||||
var line = container.selectAll('.preset-icon-line')
|
||||
|
||||
Reference in New Issue
Block a user