mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-19 20:01:33 +01:00
feat!: directly pass through rough js options
This commit is contained in:
@@ -83,7 +83,7 @@ export function renderAnnotation(
|
||||
const animate = (config.animate === undefined) ? true : (!!config.animate)
|
||||
const iterations = config.iterations || 2
|
||||
const rtl = config.rtl ? 1 : 0
|
||||
const o = getOptions('single', seed, config.overrides)
|
||||
const o = getOptions('single', seed, config)
|
||||
|
||||
switch (config.type) {
|
||||
case 'underline': {
|
||||
@@ -183,7 +183,7 @@ export function renderAnnotation(
|
||||
break
|
||||
}
|
||||
case 'circle': {
|
||||
const doubleO = getOptions('double', seed, config.overrides)
|
||||
const doubleO = getOptions('double', seed, config)
|
||||
const width = rect.w + (padding[1] + padding[3])
|
||||
const height = rect.h + (padding[0] + padding[2])
|
||||
const x = rect.x - padding[3] + (width / 2)
|
||||
@@ -199,7 +199,7 @@ export function renderAnnotation(
|
||||
break
|
||||
}
|
||||
case 'highlight': {
|
||||
const o = getOptions('highlight', seed, config.overrides)
|
||||
const o = getOptions('highlight', seed, config)
|
||||
strokeWidth = rect.h * 0.95
|
||||
const y = rect.y + (rect.h / 2)
|
||||
for (let i = rtl; i < iterations + rtl; i++) {
|
||||
|
||||
Reference in New Issue
Block a user