@supersolutions/super-chart-core 0.2.0 → 0.3.0
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.
|
@@ -4649,7 +4649,8 @@ function projectDrawing(value, project, bounds, context) {
|
|
|
4649
4649
|
if (box.left < bounds.right && box.right > bounds.left && box.top < bounds.bottom && box.bottom > bounds.top && box.left < box.right && box.top < box.bottom)
|
|
4650
4650
|
primitives.push({ kind: "image", source: value.image, bounds: box, clip: { ...bounds } });
|
|
4651
4651
|
}
|
|
4652
|
-
const
|
|
4652
|
+
const freehand = value.type === "brush" || value.type === "highlighter";
|
|
4653
|
+
const handles = value.locked || freehand ? [] : points.flatMap((point, anchorIndex) => inside(point, bounds) ? [{ point, anchorIndex }] : []);
|
|
4653
4654
|
return { id: value.id, type: value.type, locked: value.locked, primitives, handles, ...analysis === void 0 ? {} : { analysis } };
|
|
4654
4655
|
}
|
|
4655
4656
|
function lineDistance(point, from, to) {
|
package/dist/index.js
CHANGED
package/dist/native.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersolutions/super-chart-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Renderer-free chart core: market data, loader, indicators, drawings, frame and workspace models. No DOM.",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|