深度画布
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user