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> <template>
<Zone <Zone :originX="mapObj?.originX" :originY="mapObj?.originY" :width="mapObj?.frameWidth" :height="mapObj?.frameHeight" :x="x" :y="y" />
:originX="mapObj?.originX"
:originY="mapObj?.originY"
:width="mapObj?.frameWidth"
:height="mapObj?.frameHeight"
:x="x"
:y="y"
/>
</template> </template>
<script setup lang="ts"> <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 type { MapObject, PlacedMapObject } from '@/application/types'
import { useMapEditorComposable } from '@/composables/useMapEditorComposable' 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() const mapEditor = useMapEditorComposable()

View File

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