xcode-graph 0.2.0 → 0.2.1

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.
@@ -403,6 +403,15 @@
403
403
  "privacy": "private",
404
404
  "default": "null"
405
405
  },
406
+ {
407
+ "kind": "field",
408
+ "name": "themeObserver",
409
+ "type": {
410
+ "text": "MutationObserver | null"
411
+ },
412
+ "privacy": "private",
413
+ "default": "null"
414
+ },
406
415
  {
407
416
  "kind": "field",
408
417
  "name": "intersectionObserver",
package/dist/chunk.js ADDED
@@ -0,0 +1,14 @@
1
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
2
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
3
+ get: ((e) => i[e]).bind(null, d),
4
+ enumerable: !(s = n(i, d)) || s.enumerable
5
+ });
6
+ return e;
7
+ }, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
8
+ value: n,
9
+ enumerable: !0
10
+ }) : a, n)), l = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
11
+ if (typeof require < "u") return require.apply(this, arguments);
12
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
13
+ });
14
+ export { l as n, c as r, o as t };
@@ -0,0 +1,196 @@
1
+ import { n as e, t } from "./chunk.js";
2
+ var n = t(((t, n) => {
3
+ (function(e) {
4
+ if (typeof t == "object" && n !== void 0) n.exports = e();
5
+ else if (typeof define == "function" && define.amd) define([], e);
6
+ else {
7
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this;
8
+ r.ELK = e();
9
+ }
10
+ })(function() {
11
+ return (function() {
12
+ function t(n, r, i) {
13
+ function a(s, c) {
14
+ if (!r[s]) {
15
+ if (!n[s]) {
16
+ var l = typeof e == "function" && e;
17
+ if (!c && l) return l(s, !0);
18
+ if (o) return o(s, !0);
19
+ var u = Error("Cannot find module '" + s + "'");
20
+ throw u.code = "MODULE_NOT_FOUND", u;
21
+ }
22
+ var d = r[s] = { exports: {} };
23
+ n[s][0].call(d.exports, function(e) {
24
+ var t = n[s][1][e];
25
+ return a(t || e);
26
+ }, d, d.exports, t, n, r, i);
27
+ }
28
+ return r[s].exports;
29
+ }
30
+ for (var o = typeof e == "function" && e, s = 0; s < i.length; s++) a(i[s]);
31
+ return a;
32
+ }
33
+ return t;
34
+ })()({
35
+ 1: [function(e, t, n) {
36
+ Object.defineProperty(n, "__esModule", { value: !0 }), n.default = void 0;
37
+ function r(e) {
38
+ "@babel/helpers - typeof";
39
+ return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
40
+ return typeof e;
41
+ } : function(e) {
42
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
43
+ }, r(e);
44
+ }
45
+ function i(e, t) {
46
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
47
+ }
48
+ function a(e, t) {
49
+ for (var n = 0; n < t.length; n++) {
50
+ var r = t[n];
51
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, s(r.key), r);
52
+ }
53
+ }
54
+ function o(e, t, n) {
55
+ return t && a(e.prototype, t), n && a(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
56
+ }
57
+ function s(e) {
58
+ var t = c(e, "string");
59
+ return r(t) == "symbol" ? t : t + "";
60
+ }
61
+ function c(e, t) {
62
+ if (r(e) != "object" || !e) return e;
63
+ var n = e[Symbol.toPrimitive];
64
+ if (n !== void 0) {
65
+ var i = n.call(e, t || "default");
66
+ if (r(i) != "object") return i;
67
+ throw TypeError("@@toPrimitive must return a primitive value.");
68
+ }
69
+ return (t === "string" ? String : Number)(e);
70
+ }
71
+ n.default = function() {
72
+ function e() {
73
+ var t = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = n.defaultLayoutOptions, a = r === void 0 ? {} : r, o = n.algorithms, s = o === void 0 ? [
74
+ "layered",
75
+ "stress",
76
+ "mrtree",
77
+ "radial",
78
+ "force",
79
+ "disco",
80
+ "sporeOverlap",
81
+ "sporeCompaction",
82
+ "rectpacking"
83
+ ] : o, c = n.workerFactory, u = n.workerUrl;
84
+ if (i(this, e), this.defaultLayoutOptions = a, this.initialized = !1, u === void 0 && c === void 0) throw Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");
85
+ var d = c;
86
+ u !== void 0 && c === void 0 && (d = function(e) {
87
+ return new Worker(e);
88
+ });
89
+ var f = d(u);
90
+ if (typeof f.postMessage != "function") throw TypeError("Created worker does not provide the required 'postMessage' function.");
91
+ this.worker = new l(f), this.worker.postMessage({
92
+ cmd: "register",
93
+ algorithms: s
94
+ }).then(function(e) {
95
+ return t.initialized = !0;
96
+ }).catch(console.err);
97
+ }
98
+ return o(e, [
99
+ {
100
+ key: "layout",
101
+ value: function(e) {
102
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.layoutOptions, r = n === void 0 ? this.defaultLayoutOptions : n, i = t.logging, a = i === void 0 ? !1 : i, o = t.measureExecutionTime, s = o === void 0 ? !1 : o;
103
+ return e ? this.worker.postMessage({
104
+ cmd: "layout",
105
+ graph: e,
106
+ layoutOptions: r,
107
+ options: {
108
+ logging: a,
109
+ measureExecutionTime: s
110
+ }
111
+ }) : Promise.reject(Error("Missing mandatory parameter 'graph'."));
112
+ }
113
+ },
114
+ {
115
+ key: "knownLayoutAlgorithms",
116
+ value: function() {
117
+ return this.worker.postMessage({ cmd: "algorithms" });
118
+ }
119
+ },
120
+ {
121
+ key: "knownLayoutOptions",
122
+ value: function() {
123
+ return this.worker.postMessage({ cmd: "options" });
124
+ }
125
+ },
126
+ {
127
+ key: "knownLayoutCategories",
128
+ value: function() {
129
+ return this.worker.postMessage({ cmd: "categories" });
130
+ }
131
+ },
132
+ {
133
+ key: "terminateWorker",
134
+ value: function() {
135
+ this.worker && this.worker.terminate();
136
+ }
137
+ }
138
+ ]);
139
+ }();
140
+ var l = function() {
141
+ function e(t) {
142
+ var n = this;
143
+ if (i(this, e), t === void 0) throw Error("Missing mandatory parameter 'worker'.");
144
+ this.resolvers = {}, this.worker = t, this.worker.onmessage = function(e) {
145
+ setTimeout(function() {
146
+ n.receive(n, e);
147
+ }, 0);
148
+ };
149
+ }
150
+ return o(e, [
151
+ {
152
+ key: "postMessage",
153
+ value: function(e) {
154
+ var t = this.id || 0;
155
+ this.id = t + 1, e.id = t;
156
+ var n = this;
157
+ return new Promise(function(r, i) {
158
+ n.resolvers[t] = function(e, t) {
159
+ e ? (n.convertGwtStyleError(e), i(e)) : r(t);
160
+ }, n.worker.postMessage(e);
161
+ });
162
+ }
163
+ },
164
+ {
165
+ key: "receive",
166
+ value: function(e, t) {
167
+ var n = t.data, r = e.resolvers[n.id];
168
+ r && (delete e.resolvers[n.id], n.error ? r(n.error) : r(null, n.data));
169
+ }
170
+ },
171
+ {
172
+ key: "terminate",
173
+ value: function() {
174
+ this.worker && this.worker.terminate();
175
+ }
176
+ },
177
+ {
178
+ key: "convertGwtStyleError",
179
+ value: function(e) {
180
+ if (e) {
181
+ var t = e.__java$exception;
182
+ t && (t.cause && t.cause.backingJsObject && (e.cause = t.cause.backingJsObject, this.convertGwtStyleError(e.cause)), delete e.__java$exception);
183
+ }
184
+ }
185
+ }
186
+ ]);
187
+ }();
188
+ }, {}],
189
+ 2: [function(e, t, n) {
190
+ var r = e("./elk-api.js").default;
191
+ Object.defineProperty(t.exports, "__esModule", { value: !0 }), t.exports = r, r.default = r;
192
+ }, { "./elk-api.js": 1 }]
193
+ }, {}, [2])(2);
194
+ });
195
+ }));
196
+ export default n();