npm run format

This commit is contained in:
Dennis Postma 2025-03-03 22:21:05 +01:00
parent 208b58d05f
commit 57b503142e
3 changed files with 10 additions and 19 deletions

View File

@ -1,21 +1,13 @@
<template>
<Zone
:originX="mapObj?.originX"
:originY="mapObj?.originY"
:width="mapObj?.frameWidth"
:height="mapObj?.frameHeight"
:x="x"
:y="y"
/>
<Zone :originX="mapObj?.originX" :originY="mapObj?.originY" :width="mapObj?.frameWidth" :height="mapObj?.frameHeight" :x="x" :y="y" />
</template>
<script setup lang="ts">
import { onPreUpdate, useScene } from 'phavuer'
import { calculateIsometricDepth } from '@/services/mapService'
import { onUnmounted, defineProps } from 'vue'
import type { MapObject, PlacedMapObject } from '@/application/types'
import { useMapEditorComposable } from '@/composables/useMapEditorComposable'
import {Zone} from "phavuer";
import { calculateIsometricDepth } from '@/services/mapService'
import { onPreUpdate, useScene, Zone } from 'phavuer'
import { defineProps, onUnmounted } from 'vue'
const mapEditor = useMapEditorComposable()

View File

@ -4,6 +4,7 @@
<script setup lang="ts">
import type { MapObject, PlacedMapObject } from '@/application/types'
import ImageGroup from '@/components/game/map/partials/ImageGroup.vue'
import { useMapEditorComposable } from '@/composables/useMapEditorComposable'
import { loadMapObjectTextures, tileToWorldXY } from '@/services/mapService'
import { MapObjectStorage } from '@/storage/storages'
@ -14,8 +15,6 @@ import { computed, onMounted, ref, watch } from 'vue'
import Tilemap = Phaser.Tilemaps.Tilemap
import TilemapLayer = Phaser.Tilemaps.TilemapLayer
import ImageGroup from '@/components/game/map/partials/ImageGroup.vue'
const props = defineProps<{
placedMapObject: PlacedMapObject
tileMap: Tilemap
@ -32,7 +31,7 @@ const mapObject = ref<MapObject>()
const groupProps = computed(() => ({
...calculateObjectPlacement(props.placedMapObject),
mapObj: mapObject.value,
obj: props.placedMapObject,
obj: props.placedMapObject
}))
async function initialize() {