private newEdit()

in share/src/sprite-editor/spriteEditor.ts [646:665]


    private newEdit() {
        switch (this.activeTool) {
            case PaintTool.Normal:
                return new PaintEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Rectangle:
                return new OutlineEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Outline:
                return new OutlineEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Line:
                return new LineEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Circle:
                return new CircleEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Erase:
                return new PaintEdit(this.columns, this.rows, 0, this.toolWidth);
            case PaintTool.Fill:
                return new FillEdit(this.columns, this.rows, this.color, this.toolWidth);
            case PaintTool.Marquee:
                return new MarqueeEdit(this.columns, this.rows, this.color, this.toolWidth);
        }
    }