🚧 preSvgRender and postSvgRender hooks
This commit is contained in:
parent
5d81c6d50a
commit
8050628848
2 changed files with 26 additions and 27 deletions
|
@ -48,7 +48,8 @@ export class Pattern {
|
|||
|
||||
render(): string {
|
||||
let svg = new Svg(this);
|
||||
this.hooks.attach('loadStyle', svg);
|
||||
this.hooks.attach('preSvgRender', svg);
|
||||
this.hooks.attach('postSvgRender', svg);
|
||||
//svg.pre('preRenderSvg', function(next) {
|
||||
// console.log('manual attach');
|
||||
// this.style += "path {stroke: #000; fill: none;}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue