@barefootjs/xyflow 0.1.0 → 0.1.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.
- package/dist/index.js +54 -57
- package/dist/xyflow.browser.min.js +2 -2
- package/dist/xyflow.browser.min.js.map +7 -7
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -91,6 +91,17 @@ function set(type, name, callback) {
|
|
|
91
91
|
return type;
|
|
92
92
|
}
|
|
93
93
|
var dispatch_default = dispatch;
|
|
94
|
+
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
|
|
95
|
+
function matcher_default(selector) {
|
|
96
|
+
return function() {
|
|
97
|
+
return this.matches(selector);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function childMatcher(selector) {
|
|
101
|
+
return function(node) {
|
|
102
|
+
return node.matches(selector);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
94
105
|
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js
|
|
95
106
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
96
107
|
var namespaces_default = {
|
|
@@ -108,24 +119,34 @@ function namespace_default(name) {
|
|
|
108
119
|
name = name.slice(i + 1);
|
|
109
120
|
return namespaces_default.hasOwnProperty(prefix) ? { space: namespaces_default[prefix], local: name } : name;
|
|
110
121
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
function creatorFixed(fullname) {
|
|
120
|
-
return function() {
|
|
121
|
-
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function creator_default(name) {
|
|
125
|
-
var fullname = namespace_default(name);
|
|
126
|
-
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
|
|
122
|
+
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/sourceEvent.js
|
|
123
|
+
function sourceEvent_default(event) {
|
|
124
|
+
let sourceEvent;
|
|
125
|
+
while (sourceEvent = event.sourceEvent)
|
|
126
|
+
event = sourceEvent;
|
|
127
|
+
return event;
|
|
127
128
|
}
|
|
128
129
|
|
|
130
|
+
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/pointer.js
|
|
131
|
+
function pointer_default(event, node) {
|
|
132
|
+
event = sourceEvent_default(event);
|
|
133
|
+
if (node === undefined)
|
|
134
|
+
node = event.currentTarget;
|
|
135
|
+
if (node) {
|
|
136
|
+
var svg = node.ownerSVGElement || node;
|
|
137
|
+
if (svg.createSVGPoint) {
|
|
138
|
+
var point = svg.createSVGPoint();
|
|
139
|
+
point.x = event.clientX, point.y = event.clientY;
|
|
140
|
+
point = point.matrixTransform(node.getScreenCTM().inverse());
|
|
141
|
+
return [point.x, point.y];
|
|
142
|
+
}
|
|
143
|
+
if (node.getBoundingClientRect) {
|
|
144
|
+
var rect = node.getBoundingClientRect();
|
|
145
|
+
return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return [event.pageX, event.pageY];
|
|
149
|
+
}
|
|
129
150
|
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
|
|
130
151
|
function none() {}
|
|
131
152
|
function selector_default(selector) {
|
|
@@ -187,18 +208,6 @@ function selectAll_default(select) {
|
|
|
187
208
|
return new Selection(subgroups, parents);
|
|
188
209
|
}
|
|
189
210
|
|
|
190
|
-
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
|
|
191
|
-
function matcher_default(selector) {
|
|
192
|
-
return function() {
|
|
193
|
-
return this.matches(selector);
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function childMatcher(selector) {
|
|
197
|
-
return function(node) {
|
|
198
|
-
return node.matches(selector);
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
|
|
202
211
|
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
|
|
203
212
|
var find = Array.prototype.find;
|
|
204
213
|
function childFind(match) {
|
|
@@ -710,6 +719,23 @@ function lower_default() {
|
|
|
710
719
|
return this.each(lower);
|
|
711
720
|
}
|
|
712
721
|
|
|
722
|
+
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
|
|
723
|
+
function creatorInherit(name) {
|
|
724
|
+
return function() {
|
|
725
|
+
var document2 = this.ownerDocument, uri = this.namespaceURI;
|
|
726
|
+
return uri === xhtml && document2.documentElement.namespaceURI === xhtml ? document2.createElement(name) : document2.createElementNS(uri, name);
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
function creatorFixed(fullname) {
|
|
730
|
+
return function() {
|
|
731
|
+
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
function creator_default(name) {
|
|
735
|
+
var fullname = namespace_default(name);
|
|
736
|
+
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
|
|
737
|
+
}
|
|
738
|
+
|
|
713
739
|
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
|
|
714
740
|
function append_default(name) {
|
|
715
741
|
var create = typeof name === "function" ? name : creator_default(name);
|
|
@@ -923,34 +949,6 @@ var selection_default = selection;
|
|
|
923
949
|
function select_default2(selector) {
|
|
924
950
|
return typeof selector === "string" ? new Selection([[document.querySelector(selector)]], [document.documentElement]) : new Selection([[selector]], root);
|
|
925
951
|
}
|
|
926
|
-
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/sourceEvent.js
|
|
927
|
-
function sourceEvent_default(event) {
|
|
928
|
-
let sourceEvent;
|
|
929
|
-
while (sourceEvent = event.sourceEvent)
|
|
930
|
-
event = sourceEvent;
|
|
931
|
-
return event;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
// ../../node_modules/.bun/d3-selection@3.0.0/node_modules/d3-selection/src/pointer.js
|
|
935
|
-
function pointer_default(event, node) {
|
|
936
|
-
event = sourceEvent_default(event);
|
|
937
|
-
if (node === undefined)
|
|
938
|
-
node = event.currentTarget;
|
|
939
|
-
if (node) {
|
|
940
|
-
var svg = node.ownerSVGElement || node;
|
|
941
|
-
if (svg.createSVGPoint) {
|
|
942
|
-
var point = svg.createSVGPoint();
|
|
943
|
-
point.x = event.clientX, point.y = event.clientY;
|
|
944
|
-
point = point.matrixTransform(node.getScreenCTM().inverse());
|
|
945
|
-
return [point.x, point.y];
|
|
946
|
-
}
|
|
947
|
-
if (node.getBoundingClientRect) {
|
|
948
|
-
var rect = node.getBoundingClientRect();
|
|
949
|
-
return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
return [event.pageX, event.pageY];
|
|
953
|
-
}
|
|
954
952
|
// ../../node_modules/.bun/d3-drag@3.0.0/node_modules/d3-drag/src/noevent.js
|
|
955
953
|
var nonpassive = { passive: false };
|
|
956
954
|
var nonpassivecapture = { capture: true, passive: false };
|
|
@@ -2687,7 +2685,6 @@ Transition.prototype = transition.prototype = {
|
|
|
2687
2685
|
end: end_default,
|
|
2688
2686
|
[Symbol.iterator]: selection_prototype[Symbol.iterator]
|
|
2689
2687
|
};
|
|
2690
|
-
|
|
2691
2688
|
// ../../node_modules/.bun/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
|
|
2692
2689
|
function cubicInOut(t) {
|
|
2693
2690
|
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|