Skip to content

Commit 0252aca

Browse files
authored
Merge pull request #534 from Yonava/yva/build-pass
chore(monorepo): remove circular ts references
2 parents bf6a023 + eecf7fe commit 0252aca

157 files changed

Lines changed: 869 additions & 9250 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/canvas/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
"vue": "^3.5.18"
1010
},
1111
"dependencies": {
12-
"@vueuse/core": "^13.6.0",
13-
"tailwind-merge": "^3.3.1",
1412
"@magic/utils": "workspace:*",
15-
"@magic/shapes": "workspace:*"
13+
"@vueuse/core": "^13.6.0",
14+
"tailwind-merge": "^3.3.1"
1615
},
1716
"devDependencies": {
1817
"vue": "^3.5.18"

packages/canvas/pnpm-lock.yaml

Lines changed: 0 additions & 244 deletions
This file was deleted.

packages/canvas/src/backgroundPattern.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { getMagicCoordinates } from './coordinates';
22

33
import type { Camera } from './camera';
4-
import type { DrawFns } from './types';
5-
import { Coordinate } from '@magic/shapes/types/utility';
4+
import type { Coordinate, DrawFns } from './types';
65

76
const STAGGER = 100;
87

packages/canvas/src/coordinates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Coordinate } from '@magic/shapes/types/utility';
21
import { getDevicePixelRatio } from '../camera/utils';
32
import { getCtx } from '@magic/utils/ctx'
43

54
import { type Ref, onMounted, ref } from 'vue';
5+
import { Coordinate } from '../types';
66

77
export const getCanvasTransform = (ctx: CanvasRenderingContext2D) => {
88
const { a, e, f } = ctx.getTransform();

packages/canvas/src/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import type { Ref } from 'vue';
33

44
import type { DrawPattern } from './backgroundPattern';
55
import type { Camera } from './camera';
6-
import { Coordinate } from '@magic/shapes/types/utility';
6+
7+
export type Coordinate = {
8+
x: number,
9+
y: number,
10+
}
711

812
export type DrawContent = (ctx: CanvasRenderingContext2D) => void;
913

packages/canvas/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"references": [
77
{
88
"path": "../utils"
9-
},
10-
{
11-
"path": "../shapes"
129
}
1310
],
1411
"include": ["src"]

packages/canvas/tsconfig.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

packages/client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"dependencies": {
2323
"@magic/ui": "workspace:*",
2424
"@magic/products": "workspace:*",
25-
"@magic/graph": "workspace:*",
2625
"@codemirror/lang-javascript": "^6.2.2",
2726
"@codemirror/theme-one-dark": "^6.1.2",
2827
"@mdi/font": "^7.4.47",

0 commit comments

Comments
 (0)