1
0
Fork 0

construction: Code cleanup

This commit is contained in:
Joost De Cock 2018-07-22 20:42:17 +02:00
parent 6efda92f63
commit 597519fc6b
2 changed files with 5 additions and 7 deletions

View file

@ -13,13 +13,11 @@ module.exports = {
}
, macros: {
title: function(next, so) {
let points = this.points;
so.at.attr('data-text', so.nr)
.attr('data-text-class', 'title-nr');
points.titleName = so.at.shift(-90, 20)
so.at.attr('data-text', so.nr).attr('data-text-class', 'title-nr');
this.points.titleName = so.at.shift(-90, 20)
.attr('data-text', title)
.attr('data-text-class', 'title-name');
points.titlePattern = so.at.shift(-90, 40)
this.points.titlePattern = so.at.shift(-90, 40)
.attr('data-text', pattern)
.attr('data-text-class', 'title-pattern');
next();