Basic working version
This commit is contained in:
@@ -20,8 +20,10 @@ export class ItemLayer implements IItemLayer {
|
||||
public opacity: number = 1;
|
||||
public layerIndex: number = -1;
|
||||
|
||||
constructor(item:IItem) {
|
||||
constructor(item:IItem,opacity:number = 1, visible:boolean = true) {
|
||||
this.item = item;
|
||||
this.opacity = opacity;
|
||||
this.visible = visible;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +40,8 @@ export class TemporalItemLayer extends ItemLayer implements ITemporalItemLayer {
|
||||
public nextItemLayer:IItemLayer = null;
|
||||
public temporalItems:IItem[] = [];
|
||||
|
||||
constructor(item:IItem) {
|
||||
super(item)
|
||||
constructor(item:IItem,opacity:number = 1, visible:boolean = true) {
|
||||
super(item,opacity,visible)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user