Ábel Mandl
Ábel Mandl

Reputation: 47

KonvaJS different strokes

I have a rectangle in KonvaJS:

    <Rect
       x={200}
       y={20}
       width={300}
       height={150}
       fill="yellow"
       shadowBlur={3}
       b
       draggable
       rotation={90}
       strokeWidth={4}
    />

How can I made custom stroke width for rectangles? for example: 5px stroke width for top border, 3px stroke width for bottom border, 2px for left, and right border?

Upvotes: 2

Views: 369

Answers (1)

lavrton
lavrton

Reputation: 20288

Konva doesn't support that. Use several lines instead.

Upvotes: 2

Related Questions