🚧 Fixed a bug and two typos
This commit is contained in:
parent
7cc632ff45
commit
20e4ada666
2 changed files with 3 additions and 4 deletions
|
@ -52,9 +52,8 @@ export class Pattern {
|
||||||
return this.svg.render(this);
|
return this.svg.render(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Add hook */
|
|
||||||
on(hook, method): void {
|
on(hook, method): void {
|
||||||
if(typeof this.hooks._hooks[method] === 'undefined') {
|
if(typeof this.hooks._hooks[hook] === 'undefined') {
|
||||||
this.hooks._hooks[hook] = [];
|
this.hooks._hooks[hook] = [];
|
||||||
}
|
}
|
||||||
this.hooks._hooks[hook].push(method);
|
this.hooks._hooks[hook].push(method);
|
||||||
|
|
|
@ -84,7 +84,7 @@ export class Svg {
|
||||||
this.indent();
|
this.indent();
|
||||||
svg += this.nl()+this.style;
|
svg += this.nl()+this.style;
|
||||||
this.outdent();
|
this.outdent();
|
||||||
svg += this.nl()+']]> >'+this.nl()+'</style>'+this.nl();
|
svg += this.nl()+']]>'+this.nl()+'</style>'+this.nl();
|
||||||
return svg;
|
return svg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ export class Svg {
|
||||||
this.indent();
|
this.indent();
|
||||||
svg += this.nl()+this.script;
|
svg += this.nl()+this.script;
|
||||||
this.outdent();
|
this.outdent();
|
||||||
svg += this.nl()+']]> >'+this.nl()+'</script>'+this.nl();
|
svg += this.nl()+']]>'+this.nl()+'</script>'+this.nl();
|
||||||
|
|
||||||
return svg;
|
return svg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue