<template></template>
<script setup lang="ts">
import { Leafer, Polygon } from 'leafer-ui'
const leafer = new Leafer({ view: window, fill: 'black' })
const ling = new Polygon({
x: 100,
y: 100,
points: [50, 0, 100, 50, 50, 100, 0, 50],
fill: 'orange',
stroke: 'white',
strokeWidth: 2
})
leafer.add(ling)
</script>