Skip to content

Commit 07b0d53

Browse files
committed
chore: expose shapes
1 parent 7ad6f91 commit 07b0d53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/canvas.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/adjacent-overload-signatures */
22
/* eslint-disable @typescript-eslint/unified-signatures */
3-
import { Color, ImageSource, View } from '@nativescript/core';
3+
import { Color, ImageSource, ObservableArray, View } from '@nativescript/core';
44
import { Font, FontStyle, FontWeight } from '@nativescript/core/ui/styling/font';
55
import Shape from './shapes/shape';
66

@@ -310,6 +310,8 @@ declare class CanvasView extends View {
310310
density: number;
311311
drawFameRate: boolean;
312312

313+
shapes: ObservableArray<Shape>;
314+
313315
onDraw(canvas: Canvas);
314316
addShape(shape: Shape);
315317
removeShape(shape: Shape);

0 commit comments

Comments
 (0)