feat(core): Added the path.noop() method to core
This commit is contained in:
parent
e9b003920c
commit
d906d68613
1 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,13 @@ Path.prototype.close = function() {
|
|||
return this
|
||||
}
|
||||
|
||||
/** Adds a noop operation */
|
||||
Path.prototype.noop = function(id = false) {
|
||||
this.ops.push({ type: 'noop', id })
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
/** Adds an attribute. This is here to make this call chainable in assignment */
|
||||
Path.prototype.attr = function(name, value, overwrite = false) {
|
||||
if (overwrite) this.attributes.set(name, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue