深度画布

This commit is contained in:
lzp
2026-03-18 17:25:19 +08:00
parent 0f99ea809d
commit 2df168aec7
9 changed files with 159 additions and 100 deletions

View File

@@ -173,6 +173,7 @@ export class LayerManager {
width: 100,
height: 100,
fill: '#000',
strokeWidth: 0,
...(options || {}),
info: {
id: createId("rect"),
@@ -212,6 +213,7 @@ export class LayerManager {
const ellipseObject = new fabric.Ellipse({
radius: 50,
fill: '#000',
strokeWidth: 0,
...(options || {}),
info: {
id: createId("ellipse"),
@@ -230,6 +232,7 @@ export class LayerManager {
width: 100,
height: 100,
fill: '#000',
strokeWidth: 0,
...(options || {}),
info: {
id: createId("triangle"),
@@ -249,6 +252,7 @@ export class LayerManager {
delete options.points
const starObject = new fabric.Polygon(getStarArr(width, height), {
fill: '#000',
strokeWidth: 0,
...(options || {}),
info: {
id: createId("star"),