kopia lustrzana https://github.com/Tldraw/Tldraw
17 wiersze
391 B
TypeScript
17 wiersze
391 B
TypeScript
import { TLShapeUtil } from '@tldraw/core'
|
|
import * as React from 'react'
|
|
import type { RectShape } from './RectShape'
|
|
|
|
export const RectIndicator = TLShapeUtil.Indicator<RectShape>(({ shape }) => {
|
|
return (
|
|
<rect
|
|
pointerEvents="none"
|
|
width={shape.size[0]}
|
|
height={shape.size[1]}
|
|
fill="none"
|
|
stroke="tl-selectedStroke"
|
|
strokeWidth={1}
|
|
/>
|
|
)
|
|
})
|