stickyflow 0.7.0 → 0.8.0
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 +12 -0
- 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-JCRPLPKV.js → chunk-CZW3ARXQ.js} +4 -4
- package/dist/{chunk-JCRPLPKV.js.map → chunk-CZW3ARXQ.js.map} +1 -1
- package/dist/{chunk-MUKIGLR5.js → chunk-EDOPENSE.js} +169 -42
- package/dist/chunk-EDOPENSE.js.map +1 -0
- package/dist/{chunk-EKAWJFJQ.cjs → chunk-FQ7GMLCM.cjs} +15 -15
- package/dist/{chunk-EKAWJFJQ.cjs.map → chunk-FQ7GMLCM.cjs.map} +1 -1
- package/dist/{chunk-JQK4IGXJ.js → chunk-GLZVHUSW.js} +50 -6
- package/dist/chunk-GLZVHUSW.js.map +1 -0
- package/dist/{chunk-BUOWM3LC.cjs → chunk-IR2T47NW.cjs} +198 -71
- package/dist/chunk-IR2T47NW.cjs.map +1 -0
- package/dist/{chunk-ZNHYW47T.js → chunk-LFEGZJWC.js} +3 -3
- package/dist/{chunk-ZNHYW47T.js.map → chunk-LFEGZJWC.js.map} +1 -1
- package/dist/{chunk-KXYSO6GC.cjs → chunk-LNW5VIEA.cjs} +53 -5
- package/dist/chunk-LNW5VIEA.cjs.map +1 -0
- package/dist/{chunk-SDMQRSRW.js → chunk-MAPNY7MJ.js} +331 -125
- package/dist/chunk-MAPNY7MJ.js.map +1 -0
- package/dist/{chunk-A73UJ5AQ.cjs → chunk-VOYX6JMW.cjs} +950 -744
- package/dist/chunk-VOYX6JMW.cjs.map +1 -0
- package/dist/{chunk-OWNVXKXN.cjs → chunk-XPM3E7NV.cjs} +23 -23
- package/dist/{chunk-OWNVXKXN.cjs.map → chunk-XPM3E7NV.cjs.map} +1 -1
- 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 +266 -235
- 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 +42 -11
- package/dist/interaction/index.js.map +1 -1
- package/dist/{render-BU2uYzjG.d.cts → render-Bp2FLEzv.d.cts} +10 -0
- package/dist/{render-BU2uYzjG.d.ts → render-Bp2FLEzv.d.ts} +10 -0
- package/dist/{runtime-BPzyD-Nd.d.ts → runtime-CWIGxRcL.d.ts} +2 -2
- package/dist/{runtime-B7KiTmn8.d.cts → runtime-DIag-XBa.d.cts} +2 -2
- package/dist/{runtimeTypes-BIP70z72.d.cts → runtimeTypes-BYODuxHk.d.cts} +1 -1
- package/dist/{runtimeTypes-DalvhScn.d.ts → runtimeTypes-C7sSLfOK.d.ts} +1 -1
- package/dist/stickyflow-diagram.global.js +141 -38
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/{types-DMWs27Hn.d.ts → types-B9QM_H3R.d.ts} +1 -1
- package/dist/{types-D_2NZ6lL.d.cts → types-D2w6D_wG.d.cts} +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-A73UJ5AQ.cjs.map +0 -1
- package/dist/chunk-BUOWM3LC.cjs.map +0 -1
- package/dist/chunk-JQK4IGXJ.js.map +0 -1
- package/dist/chunk-KXYSO6GC.cjs.map +0 -1
- package/dist/chunk-MUKIGLR5.js.map +0 -1
- package/dist/chunk-SDMQRSRW.js.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-MAPNY7MJ.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-LFEGZJWC.js';
|
|
3
|
+
import { getComponentDescriptor, formatRollingNumber, DEFAULT_ROLLING_NUMBER_STYLE } from './chunk-GLZVHUSW.js';
|
|
4
4
|
|
|
5
5
|
// src/runtime/viewer/components/rollingNumberDom.ts
|
|
6
6
|
var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
@@ -1765,10 +1765,136 @@ var glassRefractionProgram = {
|
|
|
1765
1765
|
usesBackdrop: true
|
|
1766
1766
|
};
|
|
1767
1767
|
|
|
1768
|
-
// src/runtime/viewer/shaders/builtins/
|
|
1768
|
+
// src/runtime/viewer/shaders/builtins/glowCard.ts
|
|
1769
1769
|
var fragmentSource8 = `
|
|
1770
1770
|
precision highp float;
|
|
1771
1771
|
|
|
1772
|
+
uniform vec2 uResolution;
|
|
1773
|
+
uniform float uTime;
|
|
1774
|
+
uniform float uSpeed;
|
|
1775
|
+
uniform float uIntensity;
|
|
1776
|
+
uniform float uGlowHeight;
|
|
1777
|
+
uniform float uGlowSpread;
|
|
1778
|
+
uniform float uCore;
|
|
1779
|
+
uniform float uRim;
|
|
1780
|
+
uniform float uGrain;
|
|
1781
|
+
uniform float uWarp;
|
|
1782
|
+
uniform float uAngle;
|
|
1783
|
+
uniform float uCornerRadius;
|
|
1784
|
+
uniform vec3 uBaseColor;
|
|
1785
|
+
uniform vec3 uColorA;
|
|
1786
|
+
uniform vec3 uColorB;
|
|
1787
|
+
uniform vec3 uColorC;
|
|
1788
|
+
varying vec2 vUv;
|
|
1789
|
+
|
|
1790
|
+
float hash(vec2 p) {
|
|
1791
|
+
return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
float blob(vec2 p, vec2 center, vec2 size) {
|
|
1795
|
+
vec2 d = (p - center) / size;
|
|
1796
|
+
return exp(-dot(d, d));
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
float noise(vec2 p) {
|
|
1800
|
+
vec2 i = floor(p);
|
|
1801
|
+
vec2 f = fract(p);
|
|
1802
|
+
vec2 u = f * f * (3.0 - 2.0 * f);
|
|
1803
|
+
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);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
float fbm(vec2 p) {
|
|
1807
|
+
return 0.5 * noise(p) + 0.25 * noise(p * 2.03 + 3.1) + 0.125 * noise(p * 4.01 + 7.7);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
void main() {
|
|
1811
|
+
vec2 size = max(uResolution, vec2(1.0));
|
|
1812
|
+
float radius = uCornerRadius * min(size.x, size.y);
|
|
1813
|
+
vec2 q = abs(vUv * size - size * 0.5) - size * 0.5 + radius;
|
|
1814
|
+
float distance = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - radius;
|
|
1815
|
+
float shape = 1.0 - smoothstep(-1.0, 1.0, distance);
|
|
1816
|
+
if (shape <= 0.0) discard;
|
|
1817
|
+
|
|
1818
|
+
// The light comes from one side. Angle 0 is the bottom edge, and it turns clockwise: 90 is the left, 180 the top, 270 the right.
|
|
1819
|
+
// depth is 0 at the edge the light comes from and 1 at the far side, side runs along that edge.
|
|
1820
|
+
float turn = radians(uAngle);
|
|
1821
|
+
vec2 toward = vec2(-sin(turn), -cos(turn));
|
|
1822
|
+
vec2 across = vec2(-toward.y, toward.x);
|
|
1823
|
+
vec2 offset = (vUv - 0.5) * size;
|
|
1824
|
+
float reachAlong = 0.5 * (abs(toward.x) * size.x + abs(toward.y) * size.y);
|
|
1825
|
+
float reachAcross = 0.5 * (abs(across.x) * size.x + abs(across.y) * size.y);
|
|
1826
|
+
float depth = clamp(0.5 - dot(offset, toward) / (2.0 * reachAlong), 0.0, 1.0);
|
|
1827
|
+
float side = clamp(0.5 + dot(offset, across) / (2.0 * reachAcross), 0.0, 1.0);
|
|
1828
|
+
float aspect = reachAcross / reachAlong;
|
|
1829
|
+
|
|
1830
|
+
float t = uTime * max(uSpeed, 0.0);
|
|
1831
|
+
float height = clamp(uGlowHeight, 0.05, 1.0);
|
|
1832
|
+
float spread = max(uGlowSpread, 0.05);
|
|
1833
|
+
// The body is the base color with a faint lift toward the far side, like glass that catches the light.
|
|
1834
|
+
vec3 color = uBaseColor + vec3(0.035) * smoothstep(0.55, 1.0, 1.0 - depth);
|
|
1835
|
+
|
|
1836
|
+
// Three soft lights sit low in the card and drift slowly; the middle one is the broadest.
|
|
1837
|
+
vec2 p = vec2(side * aspect, depth);
|
|
1838
|
+
// The lights are bent by slow noise, so their edges curl like smoke instead of staying round.
|
|
1839
|
+
vec2 bend = vec2(fbm(p * 2.6 + vec2(t * 0.6, 0.0)), fbm(p * 2.6 + vec2(5.2, -t * 0.5))) - 0.35;
|
|
1840
|
+
p += bend * max(uWarp, 0.0) * 0.45;
|
|
1841
|
+
float wander = 0.05 * sin(t);
|
|
1842
|
+
float a = blob(p, vec2((0.18 + wander) * aspect, 0.0), vec2(0.5 * spread * aspect, 0.42 * height));
|
|
1843
|
+
float b = blob(p, vec2((0.52 - wander) * aspect, -0.04), vec2(0.62 * spread * aspect, 0.5 * height));
|
|
1844
|
+
float c = blob(p, vec2((0.86 + wander * 0.6) * aspect, 0.02), vec2(0.5 * spread * aspect, 0.44 * height));
|
|
1845
|
+
// Each light is thicker in some places than in others, so the colors mix unevenly.
|
|
1846
|
+
float patchy = fbm(p * 4.0 + 11.0);
|
|
1847
|
+
a *= 0.55 + 0.9 * patchy;
|
|
1848
|
+
b *= 0.55 + 0.9 * (1.0 - patchy);
|
|
1849
|
+
c *= 0.55 + 0.9 * fbm(p * 4.0 + 23.0);
|
|
1850
|
+
vec3 glow = uColorA * a + uColorB * b + uColorC * c;
|
|
1851
|
+
|
|
1852
|
+
// A haze reaches higher than the lights, so the color fades out into the body.
|
|
1853
|
+
float haze = smoothstep(height, 0.0, depth);
|
|
1854
|
+
glow += mix(uColorB, uColorA, side) * haze * haze * 0.35;
|
|
1855
|
+
color += glow * max(uIntensity, 0.0);
|
|
1856
|
+
|
|
1857
|
+
// Near the exit edge the lights are so strong that they turn white.
|
|
1858
|
+
float hot = smoothstep(height * 0.38, 0.0, depth) * (a + b + c) * clamp(uCore, 0.0, 1.0);
|
|
1859
|
+
color = mix(color, vec3(0.93, 0.95, 1.0), clamp(hot, 0.0, 1.0));
|
|
1860
|
+
|
|
1861
|
+
// A thin rim along the edge, strongest on the side away from the light.
|
|
1862
|
+
float rim = (1.0 - smoothstep(0.0, 1.6, -distance)) * smoothstep(0.0, 1.0, -distance + 1.0);
|
|
1863
|
+
color += vec3(0.62, 0.66, 0.78) * rim * max(uRim, 0.0) * (0.35 + 0.65 * smoothstep(0.2, 1.0, 1.0 - depth));
|
|
1864
|
+
|
|
1865
|
+
// The grit sits in the lit parts and fades in the dark body, as on film.
|
|
1866
|
+
float lit = clamp(dot(glow, vec3(0.45)) * max(uIntensity, 0.0) + hot, 0.0, 1.0);
|
|
1867
|
+
float grit = hash(gl_FragCoord.xy) - 0.5;
|
|
1868
|
+
grit += 0.5 * (hash(floor(gl_FragCoord.xy * 0.5) + 17.0) - 0.5);
|
|
1869
|
+
color += grit * max(uGrain, 0.0) * (0.3 + 2.2 * lit * (1.0 - 0.5 * lit));
|
|
1870
|
+
gl_FragColor = vec4(clamp(color, 0.0, 1.0), shape);
|
|
1871
|
+
}
|
|
1872
|
+
`;
|
|
1873
|
+
var glowCardProgram = {
|
|
1874
|
+
name: "glowCard",
|
|
1875
|
+
fragmentSource: fragmentSource8,
|
|
1876
|
+
defaultParameters: {
|
|
1877
|
+
speed: 0.12,
|
|
1878
|
+
intensity: 1,
|
|
1879
|
+
glowHeight: 0.55,
|
|
1880
|
+
glowSpread: 1,
|
|
1881
|
+
core: 0.7,
|
|
1882
|
+
rim: 0.55,
|
|
1883
|
+
grain: 0.12,
|
|
1884
|
+
warp: 1,
|
|
1885
|
+
angle: 0,
|
|
1886
|
+
cornerRadius: 0.08,
|
|
1887
|
+
baseColor: "#0b0b12",
|
|
1888
|
+
colorA: "#2f6bff",
|
|
1889
|
+
colorB: "#9d5cff",
|
|
1890
|
+
colorC: "#34d3c4"
|
|
1891
|
+
}
|
|
1892
|
+
};
|
|
1893
|
+
|
|
1894
|
+
// src/runtime/viewer/shaders/builtins/halftoneHalo.ts
|
|
1895
|
+
var fragmentSource9 = `
|
|
1896
|
+
precision highp float;
|
|
1897
|
+
|
|
1772
1898
|
uniform vec2 uResolution;
|
|
1773
1899
|
uniform float uTime;
|
|
1774
1900
|
uniform float uSpeed;
|
|
@@ -1845,11 +1971,11 @@ void main() {
|
|
|
1845
1971
|
`;
|
|
1846
1972
|
var halftoneHaloProgram = {
|
|
1847
1973
|
name: "halftoneHalo",
|
|
1848
|
-
fragmentSource:
|
|
1974
|
+
fragmentSource: fragmentSource9
|
|
1849
1975
|
};
|
|
1850
1976
|
|
|
1851
1977
|
// src/runtime/viewer/shaders/builtins/halo.ts
|
|
1852
|
-
var
|
|
1978
|
+
var fragmentSource10 = `
|
|
1853
1979
|
precision highp float;
|
|
1854
1980
|
|
|
1855
1981
|
uniform vec2 uResolution;
|
|
@@ -1924,11 +2050,11 @@ void main() {
|
|
|
1924
2050
|
`;
|
|
1925
2051
|
var haloProgram = {
|
|
1926
2052
|
name: "halo",
|
|
1927
|
-
fragmentSource:
|
|
2053
|
+
fragmentSource: fragmentSource10
|
|
1928
2054
|
};
|
|
1929
2055
|
|
|
1930
2056
|
// src/runtime/viewer/shaders/builtins/ledMatrix.ts
|
|
1931
|
-
var
|
|
2057
|
+
var fragmentSource11 = `
|
|
1932
2058
|
precision highp float;
|
|
1933
2059
|
|
|
1934
2060
|
uniform vec2 uResolution;
|
|
@@ -2044,7 +2170,7 @@ void main() {
|
|
|
2044
2170
|
`;
|
|
2045
2171
|
var ledMatrixProgram = {
|
|
2046
2172
|
name: "ledMatrix",
|
|
2047
|
-
fragmentSource:
|
|
2173
|
+
fragmentSource: fragmentSource11,
|
|
2048
2174
|
defaultParameters: {
|
|
2049
2175
|
speed: 0.25,
|
|
2050
2176
|
intensity: 1,
|
|
@@ -2075,7 +2201,7 @@ var ledMatrixProgram = {
|
|
|
2075
2201
|
};
|
|
2076
2202
|
|
|
2077
2203
|
// src/runtime/viewer/shaders/builtins/lightBand.ts
|
|
2078
|
-
var
|
|
2204
|
+
var fragmentSource12 = `
|
|
2079
2205
|
precision highp float;
|
|
2080
2206
|
|
|
2081
2207
|
uniform vec2 uResolution;
|
|
@@ -2135,7 +2261,7 @@ void main() {
|
|
|
2135
2261
|
`;
|
|
2136
2262
|
var lightBandProgram = {
|
|
2137
2263
|
name: "lightBand",
|
|
2138
|
-
fragmentSource:
|
|
2264
|
+
fragmentSource: fragmentSource12,
|
|
2139
2265
|
defaultParameters: {
|
|
2140
2266
|
speed: 0.3,
|
|
2141
2267
|
intensity: 1,
|
|
@@ -2152,7 +2278,7 @@ var lightBandProgram = {
|
|
|
2152
2278
|
};
|
|
2153
2279
|
|
|
2154
2280
|
// src/runtime/viewer/shaders/builtins/lumenPortal.ts
|
|
2155
|
-
var
|
|
2281
|
+
var fragmentSource13 = `
|
|
2156
2282
|
precision highp float;
|
|
2157
2283
|
|
|
2158
2284
|
uniform float uTime;
|
|
@@ -2210,11 +2336,11 @@ void main() {
|
|
|
2210
2336
|
`;
|
|
2211
2337
|
var lumenPortalProgram = {
|
|
2212
2338
|
name: "lumenPortal",
|
|
2213
|
-
fragmentSource:
|
|
2339
|
+
fragmentSource: fragmentSource13
|
|
2214
2340
|
};
|
|
2215
2341
|
|
|
2216
2342
|
// src/runtime/viewer/shaders/builtins/lumenPortalLight.ts
|
|
2217
|
-
var
|
|
2343
|
+
var fragmentSource14 = `
|
|
2218
2344
|
precision highp float;
|
|
2219
2345
|
|
|
2220
2346
|
uniform float uTime;
|
|
@@ -2273,11 +2399,11 @@ void main() {
|
|
|
2273
2399
|
`;
|
|
2274
2400
|
var lumenPortalLightProgram = {
|
|
2275
2401
|
name: "lumenPortalLight",
|
|
2276
|
-
fragmentSource:
|
|
2402
|
+
fragmentSource: fragmentSource14
|
|
2277
2403
|
};
|
|
2278
2404
|
|
|
2279
2405
|
// src/runtime/viewer/shaders/builtins/orb.ts
|
|
2280
|
-
var
|
|
2406
|
+
var fragmentSource15 = `
|
|
2281
2407
|
precision highp float;
|
|
2282
2408
|
|
|
2283
2409
|
uniform vec2 uResolution;
|
|
@@ -2313,11 +2439,11 @@ void main() {
|
|
|
2313
2439
|
`;
|
|
2314
2440
|
var orbProgram = {
|
|
2315
2441
|
name: "orb",
|
|
2316
|
-
fragmentSource:
|
|
2442
|
+
fragmentSource: fragmentSource15
|
|
2317
2443
|
};
|
|
2318
2444
|
|
|
2319
2445
|
// src/runtime/viewer/shaders/builtins/pixelConstellation.ts
|
|
2320
|
-
var
|
|
2446
|
+
var fragmentSource16 = `
|
|
2321
2447
|
precision highp float;
|
|
2322
2448
|
|
|
2323
2449
|
uniform float uTime;
|
|
@@ -2417,11 +2543,11 @@ void main() {
|
|
|
2417
2543
|
`;
|
|
2418
2544
|
var pixelConstellationProgram = {
|
|
2419
2545
|
name: "pixelConstellation",
|
|
2420
|
-
fragmentSource:
|
|
2546
|
+
fragmentSource: fragmentSource16
|
|
2421
2547
|
};
|
|
2422
2548
|
|
|
2423
2549
|
// src/runtime/viewer/shaders/builtins/plasmaGauge.ts
|
|
2424
|
-
var
|
|
2550
|
+
var fragmentSource17 = `
|
|
2425
2551
|
precision highp float;
|
|
2426
2552
|
|
|
2427
2553
|
uniform vec2 uResolution;
|
|
@@ -2523,12 +2649,12 @@ void main() {
|
|
|
2523
2649
|
`;
|
|
2524
2650
|
var plasmaGaugeProgram = {
|
|
2525
2651
|
name: "plasmaGauge",
|
|
2526
|
-
fragmentSource:
|
|
2652
|
+
fragmentSource: fragmentSource17,
|
|
2527
2653
|
replacesBaseFill: true
|
|
2528
2654
|
};
|
|
2529
2655
|
|
|
2530
2656
|
// src/runtime/viewer/shaders/builtins/prismSlats.ts
|
|
2531
|
-
var
|
|
2657
|
+
var fragmentSource18 = `
|
|
2532
2658
|
precision highp float;
|
|
2533
2659
|
|
|
2534
2660
|
uniform vec2 uResolution;
|
|
@@ -2603,11 +2729,11 @@ void main() {
|
|
|
2603
2729
|
`;
|
|
2604
2730
|
var prismSlatsProgram = {
|
|
2605
2731
|
name: "prismSlats",
|
|
2606
|
-
fragmentSource:
|
|
2732
|
+
fragmentSource: fragmentSource18
|
|
2607
2733
|
};
|
|
2608
2734
|
|
|
2609
2735
|
// src/runtime/viewer/shaders/builtins/reactivePanel.ts
|
|
2610
|
-
var
|
|
2736
|
+
var fragmentSource19 = `
|
|
2611
2737
|
precision highp float;
|
|
2612
2738
|
|
|
2613
2739
|
uniform float uTime;
|
|
@@ -2709,7 +2835,7 @@ void main() {
|
|
|
2709
2835
|
`;
|
|
2710
2836
|
var reactivePanelProgram = {
|
|
2711
2837
|
name: "reactivePanel",
|
|
2712
|
-
fragmentSource:
|
|
2838
|
+
fragmentSource: fragmentSource19,
|
|
2713
2839
|
defaultParameters: {
|
|
2714
2840
|
intensity: 0.5,
|
|
2715
2841
|
speed: 0.18,
|
|
@@ -2732,7 +2858,7 @@ var reactivePanelProgram = {
|
|
|
2732
2858
|
};
|
|
2733
2859
|
|
|
2734
2860
|
// src/runtime/viewer/shaders/builtins/ruler.ts
|
|
2735
|
-
var
|
|
2861
|
+
var fragmentSource20 = `
|
|
2736
2862
|
precision highp float;
|
|
2737
2863
|
|
|
2738
2864
|
uniform vec2 uResolution;
|
|
@@ -2837,12 +2963,12 @@ void main() {
|
|
|
2837
2963
|
`;
|
|
2838
2964
|
var rulerProgram = {
|
|
2839
2965
|
name: "ruler",
|
|
2840
|
-
fragmentSource:
|
|
2966
|
+
fragmentSource: fragmentSource20,
|
|
2841
2967
|
replacesBaseFill: true
|
|
2842
2968
|
};
|
|
2843
2969
|
|
|
2844
2970
|
// src/runtime/viewer/shaders/builtins/silkFolds.ts
|
|
2845
|
-
var
|
|
2971
|
+
var fragmentSource21 = `
|
|
2846
2972
|
precision highp float;
|
|
2847
2973
|
|
|
2848
2974
|
uniform vec2 uResolution;
|
|
@@ -2927,7 +3053,7 @@ void main() {
|
|
|
2927
3053
|
`;
|
|
2928
3054
|
var silkFoldsProgram = {
|
|
2929
3055
|
name: "silkFolds",
|
|
2930
|
-
fragmentSource:
|
|
3056
|
+
fragmentSource: fragmentSource21,
|
|
2931
3057
|
defaultParameters: {
|
|
2932
3058
|
speed: 0.2,
|
|
2933
3059
|
intensity: 1,
|
|
@@ -2950,7 +3076,7 @@ var silkFoldsProgram = {
|
|
|
2950
3076
|
};
|
|
2951
3077
|
|
|
2952
3078
|
// src/runtime/viewer/shaders/builtins/smearOrb.ts
|
|
2953
|
-
var
|
|
3079
|
+
var fragmentSource22 = `
|
|
2954
3080
|
precision highp float;
|
|
2955
3081
|
|
|
2956
3082
|
uniform vec2 uResolution;
|
|
@@ -3026,12 +3152,12 @@ void main() {
|
|
|
3026
3152
|
`;
|
|
3027
3153
|
var smearOrbProgram = {
|
|
3028
3154
|
name: "smearOrb",
|
|
3029
|
-
fragmentSource:
|
|
3155
|
+
fragmentSource: fragmentSource22,
|
|
3030
3156
|
replacesBaseFill: true
|
|
3031
3157
|
};
|
|
3032
3158
|
|
|
3033
3159
|
// src/runtime/viewer/shaders/builtins/tickScale.ts
|
|
3034
|
-
var
|
|
3160
|
+
var fragmentSource23 = `
|
|
3035
3161
|
precision highp float;
|
|
3036
3162
|
|
|
3037
3163
|
uniform vec2 uResolution;
|
|
@@ -3090,12 +3216,12 @@ void main() {
|
|
|
3090
3216
|
`;
|
|
3091
3217
|
var tickScaleProgram = {
|
|
3092
3218
|
name: "tickScale",
|
|
3093
|
-
fragmentSource:
|
|
3219
|
+
fragmentSource: fragmentSource23,
|
|
3094
3220
|
replacesBaseFill: true
|
|
3095
3221
|
};
|
|
3096
3222
|
|
|
3097
3223
|
// src/runtime/viewer/shaders/builtins/violetGlass.ts
|
|
3098
|
-
var
|
|
3224
|
+
var fragmentSource24 = `
|
|
3099
3225
|
precision highp float;
|
|
3100
3226
|
|
|
3101
3227
|
uniform float uTime;
|
|
@@ -3175,11 +3301,11 @@ void main() {
|
|
|
3175
3301
|
`;
|
|
3176
3302
|
var violetGlassProgram = {
|
|
3177
3303
|
name: "violetGlass",
|
|
3178
|
-
fragmentSource:
|
|
3304
|
+
fragmentSource: fragmentSource24
|
|
3179
3305
|
};
|
|
3180
3306
|
|
|
3181
3307
|
// src/runtime/viewer/shaders/builtins/violetGlassLight.ts
|
|
3182
|
-
var
|
|
3308
|
+
var fragmentSource25 = `
|
|
3183
3309
|
precision highp float;
|
|
3184
3310
|
|
|
3185
3311
|
uniform float uTime;
|
|
@@ -3249,7 +3375,7 @@ void main() {
|
|
|
3249
3375
|
`;
|
|
3250
3376
|
var violetGlassLightProgram = {
|
|
3251
3377
|
name: "violetGlassLight",
|
|
3252
|
-
fragmentSource:
|
|
3378
|
+
fragmentSource: fragmentSource25
|
|
3253
3379
|
};
|
|
3254
3380
|
|
|
3255
3381
|
// src/runtime/viewer/shaders/programs.ts
|
|
@@ -3277,7 +3403,8 @@ var builtins = [
|
|
|
3277
3403
|
reactivePanelProgram,
|
|
3278
3404
|
ledMatrixProgram,
|
|
3279
3405
|
lightBandProgram,
|
|
3280
|
-
silkFoldsProgram
|
|
3406
|
+
silkFoldsProgram,
|
|
3407
|
+
glowCardProgram
|
|
3281
3408
|
];
|
|
3282
3409
|
var programs = new Map(builtins.map((program) => [program.name, program]));
|
|
3283
3410
|
function registerShaderProgram(program) {
|
|
@@ -3458,9 +3585,9 @@ function compile(gl, type, source) {
|
|
|
3458
3585
|
}
|
|
3459
3586
|
return shader;
|
|
3460
3587
|
}
|
|
3461
|
-
function linkProgram(gl,
|
|
3588
|
+
function linkProgram(gl, fragmentSource26) {
|
|
3462
3589
|
const vertex = compile(gl, gl.VERTEX_SHADER, VERTEX_SOURCE);
|
|
3463
|
-
const fragment = compile(gl, gl.FRAGMENT_SHADER,
|
|
3590
|
+
const fragment = compile(gl, gl.FRAGMENT_SHADER, fragmentSource26);
|
|
3464
3591
|
if (!vertex || !fragment) {
|
|
3465
3592
|
if (vertex) {
|
|
3466
3593
|
gl.deleteShader(vertex);
|
|
@@ -4404,5 +4531,5 @@ function createViewer(options) {
|
|
|
4404
4531
|
}
|
|
4405
4532
|
|
|
4406
4533
|
export { SHADER_DEFAULTS, connectInteraction, createViewer, registerShaderProgram, shaderProgram };
|
|
4407
|
-
//# sourceMappingURL=chunk-
|
|
4408
|
-
//# sourceMappingURL=chunk-
|
|
4534
|
+
//# sourceMappingURL=chunk-EDOPENSE.js.map
|
|
4535
|
+
//# sourceMappingURL=chunk-EDOPENSE.js.map
|