feat(core): Added path.addText and path.setText methods
Also added a parameter to path.reverse to make it a deep clone.
This commit is contained in:
parent
ba2eef45ff
commit
3cb5384df5
3 changed files with 34 additions and 4 deletions
|
@ -149,8 +149,9 @@ Pattern.prototype.draft = function () {
|
|||
this.setStores[set].log.error(
|
||||
`Unable to draft pattern part __${partName}__. Part.draft() is not callable`
|
||||
)
|
||||
this.parts[set][partName].hidden =
|
||||
this.parts[set][partName].hidden === true ? true : !this.__wants(partName, set)
|
||||
// FIXME: THis won't work not that this is immutable
|
||||
// But is it still needed?
|
||||
// this.parts[set][partName].hidden === true ? true : !this.__wants(partName, set)
|
||||
} else {
|
||||
this.setStores[set].log.debug(
|
||||
`Part \`${partName}\` is not needed. Skipping draft and setting hidden to \`true\``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue