MCPcopy Create free account
hub / github.com/32comic/image2pixel-web / constructor

Method constructor

pixelizer.js:14–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13class 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 // 上传相关

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected