@sergeymell/nativescript-color-wheel
Advanced tools
Comparing version
@@ -153,2 +153,5 @@ import * as common from './common'; | ||
for (let y = 0; y < bitmapHeight; y++) { | ||
if ((x - this.radius) * (x - this.radius) + (y - this.radius) * (y - this.radius) >= this.radius * this.radius) { | ||
continue; | ||
} | ||
const touchedRGB = bitmap.getPixel(x, y); | ||
@@ -155,0 +158,0 @@ const touchedColor = new Color(touchedRGB); |
@@ -29,4 +29,4 @@ import * as common from './common'; | ||
color: new Color(reference[0], reference[1], reference[2], reference[3]), | ||
colorPosition: { x: x, y: y }, | ||
}), | ||
colorPosition: { x: x, y: y } | ||
}) | ||
}); | ||
@@ -41,3 +41,3 @@ } | ||
TapHandler.ObjCExposedMethods = { | ||
tap: { returns: interop.types.void, params: [interop.types.id, interop.types.id] }, | ||
tap: { returns: interop.types.void, params: [interop.types.id, interop.types.id] } | ||
}; | ||
@@ -53,3 +53,3 @@ return TapHandler; | ||
target: handler, | ||
action: 'tap', | ||
action: 'tap' | ||
}); | ||
@@ -69,3 +69,3 @@ imageView.addGestureRecognizer(tap); | ||
inputSoftness: 0, | ||
inputValue: 1, | ||
inputValue: 1 | ||
}); | ||
@@ -126,2 +126,5 @@ const image = UIImage.imageWithCIImage(filter.outputImage); | ||
for (let y = 0; y < height; y++) { | ||
if ((x - this.radius) * (x - this.radius) + (y - this.radius) * (y - this.radius) >= this.radius * this.radius) { | ||
continue; | ||
} | ||
const red = reference[redOffset(x, y, width)]; | ||
@@ -149,4 +152,4 @@ const green = reference[greenOffset(x, y, width)]; | ||
color, | ||
colorPosition: { x: resX, y: resY }, | ||
}), | ||
colorPosition: { x: resX, y: resY } | ||
}) | ||
}); | ||
@@ -153,0 +156,0 @@ } |
{ | ||
"name": "@sergeymell/nativescript-color-wheel", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Simple and flexible color picker for NativeScript Core and Angular applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56957
1.44%576
1.05%