|
998 | 998 | exports._initializeKernels = _initializeKernels; |
999 | 999 | }); |
1000 | 1000 |
|
1001 | | - var _stroke_1 = createCommonjsModule(function (module, exports) { |
| 1001 | + var _draw = createCommonjsModule(function (module, exports) { |
1002 | 1002 | Object.defineProperty(exports, "__esModule", { value: true }); |
1003 | | - exports._stroke = void 0; |
| 1003 | + exports._stroke = exports._plot = void 0; |
| 1004 | + function _plot(x, y) { |
| 1005 | + this.graphPixels = this._plotKernel(this._cloneTexture(this.graphPixels), x, y, this.mode === 'paint' ? this.brushSize : this.eraserSize, this.mode === 'paint' ? this.brushColor : this.bgColor); |
| 1006 | + this._display(this.graphPixels); |
| 1007 | + return this; |
| 1008 | + } |
| 1009 | + exports._plot = _plot; |
1004 | 1010 | function _stroke(x, y) { |
1005 | 1011 | if (this._lastCoords === null) |
1006 | 1012 | this._lastCoords = [x, y]; |
|
1010 | 1016 | exports._stroke = _stroke; |
1011 | 1017 | }); |
1012 | 1018 |
|
1013 | | - var _plot_1 = createCommonjsModule(function (module, exports) { |
1014 | | - Object.defineProperty(exports, "__esModule", { value: true }); |
1015 | | - exports._plot = void 0; |
1016 | | - function _plot(x, y) { |
1017 | | - this.graphPixels = this._plotKernel(this._cloneTexture(this.graphPixels), x, y, this.mode === 'paint' ? this.brushSize : this.eraserSize, this.mode === 'paint' ? this.brushColor : this.bgColor); |
1018 | | - this._display(this.graphPixels); |
1019 | | - return this; |
1020 | | - } |
1021 | | - exports._plot = _plot; |
1022 | | - }); |
1023 | | - |
1024 | 1019 | var undo_1 = createCommonjsModule(function (module, exports) { |
1025 | 1020 | Object.defineProperty(exports, "__esModule", { value: true }); |
1026 | 1021 | exports.redo = exports.undo = void 0; |
|
1235 | 1230 |
|
1236 | 1231 |
|
1237 | 1232 |
|
1238 | | - |
1239 | 1233 | var RealDrawBoard = /** @class */ (function (_super) { |
1240 | 1234 | __extends(RealDrawBoard, _super); |
1241 | 1235 | function RealDrawBoard(options) { |
|
1248 | 1242 | _this._pathIndex = -1; // Index of path in _drawnPaths |
1249 | 1243 | _this._lastCoords = null; |
1250 | 1244 | _this._initializeKernels = _initializeKernels_1._initializeKernels; |
1251 | | - _this._stroke = _stroke_1._stroke; |
1252 | | - _this._plot = _plot_1._plot; |
| 1245 | + _this._stroke = _draw._stroke; |
| 1246 | + _this._plot = _draw._plot; |
1253 | 1247 | _this._resetBoard = boardManip._resetBoard; |
1254 | 1248 | _this._addMouseEvents = _DOMEvents._addMouseEvents; |
1255 | 1249 | _this._removeMouseEvents = _DOMEvents._removeMouseEvents; |
|
0 commit comments