1
0
Fork 0

feat(plugin-scalebox): Added utility classes for better styling support

This commit is contained in:
Joost De Cock 2021-12-22 18:18:48 +01:00
parent 4d441f4eec
commit 6b70e0e6e9
3 changed files with 8 additions and 4 deletions

View file

@ -55,14 +55,14 @@ export default function (so) {
}
// Paths
this.paths.__miniscaleImperial = new this.Path()
.attr('class', 'scalebox imperial')
.attr('class', 'scalebox imperial fill-current')
.move(this.points.__miniscaleImperialTopLeft)
.line(this.points.__miniscaleImperialBottomLeft)
.line(this.points.__miniscaleImperialBottomRight)
.line(this.points.__miniscaleImperialTopRight)
.close()
this.paths.__miniscaleMetric = new this.Path()
.attr('class', 'scalebox metric')
.attr('class', 'scalebox metric fill-bg')
.move(this.points.__miniscaleMetricTopLeft)
.line(this.points.__miniscaleMetricBottomLeft)
.line(this.points.__miniscaleMetricBottomRight)