1
0
Fork 0

Merge branch 'develop' into more-lint

This commit is contained in:
Joost De Cock 2022-09-28 19:09:50 +02:00 committed by GitHub
commit c0ede14d74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
118 changed files with 2870 additions and 4892 deletions

View file

@ -6,6 +6,7 @@ export const plugin = {
macros: {
round: function (so) {
const C = 0.55191502449
const { hide = true } = so
// Find angle between points
let from = so.from
let to = so.to
@ -31,7 +32,7 @@ export const plugin = {
this.points[prefix + 'End']
)
.attr('class', so.class ? so.class : '')
if (so?.hidden) this.paths[prefix + 'Rounded'].hide()
if (hide) this.paths[prefix + 'Rounded'].hide()
else this.paths[prefix + 'Rounded'].unhide()
},
},