fix(plugin-annotations): Force rendering points for title
This commit is contained in:
parent
b8efc700e7
commit
d9e566ad12
1 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,7 @@ const addTitleMacro = function (
|
|||
.attr('data-text', mc.nr, mc.append ? false : true)
|
||||
.attr('data-text-class', `${mc.classes.nr} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
store.set(['partNumbers', part.name], mc.nr)
|
||||
} else delete ids.nr
|
||||
|
||||
|
@ -118,6 +119,7 @@ const addTitleMacro = function (
|
|||
.attr('data-text', mc.title, mc.append ? false : true)
|
||||
.attr('data-text-class', `${mc.classes.title} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
shift += mc.dy
|
||||
store.set(['partTitles', part.name], mc.title)
|
||||
} else delete ids.title
|
||||
|
@ -147,6 +149,7 @@ const addTitleMacro = function (
|
|||
.attr('data-text', 'plugin-annotations:cut')
|
||||
.attr('data-text-class', `${mc.classes.cutlist} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
.addText(cut)
|
||||
shift += mc.dy
|
||||
|
||||
|
@ -189,6 +192,7 @@ const addTitleMacro = function (
|
|||
)
|
||||
.attr('data-text-class', `${mc.classes.name} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
shift += mc.dy
|
||||
|
||||
/*
|
||||
|
@ -200,6 +204,7 @@ const addTitleMacro = function (
|
|||
.attr('data-text', `(${store.data.for})`)
|
||||
.attr('data-text-class', `${mc.classes.for} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
shift += mc.dy
|
||||
} else delete ids.for
|
||||
|
||||
|
@ -219,6 +224,7 @@ const addTitleMacro = function (
|
|||
)
|
||||
.attr('data-text-class', `${mc.classes.date} ${mc.align}`)
|
||||
.attr('data-text-transform', transform)
|
||||
.attr('data-render-always', 1) // Render even when outside the part bounding box
|
||||
|
||||
/*
|
||||
* Store all IDs in the store so we can remove this macro with rmtitle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue