You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
4 years ago
|
import { ExcalidrawElement } from "../../element/types";
|
||
|
|
||
|
const elementBase: Omit<ExcalidrawElement, "type"> = {
|
||
|
id: "vWrqOAfkind2qcm7LDAGZ",
|
||
|
x: 414,
|
||
|
y: 237,
|
||
|
width: 214,
|
||
|
height: 214,
|
||
|
angle: 0,
|
||
|
strokeColor: "#000000",
|
||
|
backgroundColor: "#15aabf",
|
||
|
fillStyle: "hachure",
|
||
|
strokeWidth: 1,
|
||
|
strokeStyle: "solid",
|
||
|
roughness: 1,
|
||
|
opacity: 100,
|
||
|
groupIds: [],
|
||
2 years ago
|
frameId: null,
|
||
2 years ago
|
roundness: null,
|
||
4 years ago
|
seed: 1041657908,
|
||
|
version: 120,
|
||
|
versionNonce: 1188004276,
|
||
|
isDeleted: false,
|
||
3 years ago
|
boundElements: null,
|
||
3 years ago
|
updated: 1,
|
||
3 years ago
|
link: null,
|
||
3 years ago
|
locked: false,
|
||
4 years ago
|
};
|
||
|
|
||
|
export const rectangleFixture: ExcalidrawElement = {
|
||
|
...elementBase,
|
||
|
type: "rectangle",
|
||
|
};
|
||
2 years ago
|
export const embeddableFixture: ExcalidrawElement = {
|
||
|
...elementBase,
|
||
|
type: "embeddable",
|
||
2 years ago
|
validated: null,
|
||
2 years ago
|
};
|
||
4 years ago
|
export const ellipseFixture: ExcalidrawElement = {
|
||
|
...elementBase,
|
||
|
type: "ellipse",
|
||
|
};
|
||
|
export const diamondFixture: ExcalidrawElement = {
|
||
|
...elementBase,
|
||
|
type: "diamond",
|
||
|
};
|
||
3 years ago
|
export const rectangleWithLinkFixture: ExcalidrawElement = {
|
||
|
...elementBase,
|
||
|
type: "rectangle",
|
||
|
link: "excalidraw.com",
|
||
|
};
|