23 lines
718 B
Vue
23 lines
718 B
Vue
<script setup lang="ts">
|
|
import { MAP_VILLAGE_LOOKS } from '~/diorama/mapVillage'
|
|
</script>
|
|
|
|
<!--
|
|
Every village picture once, for <use> on the map: the round plot seen from above with its
|
|
edge and flag in the relation colour (currentColor, set on each <use>).
|
|
-->
|
|
<template>
|
|
<symbol v-for="l in MAP_VILLAGE_LOOKS" :id="l.id" :key="l.id" v-once viewBox="-50 -50 100 100" overflow="visible" stroke-linejoin="round" stroke-linecap="round">
|
|
<path
|
|
v-for="(s, i) in l.shapes"
|
|
:key="i"
|
|
:d="s.d"
|
|
:fill="s.fill ?? 'none'"
|
|
:stroke="s.stroke"
|
|
:stroke-width="s.width"
|
|
:stroke-dasharray="s.dash"
|
|
:stroke-linecap="s.dash ? 'butt' : undefined"
|
|
/>
|
|
</symbol>
|
|
</template>
|