1
0
Fork 0

wip(dev): More changes for v3 docs

This commit is contained in:
Joost De Cock 2022-09-22 14:17:29 +02:00 committed by joostdecock
parent 34250abeed
commit f0e233513b
9 changed files with 53 additions and 56 deletions

View file

@ -188,7 +188,7 @@ const Curve = (props) => {
}
const MiniPath = props => {
const bbox = props.path.boundary()
const bbox = props.path.bbox()
const id = `${props.partName}_${props.pathName}_mini}`
const w = bbox.bottomRight.x - bbox.topLeft.x
const h = bbox.bottomRight.y - bbox.topLeft.y
@ -356,7 +356,7 @@ export const Attributes = ({ list }) => list
) : null
export const pathInfo = (props) => {
const bbox = props.path.boundary()
const bbox = props.path.bbox()
return (
<div className="p-4 border bg-neutral bg-opacity-40 shadow rounded-lg">
@ -472,8 +472,11 @@ const XrayCurve = props => {
}
const XrayPath = props => {
const classes = props.path.attributes.get('class')
if (typeof classes === 'string' && classes.includes('noxray')) return null
const ops = props.path.divide()
return (
<g>
<path