Skip to content

Commit 40e3ebe

Browse files
Remove options
1 parent 885c895 commit 40e3ebe

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

src/live2d/LAppDefine.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const LAppDefine = {
2-
DEBUG_MOUSE_LOG: false,
3-
// DEBUG_DRAW_HIT_AREA : false,
4-
// DEBUG_DRAW_ALPHA_MODEL : false,
5-
62
VIEW_MAX_SCALE: 2,
73
VIEW_MIN_SCALE: 0.8,
84

src/live2d/index.js

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,17 @@ class Model {
174174
const vx = this.transformViewX(event.clientX - rect.left);
175175
const vy = this.transformViewY(event.clientY - rect.top);
176176

177-
if (LAppDefine.DEBUG_MOUSE_LOG)
178-
logger.trace(
179-
'onMouseDown device( x:' +
180-
event.clientX +
181-
' y:' +
182-
event.clientY +
183-
' ) view( x:' +
184-
vx +
185-
' y:' +
186-
vy +
187-
')',
188-
);
177+
logger.trace(
178+
'onMouseDown device( x:' +
179+
event.clientX +
180+
' y:' +
181+
event.clientY +
182+
' ) view( x:' +
183+
vx +
184+
' y:' +
185+
vy +
186+
')',
187+
);
189188

190189
this.lastMouseX = sx;
191190
this.lastMouseY = sy;
@@ -203,18 +202,17 @@ class Model {
203202
const vx = this.transformViewX(event.clientX - rect.left);
204203
const vy = this.transformViewY(event.clientY - rect.top);
205204

206-
if (LAppDefine.DEBUG_MOUSE_LOG)
207-
logger.trace(
208-
'onMouseMove device( x:' +
209-
event.clientX +
210-
' y:' +
211-
event.clientY +
212-
' ) view( x:' +
213-
vx +
214-
' y:' +
215-
vy +
216-
')',
217-
);
205+
logger.trace(
206+
'onMouseMove device( x:' +
207+
event.clientX +
208+
' y:' +
209+
event.clientY +
210+
' ) view( x:' +
211+
vx +
212+
' y:' +
213+
vy +
214+
')',
215+
);
218216

219217
if (this.drag) {
220218
this.lastMouseX = sx;

0 commit comments

Comments
 (0)