@pie-lib/plot 3.1.0-next.2 → 3.1.0-next.26

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.1.0-next.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@3.1.0-next.2...@pie-lib/plot@3.1.0-next.4) (2026-01-27)
7
+
8
+ **Note:** Version bump only for package @pie-lib/plot
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.1.0-next.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@3.1.0-next.1...@pie-lib/plot@3.1.0-next.2) (2026-01-26)
7
15
 
8
16
  **Note:** Version bump only for package @pie-lib/plot
@@ -1 +1,16 @@
1
- []
1
+ [
2
+ {
3
+ "type": "fix",
4
+ "scope": null,
5
+ "subject": "solve conflicts with dev",
6
+ "merge": null,
7
+ "header": "fix: solve conflicts with dev",
8
+ "body": null,
9
+ "footer": null,
10
+ "notes": [],
11
+ "hash": "50d83c31e1e4d5e719b714ff4bd7aafa797db6d2",
12
+ "gitTags": " (origin/fix/updateD3-version2)",
13
+ "committerDate": "2026-01-28 12:46:38 +0200",
14
+ "isTagged": false
15
+ }
16
+ ]
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
6
+ require("core-js/modules/es.object.to-string.js");
7
+ require("core-js/modules/es.reflect.construct.js");
8
+ require("core-js/modules/es.string.iterator.js");
9
+ require("core-js/modules/es.weak-map.js");
10
+ require("core-js/modules/web.dom-collections.iterator.js");
11
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, "__esModule", {
14
+ value: true
15
+ });
16
+ Object.defineProperty(exports, "DraggableCore", {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _reactDraggable.DraggableCore;
20
+ }
21
+ });
22
+ exports["default"] = void 0;
23
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
24
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
25
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
26
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
27
+ var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
28
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
29
+ var _reactDraggable = _interopRequireWildcard(require("react-draggable"));
30
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
31
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
32
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
33
+ function _superPropGet(t, o, e, r) { var p = (0, _get2["default"])((0, _getPrototypeOf2["default"])(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
34
+ var LocalDraggable = exports["default"] = /*#__PURE__*/function (_Draggable) {
35
+ function LocalDraggable() {
36
+ (0, _classCallCheck2["default"])(this, LocalDraggable);
37
+ return _callSuper(this, LocalDraggable, arguments);
38
+ }
39
+ (0, _inherits2["default"])(LocalDraggable, _Draggable);
40
+ return (0, _createClass2["default"])(LocalDraggable, [{
41
+ key: "componentWillReceiveProps",
42
+ value: function componentWillReceiveProps(next) {
43
+ _superPropGet(LocalDraggable, "componentWillReceiveProps", this, 3)([next]);
44
+ //Remove the x/y state as these values have now been updated and will come through as props.
45
+ this.setState({
46
+ x: 0,
47
+ y: 0
48
+ });
49
+ }
50
+ }]);
51
+ }(_reactDraggable["default"]);
52
+ //# sourceMappingURL=draggable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draggable.js","names":["_reactDraggable","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","_superPropGet","p","_get2","LocalDraggable","exports","_Draggable","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","componentWillReceiveProps","next","setState","x","y","Draggable"],"sources":["../src/draggable.jsx"],"sourcesContent":["import Draggable, { DraggableCore } from 'react-draggable';\n\nexport default class LocalDraggable extends Draggable {\n componentWillReceiveProps(next) {\n super.componentWillReceiveProps(next);\n //Remove the x/y state as these values have now been updated and will come through as props.\n this.setState({ x: 0, y: 0 });\n }\n}\n\nexport { DraggableCore };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA2D,SAAAD,wBAAAE,CAAA,EAAAC,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,cAAAtB,CAAA,IAAA2B,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAd,IAAA,CAAAQ,OAAA,CAAAC,SAAA,CAAAG,OAAA,iCAAA3B,CAAA,aAAAsB,yBAAA,YAAAA,0BAAA,aAAAtB,CAAA;AAAA,SAAA8B,cAAA9B,CAAA,EAAAK,CAAA,EAAAN,CAAA,EAAAG,CAAA,QAAA6B,CAAA,OAAAC,KAAA,iBAAAZ,gBAAA,iBAAAlB,CAAA,GAAAF,CAAA,CAAA4B,SAAA,GAAA5B,CAAA,GAAAK,CAAA,EAAAN,CAAA,cAAAG,CAAA,yBAAA6B,CAAA,aAAA/B,CAAA,WAAA+B,CAAA,CAAAL,KAAA,CAAA3B,CAAA,EAAAC,CAAA,OAAA+B,CAAA;AAAA,IAEtCE,cAAc,GAAAC,OAAA,qCAAAC,UAAA;EAAA,SAAAF,eAAA;IAAA,IAAAG,gBAAA,mBAAAH,cAAA;IAAA,OAAAd,UAAA,OAAAc,cAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,cAAA,EAAAE,UAAA;EAAA,WAAAI,aAAA,aAAAN,cAAA;IAAAO,GAAA;IAAAC,KAAA,EACjC,SAAAC,yBAAyBA,CAACC,IAAI,EAAE;MAC9Bb,aAAA,CAAAG,cAAA,yCAAgCU,IAAI;MACpC;MACA,IAAI,CAACC,QAAQ,CAAC;QAAEC,CAAC,EAAE,CAAC;QAAEC,CAAC,EAAE;MAAE,CAAC,CAAC;IAC/B;EAAC;AAAA,EALyCC,0BAAS","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.create = void 0;
9
+ require("core-js/modules/es.function.bind.js");
10
+ require("core-js/modules/es.parse-int.js");
11
+ var _invariant = _interopRequireDefault(require("invariant"));
12
+ var _utils = require("./utils");
13
+ var _d3Scale = require("d3-scale");
14
+ var createSnapMinAndMax = function createSnapMinAndMax(_ref) {
15
+ var min = _ref.min,
16
+ max = _ref.max,
17
+ step = _ref.step;
18
+ // for graphing, if step is a value with decimals, we have to calculate the min & max for the grid taking in consideration that 0 has to be exactly in the middle
19
+ // for example, if min: -5 & max: 5 & step: 0.75, in order to keep 0 in the middle we have to set min: -4.5 & max: 4.5
20
+
21
+ return {
22
+ step: step,
23
+ min: parseInt(min / step) * step,
24
+ max: parseInt(max / step) * step
25
+ };
26
+ };
27
+ var create = exports.create = function create(domain, range, size, getRootNode) {
28
+ (0, _invariant["default"])(domain.min < domain.max, 'domain: min must be less than max');
29
+ (0, _invariant["default"])(range.min < range.max, 'range: min must be less than max');
30
+ var domainMinMax = createSnapMinAndMax(domain);
31
+ var rangeMinMax = createSnapMinAndMax(range);
32
+ var scale = {
33
+ x: (0, _d3Scale.scaleLinear)().domain([domain.min, domain.max]).range([0, size.width]),
34
+ y: (0, _d3Scale.scaleLinear)().domain([range.max, range.min]).range([0, size.height])
35
+ };
36
+ var snap = {
37
+ x: _utils.snapTo.bind(null, domainMinMax.min, domainMinMax.max, domainMinMax.step),
38
+ y: _utils.snapTo.bind(null, rangeMinMax.min, rangeMinMax.max, rangeMinMax.step)
39
+ };
40
+ return {
41
+ scale: scale,
42
+ snap: snap,
43
+ domain: domain,
44
+ range: range,
45
+ size: size,
46
+ getRootNode: getRootNode
47
+ };
48
+ };
49
+ //# sourceMappingURL=graph-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-props.js","names":["_invariant","_interopRequireDefault","require","_utils","_d3Scale","createSnapMinAndMax","_ref","min","max","step","parseInt","create","exports","domain","range","size","getRootNode","invariant","domainMinMax","rangeMinMax","scale","x","scaleLinear","width","y","height","snap","snapTo","bind"],"sources":["../src/graph-props.js"],"sourcesContent":["import invariant from 'invariant';\nimport { snapTo } from './utils';\nimport { scaleLinear } from 'd3-scale';\n\nconst createSnapMinAndMax = ({ min, max, step }) => {\n // for graphing, if step is a value with decimals, we have to calculate the min & max for the grid taking in consideration that 0 has to be exactly in the middle\n // for example, if min: -5 & max: 5 & step: 0.75, in order to keep 0 in the middle we have to set min: -4.5 & max: 4.5\n\n return {\n step,\n min: parseInt(min / step) * step,\n max: parseInt(max / step) * step,\n };\n};\n\nexport const create = (domain, range, size, getRootNode) => {\n invariant(domain.min < domain.max, 'domain: min must be less than max');\n invariant(range.min < range.max, 'range: min must be less than max');\n\n const domainMinMax = createSnapMinAndMax(domain);\n const rangeMinMax = createSnapMinAndMax(range);\n\n const scale = {\n x: scaleLinear()\n .domain([domain.min, domain.max])\n .range([0, size.width]),\n y: scaleLinear()\n .domain([range.max, range.min])\n .range([0, size.height]),\n };\n\n const snap = {\n x: snapTo.bind(null, domainMinMax.min, domainMinMax.max, domainMinMax.step),\n y: snapTo.bind(null, rangeMinMax.min, rangeMinMax.max, rangeMinMax.step),\n };\n\n return { scale, snap, domain, range, size, getRootNode };\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAA2B;EAAA,IAArBC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;EAC3C;EACA;;EAEA,OAAO;IACLA,IAAI,EAAJA,IAAI;IACJF,GAAG,EAAEG,QAAQ,CAACH,GAAG,GAAGE,IAAI,CAAC,GAAGA,IAAI;IAChCD,GAAG,EAAEE,QAAQ,CAACF,GAAG,GAAGC,IAAI,CAAC,GAAGA;EAC9B,CAAC;AACH,CAAC;AAEM,IAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,SAATA,MAAMA,CAAIE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C;AAC1D,CAAC","ignoreList":[]}
@@ -0,0 +1,316 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
6
+ require("core-js/modules/es.object.to-string.js");
7
+ require("core-js/modules/es.reflect.construct.js");
8
+ require("core-js/modules/es.string.iterator.js");
9
+ require("core-js/modules/es.weak-map.js");
10
+ require("core-js/modules/web.dom-collections.iterator.js");
11
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, "__esModule", {
14
+ value: true
15
+ });
16
+ exports.gridDraggable = exports.deltaFn = void 0;
17
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
18
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
19
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
20
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
21
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
22
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
23
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
24
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
25
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
26
+ require("core-js/modules/es.number.to-fixed.js");
27
+ var _react = _interopRequireDefault(require("react"));
28
+ var _propTypes = _interopRequireDefault(require("prop-types"));
29
+ var _types = require("./types");
30
+ var _draggable = require("./draggable");
31
+ var _debug = _interopRequireDefault(require("debug"));
32
+ var utils = _interopRequireWildcard(require("./utils"));
33
+ var _isFunction = _interopRequireDefault(require("lodash/isFunction"));
34
+ var _invariant = _interopRequireDefault(require("invariant"));
35
+ var _d3Selection = require("d3-selection");
36
+ var _excluded = ["disabled"];
37
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
38
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
39
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
40
+ var log = (0, _debug["default"])('pie-lib:plot:grid-draggable');
41
+ var deltaFn = exports.deltaFn = function deltaFn(scale, snap, val) {
42
+ return function (delta) {
43
+ var normalized = delta + scale(0);
44
+ var inverted = scale.invert(normalized);
45
+ var fixDecimalsArithmetic = snap(val + inverted).toFixed(4) * 1000 / 1000;
46
+ return fixDecimalsArithmetic;
47
+ };
48
+ };
49
+
50
+ /**
51
+ * Creates a Component that is draggable, within a bounded grid.
52
+ * @param {*} opts
53
+ */
54
+ var gridDraggable = exports.gridDraggable = function gridDraggable(opts) {
55
+ return function (Comp) {
56
+ var _GridDraggable;
57
+ (0, _invariant["default"])(!!opts && (0, _isFunction["default"])(opts.fromDelta) && (0, _isFunction["default"])(opts.bounds) && (0, _isFunction["default"])(opts.anchorPoint), 'You must supply an object with: { anchorPoint: Function, fromDelta: Function, bounds: Function }');
58
+ return _GridDraggable = /*#__PURE__*/function (_React$Component) {
59
+ function GridDraggable(props) {
60
+ var _this;
61
+ (0, _classCallCheck2["default"])(this, GridDraggable);
62
+ _this = _callSuper(this, GridDraggable, [props]);
63
+ (0, _defineProperty2["default"])(_this, "grid", function () {
64
+ var graphProps = _this.props.graphProps;
65
+ var scale = graphProps.scale,
66
+ domain = graphProps.domain,
67
+ range = graphProps.range;
68
+ return {
69
+ x: scale.x(domain.step) - scale.x(0),
70
+ y: scale.y(range.step) - scale.y(0)
71
+ };
72
+ });
73
+ (0, _defineProperty2["default"])(_this, "onStart", function (e) {
74
+ var onDragStart = _this.props.onDragStart;
75
+ if (document.activeElement) {
76
+ document.activeElement.blur();
77
+ }
78
+ _this.setState({
79
+ startX: e.clientX,
80
+ startY: e.clientY
81
+ });
82
+ if (onDragStart) {
83
+ onDragStart();
84
+ }
85
+ });
86
+ (0, _defineProperty2["default"])(_this, "position", function () {
87
+ var _opts$anchorPoint = opts.anchorPoint(_this.props),
88
+ x = _opts$anchorPoint.x,
89
+ y = _opts$anchorPoint.y;
90
+ var graphProps = _this.props.graphProps;
91
+ var scale = graphProps.scale,
92
+ snap = graphProps.snap;
93
+ return {
94
+ anchorPoint: {
95
+ x: x,
96
+ y: y
97
+ },
98
+ x: deltaFn(scale.x, snap.x, x),
99
+ y: deltaFn(scale.y, snap.y, y)
100
+ };
101
+ });
102
+ (0, _defineProperty2["default"])(_this, "tiny", function (key, event) {
103
+ var K = key.toUpperCase();
104
+ var end = event["client".concat(K)];
105
+ var start = _this.state["start".concat(K)];
106
+ var delta = Math.abs(end - start);
107
+ var out = delta < Math.abs(_this.grid()[key]) / 10;
108
+ log('[tiny] key: ', key, 'delta: ', delta, 'out: ', out);
109
+ return out;
110
+ });
111
+ (0, _defineProperty2["default"])(_this, "getScaledBounds", function () {
112
+ var bounds = opts.bounds(_this.props, _this.props.graphProps);
113
+ log('bounds: ', bounds);
114
+ var grid = _this.grid();
115
+ var scaled = {
116
+ left: bounds.left * grid.x,
117
+ right: bounds.right * grid.x,
118
+ top: bounds.top * grid.y,
119
+ bottom: bounds.bottom * grid.y
120
+ };
121
+ log('[getScaledBounds]: ', scaled);
122
+ return scaled;
123
+ });
124
+ /**
125
+ * Retrieves the coordinates of a mouse or touch event relative to an SVG element.
126
+ * This method has been overwritten from the d3-selection library's clientPoint to handle touch events and improve clarity.
127
+ * @param {Element} node - The SVG element.
128
+ * @param {Event} event - The mouse or touch event.
129
+ * @returns {Array} - An array containing the coordinates [x, y] relative to the SVG element.
130
+ */
131
+ (0, _defineProperty2["default"])(_this, "getClientPoint", function (node, event) {
132
+ if (!node || !event) {
133
+ return null;
134
+ }
135
+ var svg = node.ownerSVGElement || node;
136
+ if (svg && svg.createSVGPoint) {
137
+ var point = svg.createSVGPoint();
138
+ // Check if it's a touch event and use the first touch point
139
+ if (event.touches && event.touches.length > 0) {
140
+ var touch = event.touches[0];
141
+ point.x = touch.clientX;
142
+ point.y = touch.clientY;
143
+ } else {
144
+ // Fall back to mouse event properties
145
+ point.x = event.clientX;
146
+ point.y = event.clientY;
147
+ }
148
+ if (node.getScreenCTM) {
149
+ point = point.matrixTransform(node.getScreenCTM().inverse());
150
+ return [point.x, point.y];
151
+ } else {
152
+ return null;
153
+ }
154
+ }
155
+ var rect = node.getBoundingClientRect();
156
+ if (rect) {
157
+ return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
158
+ } else {
159
+ return null;
160
+ }
161
+ });
162
+ (0, _defineProperty2["default"])(_this, "skipDragOutsideOfBounds", function (dd, e, graphProps) {
163
+ // Ignore drag movement outside of the domain and range.
164
+ var rootNode = graphProps.getRootNode();
165
+ var clientPoint = _this.getClientPoint(rootNode, e);
166
+ if (clientPoint === null) {
167
+ return true; // Indicate that the drag is outside of bounds
168
+ }
169
+ var _clientPoint = (0, _slicedToArray2["default"])(clientPoint, 2),
170
+ rawX = _clientPoint[0],
171
+ rawY = _clientPoint[1];
172
+ var scale = graphProps.scale,
173
+ domain = graphProps.domain,
174
+ range = graphProps.range;
175
+ var x = scale.x.invert(rawX);
176
+ var y = scale.y.invert(rawY);
177
+ var xOutside = dd.deltaX > 0 && x < domain.min || dd.deltaX < 0 && x > domain.max;
178
+ var yOutside = dd.deltaY > 0 && y > range.max || dd.deltaY < 0 && y < range.min;
179
+ return xOutside || yOutside;
180
+ });
181
+ (0, _defineProperty2["default"])(_this, "onDrag", function (e, dd) {
182
+ var _this$props = _this.props,
183
+ onDrag = _this$props.onDrag,
184
+ graphProps = _this$props.graphProps;
185
+ if (!onDrag) {
186
+ return;
187
+ }
188
+ var bounds = _this.getScaledBounds();
189
+ if (dd.deltaX < 0 && dd.deltaX < bounds.left) {
190
+ return;
191
+ }
192
+ if (dd.deltaX > 0 && dd.deltaX > bounds.right) {
193
+ return;
194
+ }
195
+ if (dd.deltaY < 0 && dd.deltaY < bounds.top) {
196
+ return;
197
+ }
198
+ if (dd.deltaY > 0 && dd.deltaY > bounds.bottom) {
199
+ return;
200
+ }
201
+ if (_this.skipDragOutsideOfBounds(dd, e, graphProps)) {
202
+ return;
203
+ }
204
+ var dragArg = _this.applyDelta({
205
+ x: dd.deltaX,
206
+ y: dd.deltaY
207
+ });
208
+ if (dragArg !== undefined || dragArg !== null) {
209
+ onDrag(dragArg);
210
+ }
211
+ });
212
+ (0, _defineProperty2["default"])(_this, "getDelta", function (point) {
213
+ var pos = _this.position();
214
+ var p = {
215
+ x: pos.x(point.x),
216
+ y: pos.y(point.y)
217
+ };
218
+ return utils.getDelta(pos.anchorPoint, p);
219
+ });
220
+ (0, _defineProperty2["default"])(_this, "applyDelta", function (point) {
221
+ var delta = _this.getDelta(point);
222
+ log('[applyDelta] delta:', delta);
223
+ return opts.fromDelta(_this.props, delta);
224
+ });
225
+ (0, _defineProperty2["default"])(_this, "onStop", function (e, dd) {
226
+ log('[onStop] dd:', dd);
227
+ var _this$props2 = _this.props,
228
+ onDragStop = _this$props2.onDragStop,
229
+ onClick = _this$props2.onClick;
230
+ if (onDragStop) {
231
+ onDragStop();
232
+ }
233
+ log('[onStop] lastX/Y: ', dd.lastX, dd.lastY);
234
+ var isClick = _this.tiny('x', e) && _this.tiny('y', e);
235
+ if (isClick) {
236
+ if (onClick) {
237
+ log('call onClick');
238
+ _this.setState({
239
+ startX: null
240
+ });
241
+ var graphProps = _this.props.graphProps;
242
+ var scale = graphProps.scale,
243
+ snap = graphProps.snap;
244
+ var _pointer = (0, _d3Selection.pointer)(e, e.target),
245
+ _pointer2 = (0, _slicedToArray2["default"])(_pointer, 2),
246
+ rawX = _pointer2[0],
247
+ rawY = _pointer2[1];
248
+ var x = scale.x.invert(rawX);
249
+ var y = scale.y.invert(rawY);
250
+ x = snap.x(x);
251
+ y = snap.y(y);
252
+ onClick({
253
+ x: x,
254
+ y: y
255
+ });
256
+ return false;
257
+ }
258
+ }
259
+ _this.setState({
260
+ startX: null,
261
+ startY: null
262
+ });
263
+ // return false to prevent state updates in the underlying draggable - a move will have triggered an update already.
264
+ return false;
265
+ });
266
+ _this.state = {
267
+ startX: null,
268
+ startY: null
269
+ };
270
+ return _this;
271
+ }
272
+ (0, _inherits2["default"])(GridDraggable, _React$Component);
273
+ return (0, _createClass2["default"])(GridDraggable, [{
274
+ key: "render",
275
+ value: function render() {
276
+ var _this$props3 = this.props,
277
+ disabled = _this$props3.disabled,
278
+ rest = (0, _objectWithoutProperties2["default"])(_this$props3, _excluded);
279
+ var grid = this.grid();
280
+
281
+ // prevent the text select icon from rendering.
282
+ var onMouseDown = function onMouseDown(e) {
283
+ return e.nativeEvent.preventDefault();
284
+ };
285
+
286
+ /**
287
+ * TODO: This shouldnt be necessary, we should be able to use the r-d classnames.
288
+ * But they aren't being unset. If we continue with this lib, we'll have to fix this.
289
+ */
290
+ var isDragging = this.state ? !!this.state.startX : false;
291
+ return /*#__PURE__*/_react["default"].createElement(_draggable.DraggableCore, {
292
+ disabled: disabled,
293
+ onMouseDown: onMouseDown,
294
+ onStart: this.onStart,
295
+ onDrag: this.onDrag,
296
+ onStop: this.onStop,
297
+ axis: opts.axis || 'both',
298
+ grid: [grid.x, grid.y]
299
+ }, /*#__PURE__*/_react["default"].createElement(Comp, (0, _extends2["default"])({}, rest, {
300
+ disabled: disabled,
301
+ isDragging: isDragging
302
+ })));
303
+ }
304
+ }]);
305
+ }(_react["default"].Component), (0, _defineProperty2["default"])(_GridDraggable, "propTypes", {
306
+ disabled: _propTypes["default"].bool,
307
+ onDragStart: _propTypes["default"].func,
308
+ onDrag: _propTypes["default"].func,
309
+ onDragStop: _propTypes["default"].func,
310
+ onClick: _propTypes["default"].func,
311
+ onMove: _propTypes["default"].func,
312
+ graphProps: _types.GraphPropsType.isRequired
313
+ }), _GridDraggable;
314
+ };
315
+ };
316
+ //# sourceMappingURL=grid-draggable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-draggable.js","names":["_react","_interopRequireDefault","require","_propTypes","_types","_draggable","_debug","utils","_interopRequireWildcard","_isFunction","_invariant","_d3Selection","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","log","debug","deltaFn","exports","scale","snap","val","delta","normalized","inverted","invert","fixDecimalsArithmetic","toFixed","gridDraggable","opts","Comp","_GridDraggable","invariant","isFunction","fromDelta","bounds","anchorPoint","_React$Component","GridDraggable","props","_this","_classCallCheck2","_defineProperty2","graphProps","domain","range","x","step","y","onDragStart","document","activeElement","blur","setState","startX","clientX","startY","clientY","_opts$anchorPoint","key","event","K","toUpperCase","end","concat","start","state","Math","abs","out","grid","scaled","left","right","top","bottom","node","svg","ownerSVGElement","createSVGPoint","point","touches","length","touch","getScreenCTM","matrixTransform","inverse","rect","getBoundingClientRect","clientLeft","clientTop","dd","rootNode","getRootNode","clientPoint","getClientPoint","_clientPoint","_slicedToArray2","rawX","rawY","xOutside","deltaX","min","max","yOutside","deltaY","_this$props","onDrag","getScaledBounds","skipDragOutsideOfBounds","dragArg","applyDelta","undefined","pos","position","p","getDelta","_this$props2","onDragStop","onClick","lastX","lastY","isClick","tiny","_pointer","pointer","target","_pointer2","_inherits2","_createClass2","value","render","_this$props3","disabled","rest","_objectWithoutProperties2","onMouseDown","nativeEvent","preventDefault","isDragging","createElement","DraggableCore","onStart","onStop","axis","_extends2","React","Component","PropTypes","bool","func","onMove","GraphPropsType","isRequired"],"sources":["../src/grid-draggable.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { GraphPropsType } from './types';\nimport { DraggableCore } from './draggable';\nimport debug from 'debug';\nimport * as utils from './utils';\nimport isFunction from 'lodash/isFunction';\nimport invariant from 'invariant';\nimport { pointer } from 'd3-selection';\n\nconst log = debug('pie-lib:plot:grid-draggable');\n\nexport const deltaFn = (scale, snap, val) => (delta) => {\n const normalized = delta + scale(0);\n const inverted = scale.invert(normalized);\n\n const fixDecimalsArithmetic = (snap(val + inverted).toFixed(4) * 1000) / 1000;\n\n return fixDecimalsArithmetic;\n};\n\n/**\n * Creates a Component that is draggable, within a bounded grid.\n * @param {*} opts\n */\nexport const gridDraggable = (opts) => (Comp) => {\n invariant(\n !!opts && isFunction(opts.fromDelta) && isFunction(opts.bounds) && isFunction(opts.anchorPoint),\n 'You must supply an object with: { anchorPoint: Function, fromDelta: Function, bounds: Function }',\n );\n return class GridDraggable extends React.Component {\n static propTypes = {\n disabled: PropTypes.bool,\n onDragStart: PropTypes.func,\n onDrag: PropTypes.func,\n onDragStop: PropTypes.func,\n onClick: PropTypes.func,\n onMove: PropTypes.func,\n graphProps: GraphPropsType.isRequired,\n };\n\n constructor(props) {\n super(props);\n this.state = {\n startX: null,\n startY: null,\n };\n }\n\n grid = () => {\n const { graphProps } = this.props;\n const { scale, domain, range } = graphProps;\n return {\n x: scale.x(domain.step) - scale.x(0),\n y: scale.y(range.step) - scale.y(0),\n };\n };\n onStart = (e) => {\n const { onDragStart } = this.props;\n if (document.activeElement) {\n document.activeElement.blur();\n }\n this.setState({ startX: e.clientX, startY: e.clientY });\n if (onDragStart) {\n onDragStart();\n }\n };\n position = () => {\n const { x, y } = opts.anchorPoint(this.props);\n const { graphProps } = this.props;\n const { scale, snap } = graphProps;\n\n return {\n anchorPoint: {\n x,\n y,\n },\n x: deltaFn(scale.x, snap.x, x),\n y: deltaFn(scale.y, snap.y, y),\n };\n };\n\n tiny = (key, event) => {\n const K = key.toUpperCase();\n const end = event[`client${K}`];\n const start = this.state[`start${K}`];\n const delta = Math.abs(end - start);\n const out = delta < Math.abs(this.grid()[key]) / 10;\n log('[tiny] key: ', key, 'delta: ', delta, 'out: ', out);\n return out;\n };\n\n getScaledBounds = () => {\n const bounds = opts.bounds(this.props, this.props.graphProps);\n log('bounds: ', bounds);\n const grid = this.grid();\n\n const scaled = {\n left: bounds.left * grid.x,\n right: bounds.right * grid.x,\n top: bounds.top * grid.y,\n bottom: bounds.bottom * grid.y,\n };\n log('[getScaledBounds]: ', scaled);\n return scaled;\n };\n\n /**\n * Retrieves the coordinates of a mouse or touch event relative to an SVG element.\n * This method has been overwritten from the d3-selection library's clientPoint to handle touch events and improve clarity.\n * @param {Element} node - The SVG element.\n * @param {Event} event - The mouse or touch event.\n * @returns {Array} - An array containing the coordinates [x, y] relative to the SVG element.\n */\n getClientPoint = (node, event) => {\n if (!node || !event) {\n return null;\n }\n const svg = node.ownerSVGElement || node;\n\n if (svg && svg.createSVGPoint) {\n let point = svg.createSVGPoint();\n // Check if it's a touch event and use the first touch point\n if (event.touches && event.touches.length > 0) {\n const touch = event.touches[0];\n point.x = touch.clientX;\n point.y = touch.clientY;\n } else {\n // Fall back to mouse event properties\n point.x = event.clientX;\n point.y = event.clientY;\n }\n if (node.getScreenCTM) {\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n } else {\n return null;\n }\n }\n\n const rect = node.getBoundingClientRect();\n if (rect) {\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n } else {\n return null;\n }\n };\n\n skipDragOutsideOfBounds = (dd, e, graphProps) => {\n // Ignore drag movement outside of the domain and range.\n const rootNode = graphProps.getRootNode();\n const clientPoint = this.getClientPoint(rootNode, e);\n\n if (clientPoint === null) {\n return true; // Indicate that the drag is outside of bounds\n }\n\n const [rawX, rawY] = clientPoint;\n const { scale, domain, range } = graphProps;\n let x = scale.x.invert(rawX);\n let y = scale.y.invert(rawY);\n\n const xOutside = (dd.deltaX > 0 && x < domain.min) || (dd.deltaX < 0 && x > domain.max);\n const yOutside = (dd.deltaY > 0 && y > range.max) || (dd.deltaY < 0 && y < range.min);\n return xOutside || yOutside;\n };\n\n onDrag = (e, dd) => {\n const { onDrag, graphProps } = this.props;\n\n if (!onDrag) {\n return;\n }\n\n const bounds = this.getScaledBounds();\n\n if (dd.deltaX < 0 && dd.deltaX < bounds.left) {\n return;\n }\n\n if (dd.deltaX > 0 && dd.deltaX > bounds.right) {\n return;\n }\n\n if (dd.deltaY < 0 && dd.deltaY < bounds.top) {\n return;\n }\n\n if (dd.deltaY > 0 && dd.deltaY > bounds.bottom) {\n return;\n }\n\n if (this.skipDragOutsideOfBounds(dd, e, graphProps)) {\n return;\n }\n\n const dragArg = this.applyDelta({ x: dd.deltaX, y: dd.deltaY });\n\n if (dragArg !== undefined || dragArg !== null) {\n onDrag(dragArg);\n }\n };\n\n getDelta = (point) => {\n const pos = this.position();\n\n const p = {\n x: pos.x(point.x),\n y: pos.y(point.y),\n };\n\n return utils.getDelta(pos.anchorPoint, p);\n };\n\n applyDelta = (point) => {\n const delta = this.getDelta(point);\n log('[applyDelta] delta:', delta);\n return opts.fromDelta(this.props, delta);\n };\n\n onStop = (e, dd) => {\n log('[onStop] dd:', dd);\n const { onDragStop, onClick } = this.props;\n\n if (onDragStop) {\n onDragStop();\n }\n\n log('[onStop] lastX/Y: ', dd.lastX, dd.lastY);\n const isClick = this.tiny('x', e) && this.tiny('y', e);\n\n if (isClick) {\n if (onClick) {\n log('call onClick');\n this.setState({ startX: null });\n const { graphProps } = this.props;\n const { scale, snap } = graphProps;\n const [rawX, rawY] = pointer(e, e.target);\n let x = scale.x.invert(rawX);\n let y = scale.y.invert(rawY);\n x = snap.x(x);\n y = snap.y(y);\n onClick({ x, y });\n return false;\n }\n }\n\n this.setState({ startX: null, startY: null });\n // return false to prevent state updates in the underlying draggable - a move will have triggered an update already.\n return false;\n };\n\n render() {\n const { disabled, ...rest } = this.props;\n const grid = this.grid();\n\n // prevent the text select icon from rendering.\n const onMouseDown = (e) => e.nativeEvent.preventDefault();\n\n /**\n * TODO: This shouldnt be necessary, we should be able to use the r-d classnames.\n * But they aren't being unset. If we continue with this lib, we'll have to fix this.\n */\n const isDragging = this.state ? !!this.state.startX : false;\n\n return (\n <DraggableCore\n disabled={disabled}\n onMouseDown={onMouseDown}\n onStart={this.onStart}\n onDrag={this.onDrag}\n onStop={this.onStop}\n axis={opts.axis || 'both'}\n grid={[grid.x, grid.y]}\n >\n <Comp {...rest} disabled={disabled} isDragging={isDragging} />\n </DraggableCore>\n );\n }\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,KAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,UAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAAuC,IAAAU,SAAA;AAAA,SAAAJ,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MA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AAC;QAEpB;MAAC;IAAA,EAxPgCO,iBAAK,CAACC,SAAS,OAAAzG,gBAAA,aAAAX,cAAA,eAC7B;MACjBsG,QAAQ,EAAEe,qBAAS,CAACC,IAAI;MACxBpG,WAAW,EAAEmG,qBAAS,CAACE,IAAI;MAC3B3C,MAAM,EAAEyC,qBAAS,CAACE,IAAI;MACtBhC,UAAU,EAAE8B,qBAAS,CAACE,IAAI;MAC1B/B,OAAO,EAAE6B,qBAAS,CAACE,IAAI;MACvBC,MAAM,EAAEH,qBAAS,CAACE,IAAI;MACtB3G,UAAU,EAAE6G,qBAAc,CAACC;IAC7B,CAAC,GAAA1H,cAAA;EAiPL,CAAC;AAAA","ignoreList":[]}
package/lib/index.js ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
6
+ require("core-js/modules/es.object.to-string.js");
7
+ require("core-js/modules/es.string.iterator.js");
8
+ require("core-js/modules/es.weak-map.js");
9
+ require("core-js/modules/web.dom-collections.iterator.js");
10
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
+ var _typeof = require("@babel/runtime/helpers/typeof");
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ Object.defineProperty(exports, "Draggable", {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _draggable["default"];
19
+ }
20
+ });
21
+ Object.defineProperty(exports, "Root", {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _root["default"];
25
+ }
26
+ });
27
+ Object.defineProperty(exports, "createGraphProps", {
28
+ enumerable: true,
29
+ get: function get() {
30
+ return _graphProps.create;
31
+ }
32
+ });
33
+ Object.defineProperty(exports, "gridDraggable", {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _gridDraggable.gridDraggable;
37
+ }
38
+ });
39
+ exports.utils = exports.types = exports.trig = void 0;
40
+ var _root = _interopRequireDefault(require("./root"));
41
+ var _draggable = _interopRequireDefault(require("./draggable"));
42
+ var _gridDraggable = require("./grid-draggable");
43
+ var utils = _interopRequireWildcard(require("./utils"));
44
+ exports.utils = utils;
45
+ var trig = _interopRequireWildcard(require("./trig"));
46
+ exports.trig = trig;
47
+ var types = _interopRequireWildcard(require("./types"));
48
+ exports.types = types;
49
+ var _graphProps = require("./graph-props");
50
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_root","_interopRequireDefault","require","_draggable","_gridDraggable","utils","_interopRequireWildcard","exports","trig","types","_graphProps","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sources":["../src/index.js"],"sourcesContent":["import Root from './root';\nimport Draggable from './draggable';\nimport { gridDraggable } from './grid-draggable';\nimport * as utils from './utils';\nimport * as trig from './trig';\nimport * as types from './types';\nimport { create as createGraphProps } from './graph-props';\n\nexport { Root, Draggable, gridDraggable, utils, trig, types, createGraphProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAC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