chore(legends): Don't put text on examples
This commit is contained in:
parent
056f908287
commit
d14d626103
2 changed files with 4 additions and 4 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue