| | |
| | | points.value = [0, heightAgv, 0, 0, widthAgv, 0, widthAgv, heightAgv] |
| | | const polygon = new Polygon({ |
| | | points: points.value, |
| | | fill: '#32cd79', |
| | | stroke: '#f00', |
| | | origin: [0, 0] |
| | | }) |
| | | setTimeout(() => { |
| | |
| | | ]).flat() |
| | | |
| | | |
| | | if (type == 1) { |
| | | |
| | | const polygon = new Polygon({ |
| | | points: point, |
| | | stroke: '#f00' |
| | |
| | | setTimeout(() => { |
| | | leafer.add(polygon); |
| | | }, 30); |
| | | } else { |
| | | const polygon = new Polygon({ |
| | | points: point, |
| | | fill: "#32cd79" |
| | | }) |
| | | setTimeout(() => { |
| | | leafer.add(polygon); |
| | | }, 30); |
| | | } |
| | | |
| | | |
| | | |
| | | break; |
| | |
| | | const ellipse2 = new Ellipse({ |
| | | width: a * 2 / big, |
| | | height: c * 2 / big, |
| | | fill: "#32cd79", |
| | | stroke: '#f00', |
| | | }) |
| | | |
| | | setTimeout(() => { |