hyperprop-charting-library 0.1.79 → 0.1.80
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.
- package/dist/hyperprop-charting-library.cjs +0 -14
- package/dist/hyperprop-charting-library.js +0 -14
- package/dist/index.cjs +0 -14
- package/dist/index.js +0 -14
- package/package.json +1 -1
|
@@ -2429,20 +2429,6 @@ function createChart(element, options = {}) {
|
|
|
2429
2429
|
ctx.fillStyle = lossFill;
|
|
2430
2430
|
ctx.fillRect(boxX0, Math.min(entryY, stopY), boxW, Math.abs(stopY - entryY));
|
|
2431
2431
|
ctx.restore();
|
|
2432
|
-
if (data.length > 0) {
|
|
2433
|
-
const nowX = xFromDrawingPoint({ index: data.length - 1, price: 0 });
|
|
2434
|
-
const darkRight = clamp(nowX, boxX0, boxX1);
|
|
2435
|
-
if (darkRight - boxX0 > 0.5) {
|
|
2436
|
-
const darkW = darkRight - boxX0;
|
|
2437
|
-
ctx.save();
|
|
2438
|
-
ctx.globalAlpha = draft ? 0.5 : 1;
|
|
2439
|
-
ctx.fillStyle = hexToRgba(profitColor, 0.18);
|
|
2440
|
-
ctx.fillRect(boxX0, Math.min(entryY, targetY), darkW, Math.abs(targetY - entryY));
|
|
2441
|
-
ctx.fillStyle = hexToRgba(lossColor, 0.18);
|
|
2442
|
-
ctx.fillRect(boxX0, Math.min(entryY, stopY), darkW, Math.abs(stopY - entryY));
|
|
2443
|
-
ctx.restore();
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
2432
|
if (isSelected) {
|
|
2447
2433
|
ctx.save();
|
|
2448
2434
|
ctx.setLineDash([]);
|
|
@@ -2403,20 +2403,6 @@ function createChart(element, options = {}) {
|
|
|
2403
2403
|
ctx.fillStyle = lossFill;
|
|
2404
2404
|
ctx.fillRect(boxX0, Math.min(entryY, stopY), boxW, Math.abs(stopY - entryY));
|
|
2405
2405
|
ctx.restore();
|
|
2406
|
-
if (data.length > 0) {
|
|
2407
|
-
const nowX = xFromDrawingPoint({ index: data.length - 1, price: 0 });
|
|
2408
|
-
const darkRight = clamp(nowX, boxX0, boxX1);
|
|
2409
|
-
if (darkRight - boxX0 > 0.5) {
|
|
2410
|
-
const darkW = darkRight - boxX0;
|
|
2411
|
-
ctx.save();
|
|
2412
|
-
ctx.globalAlpha = draft ? 0.5 : 1;
|
|
2413
|
-
ctx.fillStyle = hexToRgba(profitColor, 0.18);
|
|
2414
|
-
ctx.fillRect(boxX0, Math.min(entryY, targetY), darkW, Math.abs(targetY - entryY));
|
|
2415
|
-
ctx.fillStyle = hexToRgba(lossColor, 0.18);
|
|
2416
|
-
ctx.fillRect(boxX0, Math.min(entryY, stopY), darkW, Math.abs(stopY - entryY));
|
|
2417
|
-
ctx.restore();
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
2406
|
if (isSelected) {
|
|
2421
2407
|
ctx.save();
|
|
2422
2408
|
ctx.setLineDash([]);
|
package/dist/index.cjs
CHANGED
|
@@ -2429,20 +2429,6 @@ function createChart(element, options = {}) {
|
|
|
2429
2429
|
ctx.fillStyle = lossFill;
|
|
2430
2430
|
ctx.fillRect(boxX0, Math.min(entryY, stopY), boxW, Math.abs(stopY - entryY));
|
|
2431
2431
|
ctx.restore();
|
|
2432
|
-
if (data.length > 0) {
|
|
2433
|
-
const nowX = xFromDrawingPoint({ index: data.length - 1, price: 0 });
|
|
2434
|
-
const darkRight = clamp(nowX, boxX0, boxX1);
|
|
2435
|
-
if (darkRight - boxX0 > 0.5) {
|
|
2436
|
-
const darkW = darkRight - boxX0;
|
|
2437
|
-
ctx.save();
|
|
2438
|
-
ctx.globalAlpha = draft ? 0.5 : 1;
|
|
2439
|
-
ctx.fillStyle = hexToRgba(profitColor, 0.18);
|
|
2440
|
-
ctx.fillRect(boxX0, Math.min(entryY, targetY), darkW, Math.abs(targetY - entryY));
|
|
2441
|
-
ctx.fillStyle = hexToRgba(lossColor, 0.18);
|
|
2442
|
-
ctx.fillRect(boxX0, Math.min(entryY, stopY), darkW, Math.abs(stopY - entryY));
|
|
2443
|
-
ctx.restore();
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
2432
|
if (isSelected) {
|
|
2447
2433
|
ctx.save();
|
|
2448
2434
|
ctx.setLineDash([]);
|
package/dist/index.js
CHANGED
|
@@ -2403,20 +2403,6 @@ function createChart(element, options = {}) {
|
|
|
2403
2403
|
ctx.fillStyle = lossFill;
|
|
2404
2404
|
ctx.fillRect(boxX0, Math.min(entryY, stopY), boxW, Math.abs(stopY - entryY));
|
|
2405
2405
|
ctx.restore();
|
|
2406
|
-
if (data.length > 0) {
|
|
2407
|
-
const nowX = xFromDrawingPoint({ index: data.length - 1, price: 0 });
|
|
2408
|
-
const darkRight = clamp(nowX, boxX0, boxX1);
|
|
2409
|
-
if (darkRight - boxX0 > 0.5) {
|
|
2410
|
-
const darkW = darkRight - boxX0;
|
|
2411
|
-
ctx.save();
|
|
2412
|
-
ctx.globalAlpha = draft ? 0.5 : 1;
|
|
2413
|
-
ctx.fillStyle = hexToRgba(profitColor, 0.18);
|
|
2414
|
-
ctx.fillRect(boxX0, Math.min(entryY, targetY), darkW, Math.abs(targetY - entryY));
|
|
2415
|
-
ctx.fillStyle = hexToRgba(lossColor, 0.18);
|
|
2416
|
-
ctx.fillRect(boxX0, Math.min(entryY, stopY), darkW, Math.abs(stopY - entryY));
|
|
2417
|
-
ctx.restore();
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
2406
|
if (isSelected) {
|
|
2421
2407
|
ctx.save();
|
|
2422
2408
|
ctx.setLineDash([]);
|