chore(core): Use hide, not render
This commit is contained in:
parent
026560ef24
commit
5dc7401308
82 changed files with 337 additions and 293 deletions
|
@ -32,7 +32,7 @@ export const plugin = {
|
|||
this.points[prefix + 'Cp2'],
|
||||
this.points[prefix + 'p2']
|
||||
)
|
||||
.setRender(false)
|
||||
.hide()
|
||||
|
||||
this.points[prefix + 'p2'] = this.paths.auxiliaryPath.intersectsX(0)[0] //the new point p2 is the one in which the auxiliary curve intersects x=0
|
||||
this.paths.auxiliaryPath = this.paths.auxiliaryPath.split(this.points[prefix + 'p2'])[0] //the auxiliary curve is split
|
||||
|
@ -51,8 +51,8 @@ export const plugin = {
|
|||
.close()
|
||||
.attr('class', so.class ? so.class : '')
|
||||
|
||||
if (typeof so.render !== 'undefined' && so.render) this.paths[prefix + 'seam'].render = true
|
||||
else this.paths[prefix + 'seam'].render = false
|
||||
if (so?.hidden) this.paths[prefix + 'seam'].hide()
|
||||
else this.paths[prefix + 'seam'].unhide()
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -31,9 +31,8 @@ export const plugin = {
|
|||
this.points[prefix + 'End']
|
||||
)
|
||||
.attr('class', so.class ? so.class : '')
|
||||
if (typeof so.render !== 'undefined' && so.render)
|
||||
this.paths[prefix + 'Rounded'].render = true
|
||||
else this.paths[prefix + 'Rounded'].render = false
|
||||
if (so?.hidden) this.paths[prefix + 'Rounded'].hide()
|
||||
else this.paths[prefix + 'Rounded'].unhide()
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ export const plugin = {
|
|||
: (svg.defs += grid.metric)
|
||||
for (const key in svg.pattern.parts) {
|
||||
const part = svg.pattern.parts[key]
|
||||
if (part.render && svg.pattern.needs(key)) {
|
||||
if (!part.hidden && svg.pattern.needs(key)) {
|
||||
let anchor = new svg.pattern.Point(0, 0)
|
||||
if (typeof part.points.gridAnchor !== 'undefined') anchor = part.points.gridAnchor
|
||||
else if (typeof part.points.anchor !== 'undefined') anchor = part.points.anchor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue