1
0
Fork 0

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:
Joost De Cock 2022-09-27 18:22:56 +02:00
parent ba2eef45ff
commit 3cb5384df5
3 changed files with 34 additions and 4 deletions

View file

@ -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\``