Skip to content

绘制的菱形少一条边 代码能复现 #860

@NEXINEW

Description

@NEXINEW
<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>
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions