@relation-graph/vue3 3.0.10 → 3.0.12
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/package.json +1 -1
- package/relation-graph.js +3 -3
- package/relation-graph.mjs +6 -6
- package/relation-graph.ssr.mjs +6 -6
- package/relation-graph.umd.js +3 -3
- package/style.css +1 -1
package/relation-graph.mjs
CHANGED
|
@@ -4,12 +4,12 @@ var w = (r, i, e) => (sn(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
|
4
4
|
import "./style.css";
|
|
5
5
|
import { defineComponent as H, computed as A, openBlock as R, createElementBlock as E, normalizeClass as K, createElementVNode as I, withModifiers as xe, createBlock as le, inject as ut, ref as ee, onMounted as ae, onBeforeUnmount as Ve, withDirectives as Ie, normalizeStyle as te, renderSlot as X, createVNode as oe, createCommentVNode as W, toDisplayString as pe, vShow as Ee, Fragment as Ce, renderList as tt, withCtx as ne, mergeProps as je, Teleport as an, withMemo as mt, normalizeProps as ce, guardReactiveProps as he, createTextVNode as Pt, markRaw as Tt, provide as rn, h as Ae, defineEmits as ln, watch as lt, unref as Me, onUnmounted as Ye, nextTick as ot } from "vue";
|
|
6
6
|
/*!
|
|
7
|
-
* relation-graph v3.0.
|
|
7
|
+
* relation-graph v3.0.12
|
|
8
8
|
* (c) 2026 WanLian <seeksdream@qq.com>
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
* Repository: https://github.com/seeksdream/relation-graph
|
|
11
11
|
*/
|
|
12
|
-
const kt = "3.0.
|
|
12
|
+
const kt = "3.0.12", ks = Symbol("INSTALLED_KEY"), qe = "RelationGraphProvideKey", Oe = (r) => {
|
|
13
13
|
try {
|
|
14
14
|
if ("touches" in r && r.touches || "targetTouches" in r && r.targetTouches)
|
|
15
15
|
return !0;
|
|
@@ -57,7 +57,7 @@ const kt = "3.0.10", ks = Symbol("INSTALLED_KEY"), qe = "RelationGraphProvideKey
|
|
|
57
57
|
return a > 1 && l.push(r), a > 21 && l.push(i), a > 35 && l.push(e), a > 55 && l.push(t), a > 189 && l.push(n), a > 231 && l.push(o), a > 1234 && l.push(s), l.join("");
|
|
58
58
|
}, xt = (r) => r.replace(/-/g, "").replace(/\*/g, "-"), Rt = (r) => {
|
|
59
59
|
const i = cn(), e = dn(), t = "r-e-l-a-t-i-o-n*g-r-a-p-h", n = "h-t-t-p-s-:-/-/-g-i-t-h-u-b-.-c-o-m-/-s-e-e-k-s-d-r-e-a-m-/-r-e-l-a-t-i-o-n-*-g-r-a-p-h";
|
|
60
|
-
window && window[i] && window[i][e](
|
|
60
|
+
typeof window < "u" && window && window[i] && window[i][e](
|
|
61
61
|
`%c ${xt(t)} %c Version v${kt}(${r}) %c More info: ${xt(n)} %c`,
|
|
62
62
|
"background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff",
|
|
63
63
|
"background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff",
|
|
@@ -4178,13 +4178,13 @@ class Xo {
|
|
|
4178
4178
|
enableDebugLog(i) {
|
|
4179
4179
|
this.dataProvider.updateOptions({
|
|
4180
4180
|
debug: i
|
|
4181
|
-
}), window && (window.relationGraphDebug = i);
|
|
4181
|
+
}), typeof window < "u" && window && (window.relationGraphDebug = i);
|
|
4182
4182
|
}
|
|
4183
4183
|
_dataUpdated() {
|
|
4184
4184
|
this._requestDataUpdate();
|
|
4185
4185
|
}
|
|
4186
4186
|
_requestDataUpdate() {
|
|
4187
|
-
|
|
4187
|
+
typeof window > "u" || !window.requestAnimationFrame || this._dataUpdatedRequested || (this._dataUpdatedRequested = !0, requestAnimationFrame(this._doSomethingAfterDataUpdated.bind(this)));
|
|
4188
4188
|
}
|
|
4189
4189
|
_doSomethingAfterDataUpdated() {
|
|
4190
4190
|
try {
|
|
@@ -5287,7 +5287,7 @@ class Qo extends Zo {
|
|
|
5287
5287
|
throw new Error('Graph options do not support setting layouts properties, Please use "defaultLineTextOnPath"!');
|
|
5288
5288
|
if (e.debug !== void 0) {
|
|
5289
5289
|
const t = e.debug === !0;
|
|
5290
|
-
t && L("RGOptions:user instance options:", e), window && (window.relationGraphDebug = t);
|
|
5290
|
+
t && L("RGOptions:user instance options:", e), typeof window < "u" && window && (window.relationGraphDebug = t);
|
|
5291
5291
|
}
|
|
5292
5292
|
e.layout ? (this.dataProvider.updateOptions({
|
|
5293
5293
|
...e,
|
package/relation-graph.ssr.mjs
CHANGED
|
@@ -3,12 +3,12 @@ var sn = (r, i, e) => i in r ? on(r, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var w = (r, i, e) => (sn(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import { defineComponent as H, computed as A, openBlock as R, createElementBlock as E, normalizeClass as K, createElementVNode as I, withModifiers as xe, createBlock as le, inject as ut, ref as ee, onMounted as ae, onBeforeUnmount as Ve, withDirectives as Ie, normalizeStyle as te, renderSlot as X, createVNode as oe, createCommentVNode as W, toDisplayString as pe, vShow as Ee, Fragment as Ce, renderList as tt, withCtx as ne, mergeProps as je, Teleport as an, withMemo as mt, normalizeProps as ce, guardReactiveProps as he, createTextVNode as Pt, markRaw as Tt, provide as rn, h as Ae, defineEmits as ln, watch as lt, unref as Me, onUnmounted as Ye, nextTick as ot } from "vue";
|
|
5
5
|
/*!
|
|
6
|
-
* relation-graph v3.0.
|
|
6
|
+
* relation-graph v3.0.12
|
|
7
7
|
* (c) 2026 WanLian <seeksdream@qq.com>
|
|
8
8
|
* Released under the MIT License.
|
|
9
9
|
* Repository: https://github.com/seeksdream/relation-graph
|
|
10
10
|
*/
|
|
11
|
-
const kt = "3.0.
|
|
11
|
+
const kt = "3.0.12", Ts = Symbol("INSTALLED_KEY"), qe = "RelationGraphProvideKey", Oe = (r) => {
|
|
12
12
|
try {
|
|
13
13
|
if ("touches" in r && r.touches || "targetTouches" in r && r.targetTouches)
|
|
14
14
|
return !0;
|
|
@@ -56,7 +56,7 @@ const kt = "3.0.10", Ts = Symbol("INSTALLED_KEY"), qe = "RelationGraphProvideKey
|
|
|
56
56
|
return a > 1 && l.push(r), a > 21 && l.push(i), a > 35 && l.push(e), a > 55 && l.push(t), a > 189 && l.push(n), a > 231 && l.push(o), a > 1234 && l.push(s), l.join("");
|
|
57
57
|
}, xt = (r) => r.replace(/-/g, "").replace(/\*/g, "-"), Rt = (r) => {
|
|
58
58
|
const i = cn(), e = dn(), t = "r-e-l-a-t-i-o-n*g-r-a-p-h", n = "h-t-t-p-s-:-/-/-g-i-t-h-u-b-.-c-o-m-/-s-e-e-k-s-d-r-e-a-m-/-r-e-l-a-t-i-o-n-*-g-r-a-p-h";
|
|
59
|
-
window && window[i] && window[i][e](
|
|
59
|
+
typeof window < "u" && window && window[i] && window[i][e](
|
|
60
60
|
`%c ${xt(t)} %c Version v${kt}(${r}) %c More info: ${xt(n)} %c`,
|
|
61
61
|
"background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff",
|
|
62
62
|
"background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff",
|
|
@@ -4177,13 +4177,13 @@ class Xo {
|
|
|
4177
4177
|
enableDebugLog(i) {
|
|
4178
4178
|
this.dataProvider.updateOptions({
|
|
4179
4179
|
debug: i
|
|
4180
|
-
}), window && (window.relationGraphDebug = i);
|
|
4180
|
+
}), typeof window < "u" && window && (window.relationGraphDebug = i);
|
|
4181
4181
|
}
|
|
4182
4182
|
_dataUpdated() {
|
|
4183
4183
|
this._requestDataUpdate();
|
|
4184
4184
|
}
|
|
4185
4185
|
_requestDataUpdate() {
|
|
4186
|
-
|
|
4186
|
+
typeof window > "u" || !window.requestAnimationFrame || this._dataUpdatedRequested || (this._dataUpdatedRequested = !0, requestAnimationFrame(this._doSomethingAfterDataUpdated.bind(this)));
|
|
4187
4187
|
}
|
|
4188
4188
|
_doSomethingAfterDataUpdated() {
|
|
4189
4189
|
try {
|
|
@@ -5286,7 +5286,7 @@ class Qo extends Zo {
|
|
|
5286
5286
|
throw new Error('Graph options do not support setting layouts properties, Please use "defaultLineTextOnPath"!');
|
|
5287
5287
|
if (e.debug !== void 0) {
|
|
5288
5288
|
const t = e.debug === !0;
|
|
5289
|
-
t && L("RGOptions:user instance options:", e), window && (window.relationGraphDebug = t);
|
|
5289
|
+
t && L("RGOptions:user instance options:", e), typeof window < "u" && window && (window.relationGraphDebug = t);
|
|
5290
5290
|
}
|
|
5291
5291
|
e.layout ? (this.dataProvider.updateOptions({
|
|
5292
5292
|
...e,
|