@flux-ui/visuals 3.7.1 → 3.7.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 +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -760,7 +760,7 @@ var hue = (hues, fn) => {
|
|
|
760
760
|
var fixupHueShorter = (arr) => hue(arr, (d) => Math.abs(d) <= 180 ? d : d - 360 * Math.sign(d));
|
|
761
761
|
//#endregion
|
|
762
762
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/constants.js
|
|
763
|
-
var M$
|
|
763
|
+
var M$2 = [
|
|
764
764
|
-.14861,
|
|
765
765
|
1.78277,
|
|
766
766
|
-.29227,
|
|
@@ -772,20 +772,20 @@ var degToRad = Math.PI / 180;
|
|
|
772
772
|
var radToDeg = 180 / Math.PI;
|
|
773
773
|
//#endregion
|
|
774
774
|
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/convertRgbToCubehelix.js
|
|
775
|
-
var DE = M$
|
|
776
|
-
var BE = M$
|
|
777
|
-
var BCAD = M$
|
|
775
|
+
var DE = M$2[3] * M$2[4];
|
|
776
|
+
var BE = M$2[1] * M$2[4];
|
|
777
|
+
var BCAD = M$2[1] * M$2[2] - M$2[0] * M$2[3];
|
|
778
778
|
var convertRgbToCubehelix = ({ r, g, b, alpha }) => {
|
|
779
779
|
if (r === void 0) r = 0;
|
|
780
780
|
if (g === void 0) g = 0;
|
|
781
781
|
if (b === void 0) b = 0;
|
|
782
782
|
let l = (BCAD * b + r * DE - g * BE) / (BCAD + DE - BE);
|
|
783
783
|
let x = b - l;
|
|
784
|
-
let y = (M$
|
|
784
|
+
let y = (M$2[4] * (g - l) - M$2[2] * x) / M$2[3];
|
|
785
785
|
let res = {
|
|
786
786
|
mode: "cubehelix",
|
|
787
787
|
l,
|
|
788
|
-
s: l === 0 || l === 1 ? void 0 : Math.sqrt(x * x + y * y) / (M$
|
|
788
|
+
s: l === 0 || l === 1 ? void 0 : Math.sqrt(x * x + y * y) / (M$2[4] * l * (1 - l))
|
|
789
789
|
};
|
|
790
790
|
if (res.s) res.h = Math.atan2(y, x) * radToDeg - 120;
|
|
791
791
|
if (alpha !== void 0) res.alpha = alpha;
|
|
@@ -800,9 +800,9 @@ var convertCubehelixToRgb = ({ h, s, l, alpha }) => {
|
|
|
800
800
|
let amp = s === void 0 ? 0 : s * l * (1 - l);
|
|
801
801
|
let cosh = Math.cos(h);
|
|
802
802
|
let sinh = Math.sin(h);
|
|
803
|
-
res.r = l + amp * (M$
|
|
804
|
-
res.g = l + amp * (M$
|
|
805
|
-
res.b = l + amp * (M$
|
|
803
|
+
res.r = l + amp * (M$2[0] * cosh + M$2[1] * sinh);
|
|
804
|
+
res.g = l + amp * (M$2[2] * cosh + M$2[3] * sinh);
|
|
805
|
+
res.b = l + amp * (M$2[4] * cosh + M$2[5] * sinh);
|
|
806
806
|
if (alpha !== void 0) res.alpha = alpha;
|
|
807
807
|
return res;
|
|
808
808
|
};
|
|
@@ -9261,7 +9261,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
9261
9261
|
else throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`);
|
|
9262
9262
|
}
|
|
9263
9263
|
//#endregion
|
|
9264
|
-
//#region ../../node_modules/.bun/@basmilius+utils@3.
|
|
9264
|
+
//#region ../../node_modules/.bun/@basmilius+utils@3.55.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
|
|
9265
9265
|
function x$1(e) {
|
|
9266
9266
|
let t = {};
|
|
9267
9267
|
do {
|
|
@@ -9311,7 +9311,7 @@ function K$1(e, t, n) {
|
|
|
9311
9311
|
Object.defineProperty(e, t, { value: n });
|
|
9312
9312
|
}
|
|
9313
9313
|
//#endregion
|
|
9314
|
-
//#region ../../node_modules/.bun/@basmilius+http-client@3.
|
|
9314
|
+
//#region ../../node_modules/.bun/@basmilius+http-client@3.55.0+9129bae305b09d14/node_modules/@basmilius/http-client/dist/index.mjs
|
|
9315
9315
|
function adapter_default(Parent) {
|
|
9316
9316
|
return class extends Parent {
|
|
9317
9317
|
constructor(...args) {
|
|
@@ -9819,7 +9819,7 @@ var HttpAdapter = _HttpAdapter = class HttpAdapter {
|
|
|
9819
9819
|
}
|
|
9820
9820
|
};
|
|
9821
9821
|
HttpAdapter = _HttpAdapter = __decorate([adapter_default], HttpAdapter);
|
|
9822
|
-
function
|
|
9822
|
+
function de$1() {
|
|
9823
9823
|
let t = getCurrentInstance();
|
|
9824
9824
|
return computed(() => t?.uid ?? (t?.proxy)._uid ?? 0);
|
|
9825
9825
|
}
|
|
@@ -9927,7 +9927,7 @@ var FluxVisualAnimatedColors_default = /* @__PURE__ */ defineComponent({
|
|
|
9927
9927
|
const animationFrame = ref(0);
|
|
9928
9928
|
const tick = ref(0);
|
|
9929
9929
|
const size = ref(null);
|
|
9930
|
-
const componentId =
|
|
9930
|
+
const componentId = de$1();
|
|
9931
9931
|
const inView = k$1(canvasRef, { initial: true });
|
|
9932
9932
|
const reducedMotion = v$1();
|
|
9933
9933
|
const polygons = computed(() => {
|