1
0
Fork 0

wip: npm, not yarn

This commit is contained in:
joostdecock 2024-12-10 18:02:38 +01:00
parent 1861d30b30
commit a6b11b5a24
167 changed files with 109 additions and 186 deletions

View file

@ -1,21 +0,0 @@
// __SDEFILE__ - This file is a dependency for the stand-alone environment
import React from 'react'
// Components
import { Point } from '../pattern/point.mjs'
import { withinPartBounds } from '../pattern/utils.mjs'
export const PointXray = ({ stackName, pointName, part, point, settings, components, t }) => {
// Don't include parts outside the part bounding box
if (!withinPartBounds(point, part)) return null
return (
<>
<Point {...{ stackName, pointName, part, point, settings, components, t }} />
<circle
cx={point.x}
cy={point.y}
r={1.5 * (settings.scale || 1)}
className="stroke-md opacity-70"
/>
</>
)
}