@ray-js/lamp-circle-picker 1.0.11-beta-1 → 1.0.11-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,7 +64,7 @@ export default Render({
|
|
|
64
64
|
this.callMethod('initedCanvas', {});
|
|
65
65
|
},
|
|
66
66
|
async renderAnnulusColorThumb(id, temp = 0) {
|
|
67
|
-
if (
|
|
67
|
+
if (this.hideThumb) {
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
if (!this.canvasThumb) {
|
|
@@ -98,7 +98,7 @@ export default Render({
|
|
|
98
98
|
this.updateThumbPosition(x, y, { r: data[0], g: data[1], b: data[2] });
|
|
99
99
|
},
|
|
100
100
|
updateThumbPosition(x, y, rgb) {
|
|
101
|
-
if (
|
|
101
|
+
if (this.hideThumb) {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
if (!this.canvasThumb) {
|
|
@@ -230,7 +230,7 @@ export default Render({
|
|
|
230
230
|
this._getRgb(validXY.x, validXY.y);
|
|
231
231
|
},
|
|
232
232
|
handleCanvasMoveEvent(evt) {
|
|
233
|
-
if (
|
|
233
|
+
if (this.hideThumb) {
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -245,7 +245,7 @@ export default Render({
|
|
|
245
245
|
this._getRgb(validXY.x, validXY.y);
|
|
246
246
|
},
|
|
247
247
|
addEventListeners() {
|
|
248
|
-
if (
|
|
248
|
+
if (this.hideThumb) {
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
251
|
this.canvasThumb.addEventListener('touchstart', this.handleCanvasStartEvent, false);
|
|
@@ -253,7 +253,7 @@ export default Render({
|
|
|
253
253
|
this.canvasThumb.addEventListener('touchend', this.handleCanvasEndEvent, false);
|
|
254
254
|
},
|
|
255
255
|
removeEventListeners() {
|
|
256
|
-
if (
|
|
256
|
+
if (this.hideThumb) {
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
259
|
this.canvasThumb.removeEventListener('touchstart', this.handleCanvasStartEvent);
|