File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <g v-bind =" $attrs" >
3
+ <slot />
4
+ </g >
5
+ </template >
6
+
7
+ <script lang="ts" setup>
8
+ import { toRef } from " vue" ;
9
+ import { PossibleVector2 , Vector2 } from " ../utils/Vector2.ts" ;
10
+ import { useLocalToWorld } from " ../composables/useLocalToWorld.ts" ;
11
+
12
+ const props = withDefaults (
13
+ defineProps <{ position? : PossibleVector2 ; }>(), { position : () => new Vector2 () });
14
+
15
+ useLocalToWorld (toRef (props , " position" ));
16
+ </script >
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export { default as Circle } from "./components/Circle.vue";
4
4
export { default as Ellipse } from "./components/Ellipse.vue" ;
5
5
export { default as FunctionPlot } from "./components/FunctionPlot.vue" ;
6
6
export { default as Graph } from "./components/Graph.vue" ;
7
+ export { default as Group } from "./components/Group.vue" ;
7
8
export { default as Label } from "./components/Label.vue" ;
8
9
export { default as Line } from "./components/Line.vue" ;
9
10
export { default as Point } from "./components/Point.vue" ;
You can’t perform that action at this time.
0 commit comments