mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
build: decouple package deps and introduce yarn workspaces (#7415)
* feat: decouple package deps and introduce yarn workspaces * update root directory * fix * fix scripts * fix lint * update path in scripts * remove yarn.lock files from packages * ignore workspace * dummy * dummy * remove comment check * revert workflow changes * ignore ws when installing gh actions * remove log * update path * fix * fix typo
This commit is contained in:
parent
b7d7ccc929
commit
d6cd8b78f1
567 changed files with 5066 additions and 8648 deletions
|
@ -1,26 +0,0 @@
|
|||
import * as GA from "./ga";
|
||||
import { Line, Direction, Point } from "./ga";
|
||||
|
||||
/**
|
||||
* A direction is stored as an array `[0, 0, 0, 0, y, x, 0, 0]` representing
|
||||
* vector `(x, y)`.
|
||||
*/
|
||||
|
||||
export const from = (point: Point): Point => [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
point[4],
|
||||
point[5],
|
||||
0,
|
||||
0,
|
||||
];
|
||||
|
||||
export const fromTo = (from: Point, to: Point): Direction =>
|
||||
GA.inormalized([0, 0, 0, 0, to[4] - from[4], to[5] - from[5], 0, 0]);
|
||||
|
||||
export const orthogonal = (direction: Direction): Direction =>
|
||||
GA.inormalized([0, 0, 0, 0, -direction[5], direction[4], 0, 0]);
|
||||
|
||||
export const orthogonalToLine = (line: Line): Direction => GA.mul(line, GA.I);
|
Loading…
Add table
Add a link
Reference in a new issue