1
0
Fork 0

🚧 preSvgRender and postSvgRender hooks

This commit is contained in:
joostdecock 2018-07-18 07:39:29 +00:00
parent 5d81c6d50a
commit 8050628848
2 changed files with 26 additions and 27 deletions

View file

@ -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;}";