Skip to content

Commit

Permalink
feat(drawables): add Point type export
Browse files Browse the repository at this point in the history
  • Loading branch information
cj-dimaano authored and Sheyne committed Feb 25, 2017
1 parent 4c53a41 commit b0cad09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sinap-includes/plugin-stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ export class Color {
}
}

export type Point = { x: number, y: number };

export class DrawableNode {
label: string;
color: Color;
position: { x: number, y: number };
position: Point;
shape: "circle" | "square" | "image";
image: string;
anchorPoints: { x: number, y: number }[];
anchorPoints: Point[];
borderColor: Color;
borderStyle: "solid" | "dotted" | "dashed";
borderWidth: number;
Expand Down

0 comments on commit b0cad09

Please sign in to comment.