(segments: TLDrawShape['props']['segments'])
| 16 | const shapeId = createShapeId('test-draw') |
| 17 | |
| 18 | function createDrawShape(segments: TLDrawShape['props']['segments']): TLDrawShape { |
| 19 | editor.createShapes([ |
| 20 | { |
| 21 | id: shapeId, |
| 22 | type: 'draw', |
| 23 | props: { segments }, |
| 24 | }, |
| 25 | ]) |
| 26 | return editor.getShape(shapeId) as TLDrawShape |
| 27 | } |
| 28 | |
| 29 | describe('getIsDot behavior via hideResizeHandles', () => { |
| 30 | it('treats a shape with one segment and zero points as a dot', () => { |
no test coverage detected
searching dependent graphs…