stickyflow 0.8.0 → 0.9.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.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +4 -4
- package/dist/binding/index.d.ts +4 -4
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-VOYX6JMW.cjs → chunk-5EY7EK5V.cjs} +797 -669
- package/dist/chunk-5EY7EK5V.cjs.map +1 -0
- package/dist/{chunk-EDOPENSE.js → chunk-7ZEC7AB4.js} +228 -46
- package/dist/chunk-7ZEC7AB4.js.map +1 -0
- package/dist/{chunk-XPM3E7NV.cjs → chunk-BL5NCXS4.cjs} +23 -23
- package/dist/chunk-BL5NCXS4.cjs.map +1 -0
- package/dist/{chunk-LFEGZJWC.js → chunk-CM35H45Z.js} +3 -3
- package/dist/{chunk-LFEGZJWC.js.map → chunk-CM35H45Z.js.map} +1 -1
- package/dist/{chunk-GLZVHUSW.js → chunk-D2266VBZ.js} +393 -5
- package/dist/chunk-D2266VBZ.js.map +1 -0
- package/dist/{chunk-CZW3ARXQ.js → chunk-IKTSCLIK.js} +5 -5
- package/dist/chunk-IKTSCLIK.js.map +1 -0
- package/dist/{chunk-FQ7GMLCM.cjs → chunk-OUWGWDJ2.cjs} +15 -15
- package/dist/{chunk-FQ7GMLCM.cjs.map → chunk-OUWGWDJ2.cjs.map} +1 -1
- package/dist/{chunk-LNW5VIEA.cjs → chunk-QL7MNEMT.cjs} +393 -4
- package/dist/chunk-QL7MNEMT.cjs.map +1 -0
- package/dist/{chunk-IR2T47NW.cjs → chunk-RUSNRDLI.cjs} +257 -75
- package/dist/chunk-RUSNRDLI.cjs.map +1 -0
- package/dist/{chunk-MAPNY7MJ.js → chunk-TH2HFMEL.js} +147 -19
- package/dist/chunk-TH2HFMEL.js.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +232 -230
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.d.cts +2 -2
- package/dist/interaction/index.d.ts +2 -2
- package/dist/interaction/index.js +4 -2
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-Bp2FLEzv.d.cts → render-DU4lYbRl.d.cts} +19 -11
- package/dist/{render-Bp2FLEzv.d.ts → render-DU4lYbRl.d.ts} +19 -11
- package/dist/{runtime-DIag-XBa.d.cts → runtime-DG8X3Fwf.d.cts} +2 -2
- package/dist/{runtime-CWIGxRcL.d.ts → runtime-kqD1RS17.d.ts} +2 -2
- package/dist/{runtimeTypes-C7sSLfOK.d.ts → runtimeTypes-CvjlBZds.d.cts} +7 -3
- package/dist/{runtimeTypes-BYODuxHk.d.cts → runtimeTypes-vRaHOIHi.d.ts} +7 -3
- package/dist/stickyflow-diagram.global.js +192 -40
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-D2w6D_wG.d.cts → types-B5jrEEcF.d.cts} +1 -1
- package/dist/{types-B9QM_H3R.d.ts → types-B7IkZ0w4.d.ts} +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +4 -4
- package/dist/viewer/index.d.ts +4 -4
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.d.cts +2 -2
- package/dist/web-component/index.d.ts +2 -2
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-CZW3ARXQ.js.map +0 -1
- package/dist/chunk-EDOPENSE.js.map +0 -1
- package/dist/chunk-GLZVHUSW.js.map +0 -1
- package/dist/chunk-IR2T47NW.cjs.map +0 -1
- package/dist/chunk-LNW5VIEA.cjs.map +0 -1
- package/dist/chunk-MAPNY7MJ.js.map +0 -1
- package/dist/chunk-VOYX6JMW.cjs.map +0 -1
- package/dist/chunk-XPM3E7NV.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { render } from './chunk-
|
|
2
|
-
import { parseContractVersion, isContractCompatible, Emitter, resolveOwner, CHANGE_COLOR, findOwnerNode, isPrimary, linkSelectionOverlay, pathSelectionOverlay, isometricSelectionOverlay, shapeSelectionOverlay, DERIVED_HEIGHT_ROLES, quickDuplicateBubbles, isCameraGesture, linkChangeOverlay, shapeChangeOverlay, startChangeFade, REDUCED_MOTION_DURATION_MS, FLASH_DURATION_MS } from './chunk-
|
|
3
|
-
import { getComponentDescriptor, formatRollingNumber, DEFAULT_ROLLING_NUMBER_STYLE } from './chunk-
|
|
1
|
+
import { render } from './chunk-TH2HFMEL.js';
|
|
2
|
+
import { parseContractVersion, isContractCompatible, Emitter, resolveOwner, CHANGE_COLOR, findOwnerNode, isPrimary, linkSelectionOverlay, pathSelectionOverlay, isometricSelectionOverlay, shapeSelectionOverlay, DERIVED_HEIGHT_ROLES, quickDuplicateBubbles, isCameraGesture, linkChangeOverlay, shapeChangeOverlay, startChangeFade, REDUCED_MOTION_DURATION_MS, FLASH_DURATION_MS } from './chunk-CM35H45Z.js';
|
|
3
|
+
import { getComponentDescriptor, formatRollingNumber, DEFAULT_ROLLING_NUMBER_STYLE } from './chunk-D2266VBZ.js';
|
|
4
4
|
|
|
5
5
|
// src/runtime/viewer/components/rollingNumberDom.ts
|
|
6
6
|
var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
@@ -1655,10 +1655,191 @@ var emberSlitsProgram = {
|
|
|
1655
1655
|
fragmentSource: fragmentSource6
|
|
1656
1656
|
};
|
|
1657
1657
|
|
|
1658
|
-
// src/runtime/viewer/shaders/builtins/
|
|
1658
|
+
// src/runtime/viewer/shaders/builtins/glassDots.ts
|
|
1659
1659
|
var fragmentSource7 = `
|
|
1660
1660
|
precision highp float;
|
|
1661
1661
|
|
|
1662
|
+
uniform vec2 uResolution;
|
|
1663
|
+
uniform float uTime;
|
|
1664
|
+
uniform float uSpeed;
|
|
1665
|
+
uniform float uIntensity;
|
|
1666
|
+
uniform float uDots;
|
|
1667
|
+
uniform float uDotSize;
|
|
1668
|
+
uniform float uStagger;
|
|
1669
|
+
uniform float uSphere;
|
|
1670
|
+
uniform float uAngle;
|
|
1671
|
+
uniform float uSpread;
|
|
1672
|
+
uniform float uWarp;
|
|
1673
|
+
uniform float uGlow;
|
|
1674
|
+
uniform float uRound;
|
|
1675
|
+
uniform float uScatter;
|
|
1676
|
+
uniform float uLens;
|
|
1677
|
+
uniform float uGrain;
|
|
1678
|
+
uniform vec3 uBaseColor;
|
|
1679
|
+
uniform vec3 uColorA;
|
|
1680
|
+
uniform vec3 uColorB;
|
|
1681
|
+
uniform vec3 uColorC;
|
|
1682
|
+
uniform vec3 uColorD;
|
|
1683
|
+
uniform vec3 uRimColor;
|
|
1684
|
+
varying vec2 vUv;
|
|
1685
|
+
|
|
1686
|
+
float hash(vec2 p) {
|
|
1687
|
+
return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
float noise(vec2 p) {
|
|
1691
|
+
vec2 i = floor(p);
|
|
1692
|
+
vec2 f = fract(p);
|
|
1693
|
+
vec2 u = f * f * (3.0 - 2.0 * f);
|
|
1694
|
+
return mix(mix(hash(i), hash(i + vec2(1.0, 0.0)), u.x), mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), u.x), u.y);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
float fbm(vec2 p) {
|
|
1698
|
+
return 0.5 * noise(p) + 0.25 * noise(p * 2.03 + 3.1) + 0.125 * noise(p * 4.01 + 7.7);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
vec2 turn(vec2 point, float angle) {
|
|
1702
|
+
float c = cos(angle);
|
|
1703
|
+
float s = sin(angle);
|
|
1704
|
+
return vec2(c * point.x - s * point.y, s * point.x + c * point.y);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
// How far the grid is stretched at a distance r from the middle; with sphere the dots follow the surface of a ball.
|
|
1708
|
+
float stretch(float r, float sphere) {
|
|
1709
|
+
float rr = clamp(r, 0.0001, 0.9999);
|
|
1710
|
+
return mix(1.0, asin(rr) / rr, sphere);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
// The color under the dots: an uneven cloud of color whose edge bleeds out into the dark, with a red glow around it.
|
|
1714
|
+
// body is how much of the cloud is there, from 1 inside to 0 far outside.
|
|
1715
|
+
vec3 field(vec2 q, float angle, float t, out float body, out float distance) {
|
|
1716
|
+
vec2 p = turn(q, -angle);
|
|
1717
|
+
vec2 bend = vec2(fbm(p * 2.2 + vec2(t * 0.3, 1.7)), fbm(p * 2.2 + vec2(8.3, -t * 0.25))) - 0.35;
|
|
1718
|
+
vec2 w = p + bend * max(uWarp, 0.0) * 0.4;
|
|
1719
|
+
float rr = length(w) / max(uSpread, 0.2);
|
|
1720
|
+
distance = rr;
|
|
1721
|
+
body = 1.0 - smoothstep(0.78, 1.22, rr);
|
|
1722
|
+
|
|
1723
|
+
vec3 c = uColorB;
|
|
1724
|
+
c = mix(c, uColorA, smoothstep(-0.1, 0.95, dot(w, normalize(vec2(-0.6, 0.7)))) * 0.95);
|
|
1725
|
+
c = mix(c, uColorC, smoothstep(-0.05, 0.6, dot(w, normalize(vec2(0.7, -0.45)))) * 0.9);
|
|
1726
|
+
c = mix(c, uColorD, smoothstep(0.18, 0.85, dot(w, normalize(vec2(0.85, -0.55)))) * 0.97);
|
|
1727
|
+
float ring = smoothstep(0.8, 1.05, rr) * max(uGlow, 0.0);
|
|
1728
|
+
c = mix(c, uRimColor, clamp(ring, 0.0, 1.0));
|
|
1729
|
+
return mix(uBaseColor, c, body);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
void main() {
|
|
1733
|
+
float side = min(uResolution.x, uResolution.y);
|
|
1734
|
+
vec2 q = (vUv * uResolution - uResolution * 0.5) / (side * 0.5);
|
|
1735
|
+
float r = length(q);
|
|
1736
|
+
// On a circle the picture ends at its edge; on a rectangle the dots run on over the whole surface and may lie beyond the cloud.
|
|
1737
|
+
float edge = uRound > 0.5 ? 1.0 - smoothstep(0.985, 1.0, r) : 1.0;
|
|
1738
|
+
if (edge <= 0.0) discard;
|
|
1739
|
+
|
|
1740
|
+
float t = uTime * max(uSpeed, 0.0);
|
|
1741
|
+
float angle = radians(uAngle);
|
|
1742
|
+
float cells = max(uDots, 2.0) * 0.5;
|
|
1743
|
+
vec2 g = q * stretch(r, uSphere) * cells;
|
|
1744
|
+
|
|
1745
|
+
// The dot that is nearest wins, so dots that lie close cut each other along a straight line.
|
|
1746
|
+
float stagger = clamp(uStagger, 0.0, 1.0);
|
|
1747
|
+
vec2 cell = floor(g);
|
|
1748
|
+
float best = 1e9;
|
|
1749
|
+
vec2 centre = vec2(0.0);
|
|
1750
|
+
for (int j = -1; j <= 1; j++) {
|
|
1751
|
+
for (int i = -1; i <= 1; i++) {
|
|
1752
|
+
vec2 c = cell + vec2(float(i), float(j));
|
|
1753
|
+
float shift = stagger * 0.5 * mod(c.y, 2.0);
|
|
1754
|
+
vec2 mid = vec2(c.x + 0.5 + shift, c.y + 0.5);
|
|
1755
|
+
float d = length(g - mid);
|
|
1756
|
+
if (d < best) {
|
|
1757
|
+
best = d;
|
|
1758
|
+
centre = mid;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
// Where the middle of that dot lies on the screen, found by running the stretch backwards.
|
|
1764
|
+
vec2 gc = centre / cells;
|
|
1765
|
+
float gl = length(gc);
|
|
1766
|
+
float rc = gl;
|
|
1767
|
+
for (int k = 0; k < 5; k++) {
|
|
1768
|
+
rc = gl / stretch(rc, uSphere);
|
|
1769
|
+
}
|
|
1770
|
+
rc = clamp(rc, 0.0, 1.0);
|
|
1771
|
+
vec2 qc = gl > 0.0001 ? gc / gl * rc : vec2(0.0);
|
|
1772
|
+
|
|
1773
|
+
float radius = clamp(uDotSize, 0.2, 0.9);
|
|
1774
|
+
float aa = 1.6 / side * cells * 2.0;
|
|
1775
|
+
float inside = 1.0 - smoothstep(radius - aa, radius + aa, best);
|
|
1776
|
+
|
|
1777
|
+
float bodyHere;
|
|
1778
|
+
float bodyDot;
|
|
1779
|
+
float farHere;
|
|
1780
|
+
float farDot;
|
|
1781
|
+
vec3 colorHere = field(q, angle, t, bodyHere, farHere);
|
|
1782
|
+
field(qc, angle, t, bodyDot, farDot);
|
|
1783
|
+
|
|
1784
|
+
// Between the dots the cloud is darker, so the dots read as glass lying on it.
|
|
1785
|
+
vec3 gap = colorHere * mix(0.3, 0.9, bodyHere);
|
|
1786
|
+
|
|
1787
|
+
// Every dot is a lens with a gradient of its own: lighter on the side that faces the middle, dark on the side that faces out.
|
|
1788
|
+
// The darker side grows toward the edge of the cloud, until the dots there are nearly black.
|
|
1789
|
+
vec2 e = (g - centre) / max(radius, 0.001);
|
|
1790
|
+
vec2 outward = length(qc) > 0.0001 ? normalize(qc) : vec2(0.0, 1.0);
|
|
1791
|
+
vec2 outwardGrid = outward;
|
|
1792
|
+
float along = clamp(dot(e, outwardGrid), -1.0, 1.0);
|
|
1793
|
+
float edgeness = 1.0 - smoothstep(0.1, 0.9, bodyDot);
|
|
1794
|
+
float lens = clamp(uLens, 0.0, 1.5);
|
|
1795
|
+
float darken = lens * (0.1 + 0.9 * edgeness) * smoothstep(-0.55, 1.0, along);
|
|
1796
|
+
float lift = lens * 0.09 * (1.0 - edgeness) * (-along);
|
|
1797
|
+
vec3 glass = colorHere * (1.0 + lift) * (1.0 - clamp(darken, 0.0, 0.96));
|
|
1798
|
+
|
|
1799
|
+
// A dot beyond the cloud is drawn in the dark glow color when the dice fall that way, more of them close to the cloud than far from it.
|
|
1800
|
+
float luck = hash(centre + 17.0);
|
|
1801
|
+
float shown = step(luck, clamp(uScatter, 0.0, 1.0) * (1.0 - smoothstep(1.0, 2.0, farDot))) * (1.0 - bodyDot);
|
|
1802
|
+
vec3 outer = mix(uRimColor, mix(uColorD, uColorC, hash(centre + 5.0)), 0.35 * hash(centre + 9.0)) * (0.25 + 0.4 * hash(centre + 3.0));
|
|
1803
|
+
outer *= 1.0 - 0.8 * smoothstep(-0.55, 1.0, along);
|
|
1804
|
+
glass = mix(glass, outer, shown);
|
|
1805
|
+
|
|
1806
|
+
vec3 color = mix(gap, glass, inside);
|
|
1807
|
+
color *= max(uIntensity, 0.0);
|
|
1808
|
+
color += (hash(gl_FragCoord.xy + t) - 0.5) * max(uGrain, 0.0);
|
|
1809
|
+
gl_FragColor = vec4(clamp(color, 0.0, 1.0), edge);
|
|
1810
|
+
}
|
|
1811
|
+
`;
|
|
1812
|
+
var glassDotsProgram = {
|
|
1813
|
+
name: "glassDots",
|
|
1814
|
+
fragmentSource: fragmentSource7,
|
|
1815
|
+
defaultParameters: {
|
|
1816
|
+
speed: 0,
|
|
1817
|
+
intensity: 1,
|
|
1818
|
+
dots: 13,
|
|
1819
|
+
dotSize: 0.5,
|
|
1820
|
+
stagger: 0,
|
|
1821
|
+
sphere: 0,
|
|
1822
|
+
angle: 0,
|
|
1823
|
+
spread: 0.86,
|
|
1824
|
+
warp: 1,
|
|
1825
|
+
glow: 0.75,
|
|
1826
|
+
round: 0,
|
|
1827
|
+
scatter: 0.45,
|
|
1828
|
+
lens: 0.75,
|
|
1829
|
+
grain: 0.06,
|
|
1830
|
+
baseColor: "#121212",
|
|
1831
|
+
colorA: "#f4b49c",
|
|
1832
|
+
colorB: "#4a9c93",
|
|
1833
|
+
colorC: "#34559c",
|
|
1834
|
+
colorD: "#ec3f93",
|
|
1835
|
+
rimColor: "#d93a24"
|
|
1836
|
+
}
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
// src/runtime/viewer/shaders/builtins/glassRefraction.ts
|
|
1840
|
+
var fragmentSource8 = `
|
|
1841
|
+
precision highp float;
|
|
1842
|
+
|
|
1662
1843
|
uniform sampler2D uBackdrop;
|
|
1663
1844
|
uniform vec2 uBackdropOrigin;
|
|
1664
1845
|
uniform vec2 uBackdropScale;
|
|
@@ -1761,12 +1942,12 @@ void main() {
|
|
|
1761
1942
|
`;
|
|
1762
1943
|
var glassRefractionProgram = {
|
|
1763
1944
|
name: "glassRefraction",
|
|
1764
|
-
fragmentSource:
|
|
1945
|
+
fragmentSource: fragmentSource8,
|
|
1765
1946
|
usesBackdrop: true
|
|
1766
1947
|
};
|
|
1767
1948
|
|
|
1768
1949
|
// src/runtime/viewer/shaders/builtins/glowCard.ts
|
|
1769
|
-
var
|
|
1950
|
+
var fragmentSource9 = `
|
|
1770
1951
|
precision highp float;
|
|
1771
1952
|
|
|
1772
1953
|
uniform vec2 uResolution;
|
|
@@ -1872,7 +2053,7 @@ void main() {
|
|
|
1872
2053
|
`;
|
|
1873
2054
|
var glowCardProgram = {
|
|
1874
2055
|
name: "glowCard",
|
|
1875
|
-
fragmentSource:
|
|
2056
|
+
fragmentSource: fragmentSource9,
|
|
1876
2057
|
defaultParameters: {
|
|
1877
2058
|
speed: 0.12,
|
|
1878
2059
|
intensity: 1,
|
|
@@ -1892,7 +2073,7 @@ var glowCardProgram = {
|
|
|
1892
2073
|
};
|
|
1893
2074
|
|
|
1894
2075
|
// src/runtime/viewer/shaders/builtins/halftoneHalo.ts
|
|
1895
|
-
var
|
|
2076
|
+
var fragmentSource10 = `
|
|
1896
2077
|
precision highp float;
|
|
1897
2078
|
|
|
1898
2079
|
uniform vec2 uResolution;
|
|
@@ -1971,11 +2152,11 @@ void main() {
|
|
|
1971
2152
|
`;
|
|
1972
2153
|
var halftoneHaloProgram = {
|
|
1973
2154
|
name: "halftoneHalo",
|
|
1974
|
-
fragmentSource:
|
|
2155
|
+
fragmentSource: fragmentSource10
|
|
1975
2156
|
};
|
|
1976
2157
|
|
|
1977
2158
|
// src/runtime/viewer/shaders/builtins/halo.ts
|
|
1978
|
-
var
|
|
2159
|
+
var fragmentSource11 = `
|
|
1979
2160
|
precision highp float;
|
|
1980
2161
|
|
|
1981
2162
|
uniform vec2 uResolution;
|
|
@@ -2050,11 +2231,11 @@ void main() {
|
|
|
2050
2231
|
`;
|
|
2051
2232
|
var haloProgram = {
|
|
2052
2233
|
name: "halo",
|
|
2053
|
-
fragmentSource:
|
|
2234
|
+
fragmentSource: fragmentSource11
|
|
2054
2235
|
};
|
|
2055
2236
|
|
|
2056
2237
|
// src/runtime/viewer/shaders/builtins/ledMatrix.ts
|
|
2057
|
-
var
|
|
2238
|
+
var fragmentSource12 = `
|
|
2058
2239
|
precision highp float;
|
|
2059
2240
|
|
|
2060
2241
|
uniform vec2 uResolution;
|
|
@@ -2170,7 +2351,7 @@ void main() {
|
|
|
2170
2351
|
`;
|
|
2171
2352
|
var ledMatrixProgram = {
|
|
2172
2353
|
name: "ledMatrix",
|
|
2173
|
-
fragmentSource:
|
|
2354
|
+
fragmentSource: fragmentSource12,
|
|
2174
2355
|
defaultParameters: {
|
|
2175
2356
|
speed: 0.25,
|
|
2176
2357
|
intensity: 1,
|
|
@@ -2201,7 +2382,7 @@ var ledMatrixProgram = {
|
|
|
2201
2382
|
};
|
|
2202
2383
|
|
|
2203
2384
|
// src/runtime/viewer/shaders/builtins/lightBand.ts
|
|
2204
|
-
var
|
|
2385
|
+
var fragmentSource13 = `
|
|
2205
2386
|
precision highp float;
|
|
2206
2387
|
|
|
2207
2388
|
uniform vec2 uResolution;
|
|
@@ -2261,7 +2442,7 @@ void main() {
|
|
|
2261
2442
|
`;
|
|
2262
2443
|
var lightBandProgram = {
|
|
2263
2444
|
name: "lightBand",
|
|
2264
|
-
fragmentSource:
|
|
2445
|
+
fragmentSource: fragmentSource13,
|
|
2265
2446
|
defaultParameters: {
|
|
2266
2447
|
speed: 0.3,
|
|
2267
2448
|
intensity: 1,
|
|
@@ -2278,7 +2459,7 @@ var lightBandProgram = {
|
|
|
2278
2459
|
};
|
|
2279
2460
|
|
|
2280
2461
|
// src/runtime/viewer/shaders/builtins/lumenPortal.ts
|
|
2281
|
-
var
|
|
2462
|
+
var fragmentSource14 = `
|
|
2282
2463
|
precision highp float;
|
|
2283
2464
|
|
|
2284
2465
|
uniform float uTime;
|
|
@@ -2336,11 +2517,11 @@ void main() {
|
|
|
2336
2517
|
`;
|
|
2337
2518
|
var lumenPortalProgram = {
|
|
2338
2519
|
name: "lumenPortal",
|
|
2339
|
-
fragmentSource:
|
|
2520
|
+
fragmentSource: fragmentSource14
|
|
2340
2521
|
};
|
|
2341
2522
|
|
|
2342
2523
|
// src/runtime/viewer/shaders/builtins/lumenPortalLight.ts
|
|
2343
|
-
var
|
|
2524
|
+
var fragmentSource15 = `
|
|
2344
2525
|
precision highp float;
|
|
2345
2526
|
|
|
2346
2527
|
uniform float uTime;
|
|
@@ -2399,11 +2580,11 @@ void main() {
|
|
|
2399
2580
|
`;
|
|
2400
2581
|
var lumenPortalLightProgram = {
|
|
2401
2582
|
name: "lumenPortalLight",
|
|
2402
|
-
fragmentSource:
|
|
2583
|
+
fragmentSource: fragmentSource15
|
|
2403
2584
|
};
|
|
2404
2585
|
|
|
2405
2586
|
// src/runtime/viewer/shaders/builtins/orb.ts
|
|
2406
|
-
var
|
|
2587
|
+
var fragmentSource16 = `
|
|
2407
2588
|
precision highp float;
|
|
2408
2589
|
|
|
2409
2590
|
uniform vec2 uResolution;
|
|
@@ -2439,11 +2620,11 @@ void main() {
|
|
|
2439
2620
|
`;
|
|
2440
2621
|
var orbProgram = {
|
|
2441
2622
|
name: "orb",
|
|
2442
|
-
fragmentSource:
|
|
2623
|
+
fragmentSource: fragmentSource16
|
|
2443
2624
|
};
|
|
2444
2625
|
|
|
2445
2626
|
// src/runtime/viewer/shaders/builtins/pixelConstellation.ts
|
|
2446
|
-
var
|
|
2627
|
+
var fragmentSource17 = `
|
|
2447
2628
|
precision highp float;
|
|
2448
2629
|
|
|
2449
2630
|
uniform float uTime;
|
|
@@ -2543,11 +2724,11 @@ void main() {
|
|
|
2543
2724
|
`;
|
|
2544
2725
|
var pixelConstellationProgram = {
|
|
2545
2726
|
name: "pixelConstellation",
|
|
2546
|
-
fragmentSource:
|
|
2727
|
+
fragmentSource: fragmentSource17
|
|
2547
2728
|
};
|
|
2548
2729
|
|
|
2549
2730
|
// src/runtime/viewer/shaders/builtins/plasmaGauge.ts
|
|
2550
|
-
var
|
|
2731
|
+
var fragmentSource18 = `
|
|
2551
2732
|
precision highp float;
|
|
2552
2733
|
|
|
2553
2734
|
uniform vec2 uResolution;
|
|
@@ -2649,12 +2830,12 @@ void main() {
|
|
|
2649
2830
|
`;
|
|
2650
2831
|
var plasmaGaugeProgram = {
|
|
2651
2832
|
name: "plasmaGauge",
|
|
2652
|
-
fragmentSource:
|
|
2833
|
+
fragmentSource: fragmentSource18,
|
|
2653
2834
|
replacesBaseFill: true
|
|
2654
2835
|
};
|
|
2655
2836
|
|
|
2656
2837
|
// src/runtime/viewer/shaders/builtins/prismSlats.ts
|
|
2657
|
-
var
|
|
2838
|
+
var fragmentSource19 = `
|
|
2658
2839
|
precision highp float;
|
|
2659
2840
|
|
|
2660
2841
|
uniform vec2 uResolution;
|
|
@@ -2729,11 +2910,11 @@ void main() {
|
|
|
2729
2910
|
`;
|
|
2730
2911
|
var prismSlatsProgram = {
|
|
2731
2912
|
name: "prismSlats",
|
|
2732
|
-
fragmentSource:
|
|
2913
|
+
fragmentSource: fragmentSource19
|
|
2733
2914
|
};
|
|
2734
2915
|
|
|
2735
2916
|
// src/runtime/viewer/shaders/builtins/reactivePanel.ts
|
|
2736
|
-
var
|
|
2917
|
+
var fragmentSource20 = `
|
|
2737
2918
|
precision highp float;
|
|
2738
2919
|
|
|
2739
2920
|
uniform float uTime;
|
|
@@ -2835,7 +3016,7 @@ void main() {
|
|
|
2835
3016
|
`;
|
|
2836
3017
|
var reactivePanelProgram = {
|
|
2837
3018
|
name: "reactivePanel",
|
|
2838
|
-
fragmentSource:
|
|
3019
|
+
fragmentSource: fragmentSource20,
|
|
2839
3020
|
defaultParameters: {
|
|
2840
3021
|
intensity: 0.5,
|
|
2841
3022
|
speed: 0.18,
|
|
@@ -2858,7 +3039,7 @@ var reactivePanelProgram = {
|
|
|
2858
3039
|
};
|
|
2859
3040
|
|
|
2860
3041
|
// src/runtime/viewer/shaders/builtins/ruler.ts
|
|
2861
|
-
var
|
|
3042
|
+
var fragmentSource21 = `
|
|
2862
3043
|
precision highp float;
|
|
2863
3044
|
|
|
2864
3045
|
uniform vec2 uResolution;
|
|
@@ -2963,12 +3144,12 @@ void main() {
|
|
|
2963
3144
|
`;
|
|
2964
3145
|
var rulerProgram = {
|
|
2965
3146
|
name: "ruler",
|
|
2966
|
-
fragmentSource:
|
|
3147
|
+
fragmentSource: fragmentSource21,
|
|
2967
3148
|
replacesBaseFill: true
|
|
2968
3149
|
};
|
|
2969
3150
|
|
|
2970
3151
|
// src/runtime/viewer/shaders/builtins/silkFolds.ts
|
|
2971
|
-
var
|
|
3152
|
+
var fragmentSource22 = `
|
|
2972
3153
|
precision highp float;
|
|
2973
3154
|
|
|
2974
3155
|
uniform vec2 uResolution;
|
|
@@ -3053,7 +3234,7 @@ void main() {
|
|
|
3053
3234
|
`;
|
|
3054
3235
|
var silkFoldsProgram = {
|
|
3055
3236
|
name: "silkFolds",
|
|
3056
|
-
fragmentSource:
|
|
3237
|
+
fragmentSource: fragmentSource22,
|
|
3057
3238
|
defaultParameters: {
|
|
3058
3239
|
speed: 0.2,
|
|
3059
3240
|
intensity: 1,
|
|
@@ -3076,7 +3257,7 @@ var silkFoldsProgram = {
|
|
|
3076
3257
|
};
|
|
3077
3258
|
|
|
3078
3259
|
// src/runtime/viewer/shaders/builtins/smearOrb.ts
|
|
3079
|
-
var
|
|
3260
|
+
var fragmentSource23 = `
|
|
3080
3261
|
precision highp float;
|
|
3081
3262
|
|
|
3082
3263
|
uniform vec2 uResolution;
|
|
@@ -3152,12 +3333,12 @@ void main() {
|
|
|
3152
3333
|
`;
|
|
3153
3334
|
var smearOrbProgram = {
|
|
3154
3335
|
name: "smearOrb",
|
|
3155
|
-
fragmentSource:
|
|
3336
|
+
fragmentSource: fragmentSource23,
|
|
3156
3337
|
replacesBaseFill: true
|
|
3157
3338
|
};
|
|
3158
3339
|
|
|
3159
3340
|
// src/runtime/viewer/shaders/builtins/tickScale.ts
|
|
3160
|
-
var
|
|
3341
|
+
var fragmentSource24 = `
|
|
3161
3342
|
precision highp float;
|
|
3162
3343
|
|
|
3163
3344
|
uniform vec2 uResolution;
|
|
@@ -3216,12 +3397,12 @@ void main() {
|
|
|
3216
3397
|
`;
|
|
3217
3398
|
var tickScaleProgram = {
|
|
3218
3399
|
name: "tickScale",
|
|
3219
|
-
fragmentSource:
|
|
3400
|
+
fragmentSource: fragmentSource24,
|
|
3220
3401
|
replacesBaseFill: true
|
|
3221
3402
|
};
|
|
3222
3403
|
|
|
3223
3404
|
// src/runtime/viewer/shaders/builtins/violetGlass.ts
|
|
3224
|
-
var
|
|
3405
|
+
var fragmentSource25 = `
|
|
3225
3406
|
precision highp float;
|
|
3226
3407
|
|
|
3227
3408
|
uniform float uTime;
|
|
@@ -3301,11 +3482,11 @@ void main() {
|
|
|
3301
3482
|
`;
|
|
3302
3483
|
var violetGlassProgram = {
|
|
3303
3484
|
name: "violetGlass",
|
|
3304
|
-
fragmentSource:
|
|
3485
|
+
fragmentSource: fragmentSource25
|
|
3305
3486
|
};
|
|
3306
3487
|
|
|
3307
3488
|
// src/runtime/viewer/shaders/builtins/violetGlassLight.ts
|
|
3308
|
-
var
|
|
3489
|
+
var fragmentSource26 = `
|
|
3309
3490
|
precision highp float;
|
|
3310
3491
|
|
|
3311
3492
|
uniform float uTime;
|
|
@@ -3375,7 +3556,7 @@ void main() {
|
|
|
3375
3556
|
`;
|
|
3376
3557
|
var violetGlassLightProgram = {
|
|
3377
3558
|
name: "violetGlassLight",
|
|
3378
|
-
fragmentSource:
|
|
3559
|
+
fragmentSource: fragmentSource26
|
|
3379
3560
|
};
|
|
3380
3561
|
|
|
3381
3562
|
// src/runtime/viewer/shaders/programs.ts
|
|
@@ -3404,7 +3585,8 @@ var builtins = [
|
|
|
3404
3585
|
ledMatrixProgram,
|
|
3405
3586
|
lightBandProgram,
|
|
3406
3587
|
silkFoldsProgram,
|
|
3407
|
-
glowCardProgram
|
|
3588
|
+
glowCardProgram,
|
|
3589
|
+
glassDotsProgram
|
|
3408
3590
|
];
|
|
3409
3591
|
var programs = new Map(builtins.map((program) => [program.name, program]));
|
|
3410
3592
|
function registerShaderProgram(program) {
|
|
@@ -3585,9 +3767,9 @@ function compile(gl, type, source) {
|
|
|
3585
3767
|
}
|
|
3586
3768
|
return shader;
|
|
3587
3769
|
}
|
|
3588
|
-
function linkProgram(gl,
|
|
3770
|
+
function linkProgram(gl, fragmentSource27) {
|
|
3589
3771
|
const vertex = compile(gl, gl.VERTEX_SHADER, VERTEX_SOURCE);
|
|
3590
|
-
const fragment = compile(gl, gl.FRAGMENT_SHADER,
|
|
3772
|
+
const fragment = compile(gl, gl.FRAGMENT_SHADER, fragmentSource27);
|
|
3591
3773
|
if (!vertex || !fragment) {
|
|
3592
3774
|
if (vertex) {
|
|
3593
3775
|
gl.deleteShader(vertex);
|
|
@@ -4531,5 +4713,5 @@ function createViewer(options) {
|
|
|
4531
4713
|
}
|
|
4532
4714
|
|
|
4533
4715
|
export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram };
|
|
4534
|
-
//# sourceMappingURL=chunk-
|
|
4535
|
-
//# sourceMappingURL=chunk-
|
|
4716
|
+
//# sourceMappingURL=chunk-7ZEC7AB4.js.map
|
|
4717
|
+
//# sourceMappingURL=chunk-7ZEC7AB4.js.map
|