1
0
Fork 0

chore(legends): Don't put text on examples

This commit is contained in:
Joost De Cock 2023-10-12 19:42:17 +02:00
parent 056f908287
commit d14d626103
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import { box } from './shared.mjs'
function legendBartack({ points, Point, macro, part }) {
points.bartack = new Point(40, 20).attr('data-text', 'bartack').attr('data-text-dy', -2)
points.bartack = new Point(40, 10).attr('data-text', 'bartack').attr('data-text-dy', -2)
macro('bartack', {
anchor: points.bartack,
prefix: 'a',
@ -9,7 +9,7 @@ function legendBartack({ points, Point, macro, part }) {
length: 23,
})
return box(part, 100, 65)
return box(part, 100, 15)
}
export const bartack = {

View file

@ -1,7 +1,7 @@
import { box } from './shared.mjs'
function legendTitle({ points, Point, macro, part }) {
points.a = new Point(30, 30)
points.a = new Point(80, 50)
macro('title', {
at: points.a,
@ -9,7 +9,7 @@ function legendTitle({ points, Point, macro, part }) {
title: 'Part name',
})
return box(part, 100, 65)
return box(part, 200, 95)
}
export const title = {