You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
571 B
21 lines
571 B
import { Sprite } from "pixi.js"; |
|
import { Graphics } from "pixi.js"; |
|
import { WorkingAreaComponent } from "../working-area.component"; |
|
import { AxShape } from "./axShape"; |
|
|
|
export class AxRectangleShape extends AxShape{ |
|
/** |
|
* |
|
*/ |
|
constructor(x:number,y:number,width:number,height:number,assetData: any, workingArea: WorkingAreaComponent) { |
|
super(assetData,workingArea); |
|
this.beginFill(0x0000ff,1); |
|
this.lineStyle(1, 0xff0000,1); |
|
this.drawRect(x, y, width, height); |
|
this.endFill(); |
|
|
|
|
|
} |
|
|
|
|
|
}
|
|
|