refactor Utils package

This commit is contained in:
2026-02-05 13:50:06 +02:00
parent b1a13c339b
commit 9d22fe8413
12 changed files with 131 additions and 14 deletions
@@ -1,5 +1,5 @@
import { MazeObject } from "./MazeObject";
import Utils from "@/lib/Utils";
import Utils from "#/app/Utils";
import { EventManager } from '@/lib/EventManager';
const params = {
@@ -2,7 +2,7 @@ import { BoxGeometry, Mesh, MeshStandardMaterial, Group, Vector3, CatmullRomCurv
import { LineMaterial, LineGeometry, Line2 } from 'three/examples/jsm/Addons.js';
import { centerOrigin } from '@/lib/MeshUtils';
import { EventManager } from '@/lib/EventManager';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
class PairMatchingGame extends EventManager {
emits = ['finish', 'interaction']
@@ -2,7 +2,7 @@ import { Group, Color } from 'three';
import { centerOrigin } from '@/lib/MeshUtils';
import { EventManager } from '@/lib/EventManager';
import { TextObject } from './TextObject';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
class SingleQuestion extends EventManager {
emits = ['finish']
+1 -1
View File
@@ -46,7 +46,7 @@
<script>
import SvgIcon from './SvgIcon.vue';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
import AssetSelector from '../AssetsManagement/AssetSelector.vue';
export default {
@@ -76,7 +76,7 @@
import GameObject from './GameObject.vue';
import Scene from './Scene.vue';
import SvgRectangle from './SvgRectangle.vue';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
import AssetSelector from '../AssetsManagement/AssetSelector.vue';
import Task from './Task.vue';
@@ -13,7 +13,7 @@
<script>
import AnnotationPoint from './AnnotationPoint.vue';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
export default {
components: { AnnotationPoint },
+1 -1
View File
@@ -27,7 +27,7 @@
<script>
import SvgIcon from './SvgIcon.vue';
import Utils from '@/lib/Utils';
import Utils from '#/app/Utils';
export default {
emits:['target', 'preview'],