()
| 12 | |
| 13 | class Pixelizer { |
| 14 | constructor() { |
| 15 | this.originalImage = null; |
| 16 | this.processedCanvas = null; |
| 17 | this.basePixelCanvas = null; |
| 18 | this.gridOffsetX = 0; |
| 19 | this.gridOffsetY = 0; |
| 20 | this.isProcessing = false; |
| 21 | this.currentWorker = null; |
| 22 | |
| 23 | // 对齐相关状态 |
| 24 | this.isDragging = false; |
| 25 | this.dragTarget = null; |
| 26 | this.guideLines = null; |
| 27 | |
| 28 | this.initializeEventListeners(); |
| 29 | } |
| 30 | |
| 31 | initializeEventListeners() { |
| 32 | // 上传相关 |
nothing calls this directly
no test coverage detected