-
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.
Various fixes, rename params on vector, make line and vector draggable
- Loading branch information
1 parent
1fd5add
commit 84e50f1
Showing
3 changed files
with
79 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,49 @@ | ||
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 { 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 { Vector3 } from "three"; | ||
import Arc from "./Components/Arc"; | ||
import Grid from "./Components/Grid"; | ||
import Line from "./Components/Line"; | ||
import Point from "./Components/Point"; | ||
import Polygon from "./Components/Shape"; | ||
import Vector from "./Components/Vector"; | ||
import Graphica from "./Graphica"; | ||
|
||
// export * as three from "three"; | ||
|
||
const g = new Graphica(); | ||
const gg = new Grid(); | ||
|
||
const v = new Line([-2, 2], [-10, 0], { | ||
draggable: "unrestricted", | ||
}); | ||
|
||
const p = new Polygon([ | ||
[1, 1], | ||
[2, 3], | ||
[4, 4], | ||
]); | ||
|
||
g.add(p); | ||
g.add(v); | ||
g.add(gg); | ||
console.log(g.draggables); | ||
g.run((t) => {}); |