-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working draggable line and z index sorting based on last add.
- Loading branch information
1 parent
5de3a5e
commit 4e568a6
Showing
7 changed files
with
47 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,20 @@ | ||
// export { default as Graphica } from "./Graphica"; | ||
// export { default as Arc } from "./Components/Arc"; | ||
// export { default as Bracket } from "./Components/Bracket"; | ||
// export { default as Button } from "./Components/Button"; | ||
// export { default as Circle } from "./Components/Circle"; | ||
// export { default as Grid } from "./Components/Grid"; | ||
// export { default as InfiniteLine } from "./Components/InfiniteLine"; | ||
// export { default as InputField } from "./Components/InputField"; | ||
// export { default as Label } from "./Components/Label"; | ||
// export { default as Latex } from "./Components/Latex"; | ||
// export { default as Line } from "./Components/Line"; | ||
// export { default as Plot } from "./Components/Plot"; | ||
// export { default as Point } from "./Components/Point"; | ||
// export { default as Polygon } from "./Components/Shape"; | ||
// export { default as Slider } from "./Components/Slider"; | ||
// export { default as Text } from "./Components/Text"; | ||
// export { default as Vector } from "./Components/Vector"; | ||
// export { default as Fraction } from "./Components/Derived/Fraction"; | ||
// export { default as SVGLoader } from "./Components/SVGLoader"; | ||
// export * as three from "three"; | ||
|
||
import { Vector2, Vector3 } from "three"; | ||
import Arc from "./Components/Arc"; | ||
import Grid from "./Components/Grid"; | ||
import Label from "./Components/Label"; | ||
import Line from "./Components/Line"; | ||
import Point from "./Components/Point"; | ||
import Polygon from "./Components/Shape"; | ||
import Vector from "./Components/Vector"; | ||
import Graphica from "./Graphica"; | ||
import Fraction from "./Components/Derived/Fraction"; | ||
import Circle from "./Components/Circle"; | ||
|
||
const g = new Graphica(); | ||
const gg = new Grid(); | ||
const line = new Line([0, 0], [5, 5], { draggable: "unrestricted" }); | ||
|
||
const pp = new Point(0, 0, { draggable: "unrestricted", label: true }); | ||
const pp2 = new Point(0, 1, { draggable: "unrestricted" }); | ||
const s = new Circle(5, 5, 50); | ||
const c = new Polygon( | ||
[ | ||
[0, 0], | ||
[1, 0], | ||
[1, 1], | ||
[0, 1], | ||
], | ||
{ draggable: "unrestricted" } | ||
); | ||
|
||
g.add(gg); | ||
g.add(s); | ||
g.add(c); | ||
g.add(line); | ||
g.add(pp); | ||
g.add(pp2); | ||
|
||
g.run(() => {}); | ||
export { default as Graphica } from "./Graphica"; | ||
export { default as Arc } from "./Components/Arc"; | ||
export { default as Bracket } from "./Components/Bracket"; | ||
export { default as Button } from "./Components/Button"; | ||
export { default as Circle } from "./Components/Circle"; | ||
export { default as Grid } from "./Components/Grid"; | ||
export { default as InfiniteLine } from "./Components/InfiniteLine"; | ||
export { default as InputField } from "./Components/InputField"; | ||
export { default as Label } from "./Components/Label"; | ||
export { default as Latex } from "./Components/Latex"; | ||
export { default as Line } from "./Components/Line"; | ||
export { default as Plot } from "./Components/Plot"; | ||
export { default as Point } from "./Components/Point"; | ||
export { default as Polygon } from "./Components/Shape"; | ||
export { default as Slider } from "./Components/Slider"; | ||
export { default as Text } from "./Components/Text"; | ||
export { default as Vector } from "./Components/Vector"; | ||
export { default as Fraction } from "./Components/Derived/Fraction"; | ||
export { default as SVGLoader } from "./Components/SVGLoader"; | ||
export * as three from "three"; |