manim-web 0.14.0 → 0.15.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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/integrations/react.js +17 -17
- package/dist/integrations/vue.js +16 -16
- package/dist/manim-web.browser.js +260 -2
- package/dist/mobjects/geo/ChoroplethMap.d.ts +72 -0
- package/dist/mobjects/geo/ChoroplethMap.d.ts.map +1 -0
- package/dist/mobjects/geo/Globe.d.ts +122 -0
- package/dist/mobjects/geo/Globe.d.ts.map +1 -0
- package/dist/mobjects/geo/colorScale.d.ts +45 -0
- package/dist/mobjects/geo/colorScale.d.ts.map +1 -0
- package/dist/mobjects/geo/geojson.d.ts +54 -0
- package/dist/mobjects/geo/geojson.d.ts.map +1 -0
- package/dist/mobjects/geo/index.d.ts +13 -0
- package/dist/mobjects/geo/index.d.ts.map +1 -0
- package/dist/mobjects/geo/projections.d.ts +53 -0
- package/dist/mobjects/geo/projections.d.ts.map +1 -0
- package/dist/rate-functions/spring.d.ts.map +1 -1
- package/dist/{src-BLA8Tb0K.js → src-Da4luuzD.js} +260 -2
- package/dist/test-setup/TestMobject.d.ts +23 -0
- package/dist/test-setup/TestMobject.d.ts.map +1 -0
- package/dist/utils/axis.d.ts +0 -1
- package/dist/utils/axis.d.ts.map +1 -1
- package/package.json +3 -1
package/dist/integrations/vue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { $ as e, $a as t, $c as n, $d as r, $f as i, $i as a, $l as ee, $
|
|
2
|
-
import { a as
|
|
3
|
-
import { defineComponent as
|
|
1
|
+
import { $ as e, $a as t, $c as n, $d as r, $f as i, $i as a, $l as ee, $m as te, $n as ne, $o as re, $p as ie, $r as ae, $s as oe, $t as se, $u as ce, A as le, Aa as ue, Ac as de, Ad as fe, Af as pe, Ai as o, Al as s, Am as c, An as l, Ao as u, Ap as d, Ar as f, As as p, At as m, Au as h, B as g, Ba as _, Bc as v, Bd as y, Bf as b, Bi as x, Bl as S, Bm as C, Bn as w, Bo as T, Bp as E, Br as D, Bs as O, Bt as k, Bu as A, C as j, Ca as M, Cc as N, Cd as P, Cf as F, Ci as I, Cl as L, Cm as R, Cn as z, Co as B, Cp as me, Cr as he, Cs as ge, Ct as _e, Cu as ve, D as ye, Da as be, Dc as xe, Dd as V, Df as Se, Di as Ce, Dl as we, Dm as Te, Dn as Ee, Do as De, Dp as Oe, Dr as ke, Ds as Ae, Dt as je, Du as Me, E as Ne, Ea as Pe, Ec as Fe, Ed as Ie, Ef as H, Ei as Le, El as Re, Em as ze, En as Be, Eo as Ve, Ep as He, Er as Ue, Es as We, Et as Ge, Eu as Ke, F as qe, Fa as Je, Fc as Ye, Fd as Xe, Ff as Ze, Fi as Qe, Fl as $e, Fm as et, Fn as tt, Fo as nt, Fp as rt, Fr as it, Fs as at, Ft as ot, Fu as st, G as ct, Ga as lt, Gc as ut, Gd as dt, Gf as ft, Gi as pt, Gl as mt, Gm as ht, Gn as gt, Go as _t, Gp as vt, Gr as yt, Gs as bt, Gt as xt, Gu as St, H as Ct, Ha as wt, Hc as Tt, Hd as Et, Hf as Dt, Hi as Ot, Hl as kt, Hm as At, Hn as jt, Ho as Mt, Hp as Nt, Hr as Pt, Hs as Ft, Ht as It, Hu as Lt, I as Rt, Ia as zt, Ic as Bt, Id as Vt, If as Ht, Ii as Ut, Il as Wt, Im as Gt, In as Kt, Io as qt, Ip as Jt, Ir as Yt, Is as Xt, It as Zt, Iu as Qt, J as $t, Ja as en, Jc as tn, Jd as nn, Jf as rn, Ji as an, Jl as on, Jm as sn, Jn as cn, Jo as ln, Jp as un, Jr as dn, Js as fn, Jt as pn, Ju as mn, K as hn, Ka as gn, Kc as _n, Kd as vn, Kf as yn, Ki as bn, Kl as xn, Km as Sn, Kn as Cn, Ko as wn, Kp as Tn, Kr as En, Ks as Dn, Kt as On, Ku as kn, L as An, La as jn, Lc as Mn, Ld as Nn, Lf as Pn, Li as Fn, Ll as In, Lm as Ln, Ln as Rn, Lo as zn, Lp as Bn, Lr as Vn, Ls as Hn, Lt as Un, Lu as Wn, M as Gn, Ma as Kn, Mc as qn, Md as Jn, Mf as Yn, Mi as Xn, Ml as Zn, Mm as Qn, Mn as $n, Mo as er, Mp as tr, Mr as nr, Ms as rr, Mt as ir, Mu as ar, N as or, Na as sr, Nc as cr, Nd as lr, Nf as ur, Ni as dr, Nl as fr, Nm as pr, Nn as mr, No as hr, Np as gr, Nr as _r, Ns as vr, Nt as yr, Nu as br, O as xr, Oa as Sr, Oc as Cr, Od as wr, Of as Tr, Oi as Er, Ol as Dr, Om as Or, On as kr, Oo as Ar, Op as jr, Or as Mr, Os as Nr, Ot as Pr, Ou as Fr, P as Ir, Pa as Lr, Pc as Rr, Pd as zr, Pf as Br, Pi as Vr, Pl as Hr, Pm as Ur, Pn as Wr, Po as Gr, Pp as Kr, Pr as qr, Ps as Jr, Pt as Yr, Pu as Xr, Q as Zr, Qa as Qr, Qc as $r, Qd as ei, Qf as ti, Qi as ni, Ql as ri, Qm as ii, Qn as ai, Qo as oi, Qp as si, Qr as ci, Qs as li, Qt as ui, Qu as di, R as fi, Ra as pi, Rc as mi, Rd as hi, Rf as gi, Ri as _i, Rl as vi, Rm as yi, Rn as bi, Ro as xi, Rp as Si, Rr as Ci, Rs as wi, Rt as Ti, Ru as Ei, S as Di, Sa as Oi, Sc as ki, Sd as Ai, Sf as ji, Si as Mi, Sl as Ni, Sm as Pi, Sn as Fi, So as Ii, Sp as Li, Sr as Ri, Ss as zi, St as Bi, Su as Vi, T as Hi, Ta as Ui, Tc as Wi, Td as Gi, Tf as Ki, Ti as qi, Tl as Ji, Tm as Yi, Tn as Xi, To as Zi, Tp as Qi, Tr as $i, Ts as ea, Tt as ta, Tu as na, U as ra, Ua as ia, Uc as aa, Ud as oa, Uf as sa, Ui as ca, Ul as la, Um as ua, Un as da, Uo as fa, Up as pa, Ur as ma, Us as ha, Ut as ga, Uu as _a, V as va, Va as ya, Vc as ba, Vd as xa, Vf as Sa, Vi as Ca, Vl as wa, Vm as Ta, Vn as Ea, Vo as Da, Vp as Oa, Vr as ka, Vs as Aa, Vt as ja, Vu as Ma, W as Na, Wa as Pa, Wc as Fa, Wd as Ia, Wf as La, Wi as Ra, Wl as za, Wm as Ba, Wn as Va, Wo as Ha, Wp as Ua, Wr as Wa, Ws as Ga, Wt as Ka, Wu as qa, X as Ja, Xa as Ya, Xc as Xa, Xd as Za, Xf as Qa, Xi as $a, Xl as eo, Xm as to, Xn as no, Xo as ro, Xp as io, Xr as ao, Xs as oo, Xt as so, Xu as co, Y as lo, Ya as uo, Yc as fo, Yd as po, Yf as mo, Yi as ho, Yl as go, Ym as _o, Yn as vo, Yo as yo, Yp as bo, Yr as xo, Ys as So, Yt as Co, Yu as wo, Z as To, Za as Eo, Zc as Do, Zd as Oo, Zf as ko, Zi as Ao, Zl as jo, Zm as Mo, Zn as No, Zo as Po, Zp as Fo, Zr as Io, Zs as Lo, Zt as Ro, Zu as zo, _ as Bo, _a as Vo, _c as Ho, _d as Uo, _f as Wo, _i as Go, _l as Ko, _m as qo, _n as Jo, _o as Yo, _p as Xo, _r as Zo, _s as U, _t as Qo, _u as $o, a as es, aa as ts, ac as ns, ad as rs, af as is, ah as as, ai as os, al as ss, am as cs, an as ls, ao as us, ap as ds, ar as fs, as as ps, at as ms, au as W, b as hs, ba as gs, bc as _s, bd as vs, bf as ys, bi as bs, bl as xs, bm as Ss, bn as Cs, bo as ws, bp as Ts, br as Es, bs as Ds, bt as Os, bu as ks, c as As, ca as js, cc as Ms, cd as Ns, cf as Ps, ci as Fs, cl as Is, cm as Ls, cn as Rs, co as zs, cp as Bs, cr as Vs, cs as Hs, ct as Us, cu as Ws, d as Gs, da as Ks, dc as qs, dd as Js, df as Ys, di as Xs, dl as G, dm as Zs, dn as Qs, do as $s, dp as ec, dr as tc, ds as nc, dt as rc, du as ic, ea as ac, ec as oc, ed as sc, ef as cc, eh as lc, ei as uc, el as dc, em as fc, en as pc, eo as mc, ep as hc, er as gc, es as _c, et as vc, eu as yc, f as bc, fa as xc, fc as Sc, fd as Cc, ff as wc, fi as Tc, fl as Ec, fm as Dc, fn as Oc, fo as kc, fp as Ac, fr as jc, fs as Mc, ft as Nc, fu as Pc, g as Fc, ga as Ic, gc as Lc, gd as Rc, gf as zc, gi as Bc, gl as Vc, gm as Hc, gn as Uc, go as Wc, gp as Gc, gr as Kc, gs as qc, gt as Jc, gu as Yc, h as Xc, ha as Zc, hc as Qc, hd as $c, hf as el, hi as tl, hl as nl, hm as rl, hn as il, ho as al, hp as ol, hr as sl, hs as cl, ht as ll, hu as ul, i as dl, ia as fl, ic as pl, id as ml, if as hl, ih as gl, ii as _l, il as vl, im as yl, in as bl, io as xl, ip as Sl, ir as Cl, is as wl, it as Tl, iu as El, j as Dl, ja as Ol, jc as kl, jd as Al, jf as jl, ji as Ml, jl as Nl, jm as Pl, jn as Fl, jo as Il, jp as Ll, jr as Rl, js as zl, jt as Bl, ju as Vl, k as Hl, ka as Ul, kc as Wl, kd as Gl, kf as Kl, ki as ql, kl as Jl, km as Yl, kn as Xl, ko as Zl, kp as Ql, kr as $l, ks as eu, kt as tu, ku as nu, l as ru, la as iu, lc as au, ld as ou, lf as su, li as cu, ll as lu, lm as uu, ln as du, lo as fu, lp as pu, lr as mu, ls as hu, lt as gu, lu as _u, m as vu, ma as yu, mc as bu, md as xu, mf as Su, mi as Cu, ml as wu, mm as Tu, mn as Eu, mo as Du, mp as Ou, mr as ku, ms as Au, mt as ju, mu as Mu, n as Nu, na as Pu, nc as Fu, nd as Iu, nf as Lu, nh as Ru, ni as zu, nl as Bu, nm as Vu, nn as Hu, no as Uu, np as Wu, nr as Gu, ns as Ku, nt as qu, nu as Ju, o as Yu, oa as Xu, oc as Zu, od as Qu, of as $u, oi as ed, ol as td, om as nd, on as rd, oo as id, op as ad, or as od, os as sd, ot as cd, ou as ld, p as ud, pa as dd, pc as fd, pd as K, pf as pd, pi as md, pl as hd, pm as gd, pn as _d, po as vd, pp as yd, pr as bd, ps as xd, pt as Sd, pu as Cd, q as wd, qa as Td, qc as Ed, qd as Dd, qf as Od, qi as kd, ql as Ad, qm as jd, qn as Md, qo as Nd, qp as Pd, qr as Fd, qs as Id, qt as Ld, qu as Rd, r as zd, ra as Bd, rc as Vd, rd as Hd, rf as Ud, rh as Wd, ri as Gd, rl as Kd, rm as qd, rn as Jd, ro as Yd, rp as Xd, rr as Zd, rs as Qd, rt as $d, ru as ef, s as tf, sa as nf, sc as rf, sd as q, sf as af, si as of, sl as sf, sm as cf, sn as lf, so as uf, sp as df, sr as ff, ss as pf, st as mf, su as hf, t as gf, ta as _f, tc as vf, td as yf, tf as bf, th as xf, ti as Sf, tl as Cf, tm as wf, tn as Tf, to as Ef, tp as Df, tr as Of, ts as kf, tt as Af, tu as jf, u as Mf, ua as Nf, uc as Pf, ud as Ff, uf as If, ui as Lf, ul as Rf, um as zf, un as Bf, uo as Vf, up as Hf, ur as Uf, us as Wf, ut as Gf, uu as Kf, v as qf, va as Jf, vc as Yf, vd as Xf, vf as Zf, vi as Qf, vl as $f, vm as ep, vn as tp, vo as np, vp as rp, vr as ip, vs as ap, vt as op, vu as sp, w as cp, wa as lp, wc as up, wd as dp, wf as fp, wi as pp, wl as mp, wm as hp, wn as gp, wo as _p, wp as vp, wr as yp, ws as bp, wt as xp, wu as Sp, x as Cp, xa as wp, xc as Tp, xd as Ep, xf as Dp, xi as Op, xl as kp, xm as Ap, xn as jp, xo as Mp, xp as Np, xr as Pp, xs as Fp, xt as Ip, xu as Lp, y as Rp, ya as zp, yc as Bp, yd as Vp, yf as Hp, yi as Up, yl as Wp, ym as Gp, yn as Kp, yo as qp, yp as Jp, yr as Yp, ys as Xp, yt as Zp, yu as Qp, z as $p, za as em, zc as tm, zd as nm, zf as rm, zi as im, zl as am, zm as om, zn as sm, zo as cm, zp as lm, zr as um, zs as dm, zt as fm, zu as pm } from "../src-Da4luuzD.js";
|
|
2
|
+
import { a as mm, i as hm, n as gm, o as _m, r as vm, s as ym, t as bm } from "../webcomponent-BS5WnkDO.js";
|
|
3
|
+
import { defineComponent as xm, h as Sm, inject as Cm, onMounted as wm, onUnmounted as J, provide as Tm, ref as Y, shallowRef as X, watch as Z } from "vue";
|
|
4
4
|
//#region src/integrations/vue.ts
|
|
5
5
|
function Q(e, t) {
|
|
6
6
|
let n = X(null), r = Y(!1);
|
|
7
|
-
return
|
|
8
|
-
e.value && (n.value = new
|
|
7
|
+
return wm(() => {
|
|
8
|
+
e.value && (n.value = new W(e.value, t), r.value = !0);
|
|
9
9
|
}), J(() => {
|
|
10
10
|
n.value && (n.value.dispose(), n.value = null, r.value = !1);
|
|
11
11
|
}), Z(e, (e, i) => {
|
|
12
|
-
i && n.value && (n.value.dispose(), n.value = null, r.value = !1), e && (n.value = new
|
|
12
|
+
i && n.value && (n.value.dispose(), n.value = null, r.value = !1), e && (n.value = new W(e, t), r.value = !0);
|
|
13
13
|
}), {
|
|
14
14
|
scene: n,
|
|
15
15
|
isReady: r
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Em(e, t) {
|
|
19
19
|
let n = X(null);
|
|
20
20
|
return Z(e, (e, r) => {
|
|
21
21
|
r && n.value && r.remove(n.value), e && (n.value ||= t(), e.add(n.value));
|
|
@@ -23,7 +23,7 @@ function ym(e, t) {
|
|
|
23
23
|
e.value && n.value && e.value.remove(n.value), n.value = null;
|
|
24
24
|
}), n;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Dm(e) {
|
|
27
27
|
let t = Y(!1);
|
|
28
28
|
return {
|
|
29
29
|
play: async (...n) => {
|
|
@@ -49,14 +49,14 @@ function bm(e) {
|
|
|
49
49
|
isPlaying: t
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Om(e, t) {
|
|
53
53
|
Z(e, (e, n) => {
|
|
54
54
|
n && n.removeUpdater(t), e && e.addUpdater(t);
|
|
55
55
|
}, { immediate: !0 }), J(() => {
|
|
56
56
|
e.value && e.value.removeUpdater(t);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
var $ = Symbol("manimweb-scene"),
|
|
59
|
+
var $ = Symbol("manimweb-scene"), km = xm({
|
|
60
60
|
name: "ManimScene",
|
|
61
61
|
props: {
|
|
62
62
|
width: {
|
|
@@ -84,7 +84,7 @@ var $ = Symbol("manimweb-scene"), Sm = mm({
|
|
|
84
84
|
default: void 0
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
emits: { ready: (e) => e instanceof
|
|
87
|
+
emits: { ready: (e) => e instanceof W },
|
|
88
88
|
setup(e, { emit: t, slots: n }) {
|
|
89
89
|
let r = Y(null), { scene: i, isReady: a } = Q(r, {
|
|
90
90
|
width: e.width,
|
|
@@ -96,7 +96,7 @@ var $ = Symbol("manimweb-scene"), Sm = mm({
|
|
|
96
96
|
});
|
|
97
97
|
return Z(a, (e) => {
|
|
98
98
|
e && i.value && t("ready", i.value);
|
|
99
|
-
}),
|
|
99
|
+
}), Tm($, i), () => Sm("div", {
|
|
100
100
|
ref: r,
|
|
101
101
|
style: {
|
|
102
102
|
width: `${e.width}px`,
|
|
@@ -106,9 +106,9 @@ var $ = Symbol("manimweb-scene"), Sm = mm({
|
|
|
106
106
|
}, n.default?.());
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function Am() {
|
|
110
|
+
return Cm($, Y(null));
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var jm = { install(e) {} };
|
|
113
113
|
//#endregion
|
|
114
|
-
export { gd as Add, Nl as AddTextLetterByLetter, Yo as AddTextWordByWord, Nn as Angle, jp as AnimateProxy, Xl as AnimatedBoundary, ya as AnimatedImageMobject, zo as Animation, Bf as AnimationGroup, Xc as AnnotationDot, ou as AnnularSector, Nf as Annulus, Ks as ApplyComplexFunction, yc as ApplyFunction, od as ApplyMatrix, gu as ApplyMethod, Zn as ApplyPointwiseFunction, pe as ApplyPointwiseFunctionToCenter, Cf as ApplyWave, dd as Arc, wc as ArcBetweenPoints, $u as ArcBrace, Xu as ArcPolygon, nf as ArcPolygonFromArcs, vi as Arrow, nc as Arrow3D, Vl as ArrowCircleFilledTip, ue as ArrowCircleTip, El as ArrowSquareFilledTip, Jn as ArrowSquareTip, lr as ArrowTip, zr as ArrowTriangleFilledTip, Xe as ArrowTriangleTip, Ge as ArrowVectorField, ee as AudioManager, qs as Axes, Vn as BLACK, iu as BLEND_MODES, Si as BLUE, nm as BLUE_A, T as BLUE_B, Oa as BLUE_C, Pt as BLUE_D, pa as BLUE_E, yl as BOLD, ds as BOOK, Sd as BackgroundRectangle, Zl as BarChart, Od as Blink, vs as BooleanResult, zi as Box3D, of as Brace, zs as BraceBetweenPoints, lu as BraceLabel, If as BraceText, Eu as Broadcast, ir as BulletedList, Mc as Camera2D, ku as Camera2DFrame, yd as Camera3D, Ni as CameraAnimateProxy, I as CameraFrame, ed as CapStyleType, vr as ChangeDecimalToValue, me as ChangeSpeed, Jr as ChangingDecimal, Cp as Circle, cf as Circumscribe, zn as Clickable, Ao as ClockwiseTransform, Un as Code, Mf as ComplexHomotopy, f as ComplexPlane, Aa as ComplexValueTracker, Ds as Cone, sm as Controls, ba as ConvexHull, wf as ConvexHull3D, ri as CounterclockwiseTransform, tr as Create, nn as Cross, he as Cube, lc as CubicBezier, ss as CurvedArrow, hl as CurvedDoubleArrow, ks as CurvesAsSubmobjects, Et as Cutout, a as CyclicReplace, kp as Cylinder, Ua as DARKER_GRAY, yt as DARK_BLUE, En as DARK_BROWN, Ad as DARK_GRAY, La as DEFAULT_ANIMATION_DURATION, sf as DEFAULT_ARROW_TIP_LENGTH, Ye as DEFAULT_ASPECT_RATIO, wi as DEFAULT_COLOR_SCHEME, Bs as DEFAULT_DASH_LENGTH, uu as DEFAULT_DOT_RADIUS, pt as DEFAULT_FONT_SIZE, bn as DEFAULT_FPS, wd as DEFAULT_FRAME_HEIGHT, an as DEFAULT_FRAME_WIDTH, mo as DEFAULT_MOBJECT_TO_EDGE_BUFFER, Qa as DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, ko as DEFAULT_PIXEL_HEIGHT, ni as DEFAULT_PIXEL_WIDTH, Lf as DEFAULT_POINTWISE_FUNCTION_RUN_TIME, ec as DEFAULT_POINT_DENSITY_1D, Oc as DEFAULT_POINT_DENSITY_2D, hd as DEFAULT_SMALL_DOT_RADIUS, i as DEFAULT_STROKE_WIDTH, Tu as DEFAULT_WAIT_TIME, il as DEGREES, fe as DL, Ol as DOWN, Xn as DR, Iu as DashedLine, vf as DashedVMobject, un as DecimalMatrix, xt as DecimalNumber, $s as DecimalTable, Os as Degrees, Eo as DiGraph, Ui as DiceFace, yp as Difference, Du as Dodecahedron, Do as Dot, Hu as Dot3D, Qp as DoubleArrow, Ea as Draggable, gr as DrawBorderThenFill, mi as Elbow, Zs as Ellipse, ki as Exclusion, pd as ExportSettingsPanel, Cu as FPS_PRESETS, vp as FadeIn, Np as FadeOut, Ca as FadeToColor, ns as FadeTransform, Ku as FadeTransformPieces, du as Flash, No as FocusOn, Bt as FullScreenFadeRectangle, Mn as FullScreenRectangle, bc as FunctionGraph, dn as GOLD, bo as GOLD_A, io as GOLD_B, Fo as GOLD_C, si as GOLD_D, re as GOLD_E, uc as GRAY, yf as GRAY_A, Lu as GRAY_B, Hd as GRAY_C, gl as GRAY_D, cs as GRAY_E, Zu as GREEN, rf as GREEN_A, Ls as GREEN_B, su as GREEN_C, Pf as GREEN_D, Qs as GREEN_E, t as GenericGraph, Ar as GifExporter, Gn as GlyphVMobject, us as GradientVMobject, $r as Graph, es as Group, Fu as GrowArrow, sp as GrowFromCenter, Bd as GrowFromEdge, ml as GrowFromPoint, Uc as HEAVY, O as HSV, zc as Hexagon, Xs as Homotopy, em as Hoverable, dr as IN, Xo as ITALIC, ol as Icosahedron, wo as ImageMobject, qu as ImplicitFunction, tc as Indicate, On as Integer, yo as IntegerMatrix, Dc as IntegerTable, eo as InteractiveScene, M as Intersection, pc as LARGE_BUFF, Vr as LEFT, Zf as LIGHT, Tc as LIGHTER_GRAY, fd as LIGHT_BROWN, Su as LIGHT_GRAY, tl as LIGHT_PINK, vn as Label, Fc as LabeledArrow, Ho as LabeledDot, Uf as LabeledLine, Pp as LabeledPolygram, cc as LaggedStart, ao as LaggedStartMap, ei as LargeDot, go as Lighting, wa as Line, _d as Line3D, Vp as LineJointType, Ms as LinearBase, Gt as LinearTransformationScene, nu as LogBase, Bc as MANIM_BACKGROUND, qo as MAROON, Jf as MAROON_A, Rp as MAROON_B, Ss as MAROON_C, wp as MAROON_D, Pi as MAROON_E, Ts as MEDIUM, Sf as MED_LARGE_BUFF, Bu as MED_SMALL_BUFF, im as MONOKAI_COLOR_SCHEME, Bl as MandelbrotSet, Hc as ManimBanner, ja as ManimColor, Sm as ManimScene, pm as ManimSceneElement, wm as ManimWebPlugin, cp as MappingCamera, yr as MarkdownText, Mu as MarkupText, j as MasterTimeline, md as MathTable, oc as MathTex, Ei as MathTexImage, ot as MathTexPart, mf as MathTexSVG, Md as MathTypst, ro as Matrix, c as MatrixTracker, Ps as Mobject, Tl as Mobject1D, le as Mobject2D, ea as Mobject3D, Po as MobjectMatrix, wu as MobjectTable, oi as ModelMobject, nt as MovablePoint, Kf as MoveAlongPath, Ir as MoveToTarget, bs as MoveToTargetPosition, Ji as MovingCamera, At as MovingCameraScene, ze as MultiCamera, Ap as Munits, Dp as NORMAL, Cr as NewtonFractal, cl as NullRenderer, sd as NumberLine, Qd as NumberPlane, Li as OBLIQUE, L as ORANGE, Qe as ORIGIN, Ut as OUT, Gc as Octahedron, sn as OrbitControls, Rr as PGroup, B as PI, lp as PINK, co as PMobject, Yi as PURE_BLUE, Be as PURE_GREEN, Te as PURE_RED, kr as PURPLE, Kl as PURPLE_A, s as PURPLE_B, jl as PURPLE_C, $n as PURPLE_D, mr as PURPLE_E, Ld as Paragraph, rs as ParametricFunction, Hs as ParametricSurface, Ko as Pentagon, Bi as Percent, Cc as PhaseFlow, ge as Pixels, cm as PlaybackControls, Ff as Player, U as PlayerController, Ec as PlayerUI, qn as PointCloudDot, cr as PointMobject, Il as PolarPlane, qf as Polygon, el as Polygram, Qo as Polyhedron, qd as Prism, ai as Pulse, nl as QUALITY_PRESETS, Wr as RED, tt as RED_A, Kt as RED_B, Rn as RED_C, yi as RED_D, $p as RED_E, Vc as RESOLUTION_PRESETS, Lt as RGBA, Fn as RIGHT, ga as RandomColorGenerator, ht as Rectangle, Lp as RegularPolygon, aa as RegularPolygram, al as Remove, Kr as RemoveTextLetterByLetter, qc as Renderer, $l as ReplacementTransform, kt as Restore, Jp as RightAngle, Dr as Rotate, Wc as Rotating, Fa as RoundedRectangle, fp as SCALE_FACTOR_PER_FONT_POINT, Qi as SEMIBOLD, Ue as SEMILIGHT, Gd as SMALL_BUFF, Oe as START_X, Mr as START_Y, zu as SVGMobject, ye as SampleSpace, qi as Scale, kf as ScaleBase, ca as ScaleInPlace, V as Scene, _c as SceneStateManager, pi as ScreenRectangle, Is as Sector, jo as SelectionManager, Sp as Shift, _t as ShowCreationThenDestruction, Xf as ShowIncreasingSubsets, Bp as ShowPartial, Kd as ShowPassingFlash, vo as ShowPassingFlashWithThinningStrokeWidth, ws as ShowSubmobjectsOneByOne, Ra as ShrinkToCenter, Zt as SingleStringMathTex, hr as Slider, n as SmallDot, ud as SmoothedVectorizedHomotopy, Df as SpecialThreeDScene, mp as Sphere, os as SpinInFromNothing, Ep as SpiralIn, we as SplitScreenCamera, Sn as Square, dt as Star, Vt as StealthTip, Ae as StreamLines, ci as Succession, K as Surface, K as Surface3D, fu as SurfacePresets, fo as SurroundingRectangle, ac as Swap, Yl as TAU, S as TEAL, Ta as TEAL_A, jt as TEAL_B, ua as TEAL_C, Ba as TEAL_D, gt as TEAL_E, u as THIN, Ul as THREE, rl as Table, _ as TangentLine, Vd as TangentialArc, $f as Tetrahedron, ae as Tex, Sa as TexFontTemplates, Ot as TexTemplate, sa as TexTemplateLibrary, Zr as Text, $t as TextGlyphGroup, nd as TexturedSurface, ps as ThreeDAxes, Or as ThreeDCamera, Ed as ThreeDScene, xl as ThreeDVMobject, mu as Timeline, xu as TipableVMobject, Yr as Title, Up as Torus, d as TracedPath, m as Transform, mt as TransformAnimations, Zd as TransformFromCopy, b as TransformMatchingAbstractBase, Hr as TransformMatchingCode, Wt as TransformMatchingShapes, In as TransformMatchingTex, xs as Triangle, De as TypeWithCursor, pn as Typst, gi as UL, Pl as ULTRABOLD, nr as ULTRAHEAVY, _r as ULTRALIGHT, Xp as UP, y as UR, rt as Uncreate, Xa as Underline, ip as Union, _u as UnitInterval, jr as UntypeWithCursor, Jt as Unwrite, Dn as UpdateFromAlphaFunc, fn as UpdateFromFunc, tp as VDict, gf as VGroup, Pu as VMobject, Wd as VMobjectFromSVGPath, It as ValueTracker, D as Variable, x as Vector, Ac as Vector3D, Pr as VectorField, dl as VectorFieldVector, Ln as VectorScene, Gp as VectorizedPoint, Ve as VideoExporter, ia as VideoMobject, o as Voiceover, Gl as VoiceoverScene, Cn as WHITE, Zo as Wait, Cs as WebCodecsExporter, Al as WebSpeechSynthesizer, fs as Wiggle, da as WiggleOutThenIn, Bn as Write, qr as X_AXIS, Dd as YELLOW, cn as YELLOW_A, _o as YELLOW_B, to as YELLOW_C, Mo as YELLOW_D, ii as YELLOW_E, it as Y_AXIS, Yt as Z_AXIS, la as ZoomDisplayPopOut, za as ZoomedScene, Qf as add, xi as addTextLetterByLetter, Ii as addTextWordByWord, Gf as addVec, hp as adjacentNTuples, ta as adjacentPairs, Ke as allElementsAreInstances, ka as always, Wa as alwaysRedraw, Hn as alwaysRotate, Ci as alwaysShift, Kp as angleAxisFromQuaternion, h as angleBetweenVectors, va as angleOfVector, Fl as animatedBoundary, ic as animationGroup, jf as applyBlendMode, Yc as applyComplexFunction, Pc as applyFunction, Vo as applyMatrix, Ml as applyMatrixLive, Hf as applyMethod, fr as applyPointwiseFunction, kl as applyPointwiseFunctionToCenter, Vu as applyWave, An as areKatexStylesLoaded, Ft as assertIsMobjectMethod, St as averageColor, Mp as bezier, gs as bezierRemap, ce as binarySearch, Pa as binaryTree, ut as bipartiteGraph, Ys as blendModeToThree, ln as blink, Hp as broadcast, ct as buildStyledTextLines, wt as cartesianToSpherical, ra as centerOfMass, at as changeDecimalToValue, pp as changeSpeed, Xt as changingDecimal, wl as choose, zp as chooseVideoExporterStrategy, Vs as circumscribe, Vi as clearAnimationOverrides, Kn as clip, Lr as clockwisePath, pf as clockwiseTransform, zd as colorGradient, kn as colorToIntRgb, Nd as colorToIntRgba, mn as colorToRgb, Co as colorToRgba, Na as compassDirections, _n as completeGraph, lt as complexFuncToR3Func, bu as complexHomotopy, gn as complexToR3, ha as complexValueTracker, di as compose, fc as computeCircularLayout, xf as computeLayout, je as concatenateLists, Je as counterclockwisePath, ju as counterclockwiseTransform, tm as create, Pe as createDiceRow, qp as createFadeToBlack, g as createFadeToWhite, ql as createGifExporter, Ee as createVideoExporter, Tp as createWebCodecsExporter, q as cross, q as crossVec, bd as cross2d, rn as cubicBezier, rm as cycleAnimation, xd as cycleGraph, Id as cyclicReplace, Ef as deserializeMobject, Au as deserializeScene, ff as deserializeSceneMobject, ne as detectModelFormat, Wi as difference, ys as dotVec, se as doubleSmooth, Fi as downloadBlob, w as drawBorderThenFill, ef as earclipTriangulation, po as ease, W as easeIn, W as easeInCubic, hf as easeInBack, Za as easeInBezier, Nu as easeInBounce, Rd as easeInCirc, fl as easeInElastic, is as easeInExpo, G as easeInOut, G as easeInOutCubic, $d as easeInOutBack, Oo as easeInOutBezier, Ns as easeInOutBounce, ru as easeInOutCirc, Af as easeInOutElastic, Js as easeInOutExpo, xc as easeInOutQuad, cd as easeInOutQuart, vu as easeInOutQuint, Zc as easeInOutSine, Ic as easeInQuad, Uo as easeInQuart, Wf as easeInQuint, Fp as easeInSine, H as easeOut, H as easeOutCubic, bp as easeOutBack, ti as easeOutBezier, Ai as easeOutBounce, N as easeOutCirc, ap as easeOutElastic, Gi as easeOutExpo, Ie as easeOutQuad, xe as easeOutQuart, Tr as easeOutQuint, Hl as easeOutSine, $i as emphasizeRegion, Pd as ensureKatexStyles, Fe as exclusion, de as exponentialDecay, R as exportAndDownloadPNG, up as exportFramePNG, Xi as exportPNGSequence, Kc as extractMobjectFamilyMembers, ma as fAlways, Oi as fadeIn, _s as fadeOut, xn as fadeToColor, js as fadeTransform, tu as fadeTransformPieces, en as findIntersection, Rf as flash, te as focusOn, Gs as get3dVmobEndCorner, vc as get3dVmobEndCornerIndex, ad as get3dVmobEndCornerUnitNormal, hu as get3dVmobGradientStartAndEndPoints, Jc as get3dVmobStartCorner, Nc as get3dVmobStartCornerIndex, Bo as get3dVmobStartCornerUnitNormal, Vf as get3dVmobUnitNormal, Sc as getActiveTheme, _e as getAnimationOverride, vt as getDetText, Qu as getFeatureFlags, ts as getSerializableTypes, Gu as getSerializer, Ka as getShadedRgb, Ju as getSmoothCubicBezierHandlePoints, Qn as getSpeechSynthesizer, ld as getTheme, yu as getThemeNames, lo as getUnitNormal, Ja as getWindingNumber, tn as gridGraph, Yu as growArrow, Re as growFromCenter, tf as growFromEdge, Fs as growFromPoint, gp as hasAnimationOverride, Fr as hashObj, so as hexToRgb, $c as homotopy, Ro as hsvToRgb, $o as indexLabels, kc as indicate, pl as integerInterpolate, _p as interpolate, ui as interpolateColor, be as intersection, Di as inverseInterpolate, oe as invertColor, A as isClosed, af as isFeatureEnabled, om as isMathJaxLoaded, pr as isSpeechSupported, So as isTypstLoaded, k as katexCanRender, _f as laggedStart, Io as laggedStartMap, xp as lengthVec, To as lineIntersection, Dl as linear, We as linearSpeedRamp, Yn as lingering, ji as linspace, Ql as listDifferenceUpdate, p as listUpdate, Ll as listify, um as logger, bt as maintainPositionRelativeTo, bi as makeClickable, Mt as makeDraggable, ar as makeEven, br as makeEvenByCycling, C as makeHoverable, er as makeMatrixTracker, qt as makeMovablePoint, Gr as makeSlider, lm as manimElementInternals, rp as masterTimeline, np as matchInterpolate, Tn as matrixToMobject, kd as matrixToTexString, Hi as mid, Qr as midpoint, Ip as moveAlongPath, Rl as moveToTarget, Mi as moveToTargetPosition, e as normSquared, gc as normalize, P as normalizeVec, ur as notQuiteThere, fm as onLog, op as orientation2D, Ki as orthonormalFrame, na as overrideAnimate, qe as overrideAnimation, et as parseBookmarks, qa as parseSVGPathData, as as partialBezierPoints, zt as pathAlongArc, jn as pathAlongCircles, uo as pathGraph, Tf as perpendicularBisector, Rc as phaseFlow, Ne as pointLiesOnBezier, Xr as powerset, Ma as preloadMathJax, oo as preloadTypst, Me as prepareAnimation, ep as printFamily, ve as proportionsAlongBezierCurveForPoint, mc as pulse, Jo as qualityToBitrate, Uu as quaternionConjugate, Jd as quaternionFromAngleAxis, Sl as quaternionMult, ms as r3ToComplex, dc as randomBrightColor, bf as randomColor, eu as registerFont, dm as registerManimElement, Xd as registerSerializableMobject, Qc as registerTheme, rd as regularVertices, Es as remove, st as removeListRedundancies, Qt as removeNones, Da as removeTextLetterByLetter, Rt as renderLatexToSVG, Lo as renderTypstToSVG, or as replacementTransform, Rs as resetFeatureFlags, Lc as resetThemes, Yf as resolveResolution, Td as restore, Wu as restoreMobjectState, Wp as restructureListToExcludeCertainFamilyMembers, Br as reverse, Ru as rgbToColor, Ud as rgbToHex, _l as rgbToHsv, ls as rgbaToColor, Wl as rotate, uf as rotateVector, Op as rotating, Us as rotationAboutZ, pu as rotationMatrix, zf as rotationMatrixTranspose, Ze as runningStart, Ht as rushFrom, Pn as rushInto, ke as rushRegion, Yd as saveMobjectState, Ce as scale, on as scaleInPlace, Le as scaleVec, Cl as serializeMobject, ll as serializeScene, Fd as serializeSceneMobject, cu as setFeatureFlags, Tt as setGifDecoder, hn as setKatexStylesheetUrl, _a as setMathJaxScriptUrl, hc as setModelLoaderFactory, Ur as setSpeechSynthesizer, Wo as setTheme, li as setTypstCompiler, F as shift, rc as shoelace, jc as shoelaceDirection, wn as showCreationThenDestruction, z as showIncreasingSubsets, dp as showPartial, bl as showPassingFlash, no as showPassingFlashWithThinningStrokeWidth, Zi as showSubmobjectsOneByOne, ho as shrinkToCenter, sr as sigmoid, hi as slowInto, Yp as smooth, Nr as smoothSpeedCurve, Go as smoothedVectorizedHomotopy, v as smoothererstep, xa as smootherstep, Dt as smoothstep, hs as snapshotFromJSON, id as snapshotToJSON, vd as sphericalToCartesian, au as spinInFromNothing, He as spiralIn, Sr as splitBezier, sc as spring, oa as squishRateFunc, Ya as starGraph, df as stateFromJSON, Ws as stateToJSON, Ia as stepFunction, r as steps, fi as straightPath, Wn as stretchArrayToLength, Se as subVec, zl as subdivideBezier, ie as succession, vl as svgMobject, Ct as svgToVMobjects, ul as swap, lf as texturedSphere, ft as thereAndBack, yn as thereAndBackWithPause, Ou as thickDiagonal, rr as tracedPath, xr as transform, $a as transformAnimations, Of as transformFromCopy, $e as transformMatchingCode, _i as transformMatchingShapes, Zp as transformMatchingTex, Ti as tuplify, E as turnAnimationIntoUpdater, Jl as typeWithCursor, Nt as uncreate, wr as union, am as uniqChain, Er as unitPerpendicularTo, As as unregisterSerializableMobject, l as untypeWithCursor, fa as unwrite, jd as updateFromAlphaFunc, xo as updateFromFunc, bm as useAnimation, Cm as useInjectedScene, ym as useMobject, Q as useScene, xm as useUpdater, Ga as valueTracker, Ri as wait, td as wiggle, Va as wiggleOutThenIn, Cd as wiggleRate, Ha as write, sl as zToVector };
|
|
114
|
+
export { Es as Add, xi as AddTextLetterByLetter, _p as AddTextWordByWord, Fa as Angle, Fr as AnimateProxy, Yt as AnimatedBoundary, en as AnimatedImageMobject, ml as Animation, $o as AnimationGroup, ki as AnnotationDot, Vc as AnnularSector, Ko as Annulus, Jf as ApplyComplexFunction, zp as ApplyFunction, gs as ApplyMatrix, wp as ApplyMethod, im as ApplyPointwiseFunction, Fn as ApplyPointwiseFunctionToCenter, Vs as ApplyWave, xs as Arc, Wp as ArcBetweenPoints, vd as ArcBrace, hd as ArcPolygon, wu as ArcPolygonFromArcs, mt as Arrow, ap as Arrow3D, Bt as ArrowCircleFilledTip, Mn as ArrowCircleTip, mi as ArrowSquareFilledTip, tm as ArrowSquareTip, v as ArrowTip, ba as ArrowTriangleFilledTip, Tt as ArrowTriangleTip, vr as ArrowVectorField, ld as AudioManager, Yf as Axes, Ua as BLACK, zc as BLEND_MODES, vt as BLUE, Tn as BLUE_A, Pd as BLUE_B, un as BLUE_C, bo as BLUE_D, io as BLUE_E, ec as BOLD, Ac as BOOK, dc as BackgroundRectangle, Xt as BarChart, gc as Blink, xe as BooleanResult, eu as Box3D, Du as Brace, al as BraceBetweenPoints, Wc as BraceLabel, Yo as BraceText, Pp as Broadcast, dm as BulletedList, Qp as Camera2D, Lp as Camera2DFrame, ks as Camera3D, Jl as CameraAnimateProxy, s as CameraFrame, yd as CapStyleType, D as ChangeDecimalToValue, f as ChangeSpeed, ka as ChangingDecimal, Nu as ChoroplethMap, Dr as Circle, ku as Circumscribe, Va as Clickable, fl as ClockwiseTransform, Ga as Code, dl as ColorScale, Go as ComplexHomotopy, Hn as ComplexPlane, fn as ComplexValueTracker, Ae as Cone, mm as Controls, tn as ConvexHull, Hs as ConvexHull3D, ts as CounterclockwiseTransform, cm as Create, Cf as Cross, p as Cube, sf as CubicBezier, Ec as CurvedArrow, G as CurvedDoubleArrow, Me as CurvesAsSubmobjects, fo as Cutout, Xu as CyclicReplace, Nr as Cylinder, Fo as DARKER_GRAY, si as DARK_BLUE, ie as DARK_BROWN, fc as DARK_GRAY, ko as DEFAULT_ANIMATION_DURATION, Ou as DEFAULT_ARROW_TIP_LENGTH, wt as DEFAULT_ASPECT_RATIO, bt as DEFAULT_COLOR_SCHEME, ol as DEFAULT_DASH_LENGTH, Gc as DEFAULT_DOT_RADIUS, ti as DEFAULT_FONT_SIZE, i as DEFAULT_FPS, hc as DEFAULT_FRAME_HEIGHT, Df as DEFAULT_FRAME_WIDTH, Wu as DEFAULT_MOBJECT_TO_EDGE_BUFFER, Xd as DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Sl as DEFAULT_PIXEL_HEIGHT, ds as DEFAULT_PIXEL_WIDTH, Xo as DEFAULT_POINTWISE_FUNCTION_RUN_TIME, rp as DEFAULT_POINT_DENSITY_1D, Jp as DEFAULT_POINT_DENSITY_2D, Ts as DEFAULT_SMALL_DOT_RADIUS, ad as DEFAULT_STROKE_WIDTH, Np as DEFAULT_WAIT_TIME, Li as DEGREES, Pn as DL, gi as DOWN, rm as DR, lu as DashedLine, Is as DashedVMobject, kf as DecimalMatrix, li as DecimalNumber, np as DecimalTable, je as Degrees, xl as DiGraph, Kn as DiceFace, Cr as Difference, Fp as Dodecahedron, vl as Dot, hu as Dot3D, xn as DoubleArrow, cn as Draggable, T as DrawBorderThenFill, ut as Elbow, $f as Ellipse, Wl as Exclusion, Cs as ExportSettingsPanel, jp as FPS_PRESETS, Sr as FadeIn, Pe as FadeOut, an as FadeToColor, xc as FadeTransform, dd as FadeTransformPieces, Kc as Flash, Cl as FocusOn, ia as FullScreenFadeRectangle, Pa as FullScreenRectangle, Bp as FunctionGraph, wf as GOLD, Vu as GOLD_A, qd as GOLD_B, yl as GOLD_C, cs as GOLD_D, nd as GOLD_E, cf as GRAY, Ls as GRAY_A, uu as GRAY_B, zf as GRAY_C, Zs as GRAY_D, Dc as GRAY_E, gd as GREEN, Tu as GREEN_A, rl as GREEN_B, Hc as GREEN_C, qo as GREEN_D, ep as GREEN_E, id as GenericGraph, zd as GeoMap, tt as GifExporter, gf as Globe, qa as GlyphVMobject, kc as GradientVMobject, us as Graph, Sp as Group, cu as GrowArrow, Ml as GrowFromCenter, Lf as GrowFromEdge, Xs as GrowFromPoint, me as HEAVY, Ld as HSV, L as Hexagon, Qf as Homotopy, Cn as Hoverable, b as IN, vp as ITALIC, zi as Icosahedron, Iu as ImageMobject, fd as ImplicitFunction, ip as Indicate, oe as Integer, Ku as IntegerMatrix, qp as IntegerTable, ef as InteractiveScene, de as Intersection, df as LARGE_BUFF, Sa as LEFT, Qi as LIGHT, Gp as LIGHTER_GRAY, Ss as LIGHT_BROWN, Ap as LIGHT_GRAY, Pi as LIGHT_PINK, n as Label, N as LabeledArrow, up as LabeledDot, Wi as LabeledLine, Fe as LabeledPolygram, of as LaggedStart, Gd as LaggedStartMap, ss as LargeDot, Ju as Lighting, on as Line, Ds as Line3D, He as LineJointType, Qc as LinearBase, la as LinearTransformationScene, Lc as LogBase, R as MANIM_BACKGROUND, hp as MAROON, Yi as MAROON_A, ze as MAROON_B, Te as MAROON_C, Or as MAROON_D, Yl as MAROON_E, Oe as MEDIUM, Bs as MED_LARGE_BUFF, pu as MED_SMALL_BUFF, Dn as MONOKAI_COLOR_SCHEME, zt as MandelbrotSet, B as ManimBanner, pn as ManimColor, km as ManimScene, bm as ManimSceneElement, jm as ManimWebPlugin, Nl as MappingCamera, O as MarkdownText, au as MarkupText, ue as MasterTimeline, ws as MathTable, rf as MathTex, St as MathTexImage, Ft as MathTexPart, Ms as MathTexSVG, oc as MathTypst, Qd as Matrix, Rn as MatrixTracker, el as Mobject, pi as Mobject1D, jn as Mobject2D, rr as Mobject3D, wl as MobjectMatrix, Mp as MobjectTable, ps as ModelMobject, jt as MovablePoint, qi as MoveAlongPath, st as MoveToTarget, Ce as MoveToTargetPosition, Zn as MovingCamera, go as MovingCameraScene, fr as MultiCamera, Pr as Munits, jr as NORMAL, Je as NewtonFractal, Vi as NullRenderer, _s as NumberLine, bu as NumberPlane, Ql as OBLIQUE, c as ORANGE, Dt as ORIGIN, sa as OUT, ge as Octahedron, jf as OrbitControls, ya as PGroup, d as PI, Pl as PINK, Hd as PMobject, Qn as PURE_BLUE, pr as PURE_GREEN, Ur as PURE_RED, et as PURPLE, Gt as PURPLE_A, Ln as PURPLE_B, yi as PURPLE_C, om as PURPLE_D, C as PURPLE_E, Pf as Paragraph, Sc as ParametricFunction, cl as ParametricSurface, mp as Pentagon, tu as Percent, Up as PhaseFlow, m as Pixels, hm as PlaybackControls, Jo as Player, tp as PlayerController, Kp as PlayerUI, em as PointCloudDot, _ as PointMobject, wi as PolarPlane, Ji as Polygon, Ni as Polygram, bp as Polyhedron, Wf as Prism, fs as Pulse, Fi as QUALITY_PRESETS, Ta as RED, At as RED_A, ua as RED_B, Ba as RED_C, ht as RED_D, Sn as RED_E, z as RESOLUTION_PRESETS, Co as RGBA, La as RIGHT, so as RandomColorGenerator, ri as Rectangle, Re as RegularPolygon, Xa as RegularPolygram, Ri as Remove, Da as RemoveTextLetterByLetter, ve as Renderer, Qt as ReplacementTransform, ho as Restore, _n as RightAngle, Qe as Rotate, he as Rotating, Do as RoundedRectangle, Ll as SCALE_FACTOR_PER_FONT_POINT, tr as SEMIBOLD, gr as SEMILIGHT, Hf as SMALL_BUFF, Kr as START_X, rt as START_Y, fu as SVGMobject, Lr as SampleSpace, Xn as Scale, Ho as ScaleBase, $a as ScaleInPlace, W as Scene, hf as SceneStateManager, lt as ScreenRectangle, nl as Sector, El as SelectionManager, Er as Shift, ai as ShowCreationThenDestruction, Zi as ShowIncreasingSubsets, Ve as ShowPartial, Uf as ShowPassingFlash, Gu as ShowPassingFlashWithThinningStrokeWidth, De as ShowSubmobjectsOneByOne, Ao as ShrinkToCenter, ha as SingleStringMathTex, w as Slider, td as SmallDot, bs as SmoothedVectorizedHomotopy, Bo as SpecialThreeDScene, zl as Sphere, Tc as SpinInFromNothing, Ar as SpiralIn, Hr as SplitScreenCamera, ee as Square, $r as Star, aa as StealthTip, Jr as StreamLines, os as Succession, U as Surface, U as Surface3D, qc as SurfacePresets, Bu as SurroundingRectangle, nf as Swap, Jt as TAU, jd as TEAL, sn as TEAL_A, _o as TEAL_B, to as TEAL_C, Mo as TEAL_D, ii as TEAL_E, Bn as THIN, Ht as THREE, Ii as Table, Ed as TangentLine, Rf as TangentialArc, ea as Tetrahedron, Zu as Tex, rn as TexFontTemplates, mo as TexTemplate, Qa as TexTemplateLibrary, Ma as Text, _a as TextGlyphGroup, xd as TexturedSurface, Mc as ThreeDAxes, $e as ThreeDCamera, yc as ThreeDScene, nc as ThreeDVMobject, Yc as Timeline, kp as TipableVMobject, Aa as Title, We as Torus, Vn as TracedPath, Wn as Transform, ni as TransformAnimations, yu as TransformFromCopy, kd as TransformMatchingAbstractBase, Ca as TransformMatchingCode, ca as TransformMatchingShapes, Ra as TransformMatchingTex, we as Triangle, Gr as TypeWithCursor, vf as Typst, ft as UL, Si as ULTRABOLD, lm as ULTRAHEAVY, E as ULTRALIGHT, yn as UP, Od as UR, Mt as Uncreate, Kd as Underline, kl as Union, Tp as UnitInterval, nt as UntypeWithCursor, fa as Unwrite, ae as UpdateFromAlphaFunc, Sf as UpdateFromFunc, na as VDict, Ps as VGroup, su as VMobject, Vf as VMobjectFromSVGPath, So as ValueTracker, Id as Variable, Ad as Vector, Xp as Vector3D, at as VectorField, qs as VectorFieldVector, za as VectorScene, Ke as VectorizedPoint, mr as VideoExporter, Ya as VideoMobject, In as Voiceover, Wt as VoiceoverScene, te as WHITE, yp as Wait, Ee as WebCodecsExporter, vi as WebSpeechSynthesizer, jc as Wiggle, no as WiggleOutThenIn, Ha as Write, Oa as X_AXIS, lc as YELLOW, xf as YELLOW_A, Ru as YELLOW_B, Wd as YELLOW_C, gl as YELLOW_D, as as YELLOW_E, Nt as Y_AXIS, pa as Z_AXIS, eo as ZoomDisplayPopOut, jo as ZoomedScene, $i as add, _t as addTextLetterByLetter, Zl as addTextWordByWord, Ki as addVec, Bl as adjacentNTuples, ir as adjacentPairs, yr as allElementsAreInstances, dn as always, Io as alwaysRedraw, Wa as alwaysRotate, yt as alwaysShift, hn as angleAxisFromQuaternion, wd as angleBetweenVectors, $t as angleOfVector, Ci as animatedBoundary, sp as animationGroup, Wo as applyBlendMode, Oi as applyComplexFunction, M as applyFunction, lp as applyMatrix, bi as applyMatrixLive, Ui as applyMethod, x as applyPointwiseFunction, _i as applyPointwiseFunctionToCenter, mu as applyWave, ce as areKatexStylesLoaded, xo as assertIsMobjectMethod, ui as averageColor, Ne as bezier, ye as bezierRemap, An as binarySearch, Eo as binaryTree, Qr as bipartiteGraph, Zf as blendModeToThree, Of as blink, Ue as broadcast, Lt as buildStyledTextLines, lo as cartesianToSpherical, Ja as centerOfMass, Pt as changeDecimalToValue, Rl as changeSpeed, ma as changingDecimal, fi as choose, Be as chooseVideoExporterStrategy, sl as circumscribe, nu as clearAnimationOverrides, $p as clip, va as clockwisePath, js as clockwiseTransform, If as colorGradient, se as colorToIntRgb, pc as colorToIntRgba, Tf as colorToRgb, Hu as colorToRgba, To as compassDirections, t as completeGraph, Zr as complexFuncToR3Func, Op as complexHomotopy, e as complexToR3, oo as complexValueTracker, rs as compose, uf as computeCircularLayout, zs as computeLayout, Yr as concatenateLists, Ct as counterclockwisePath, iu as counterclockwiseTransform, wn as create, sr as createDiceRow, gn as createFadeToBlack, Td as createFadeToWhite, Kt as createGifExporter, Wr as createVideoExporter, kr as createWebCodecsExporter, H as cross, H as crossVec, vc as cross2d, bf as cubicBezier, En as cycleAnimation, mc as cycleGraph, Nf as cyclicReplace, Ws as deserializeMobject, ru as deserializeScene, As as deserializeSceneMobject, sd as detectModelFormat, qn as difference, Se as dotVec, Qu as doubleSmooth, Xl as downloadBlob, Nd as drawBorderThenFill, Su as earclipTriangulation, Lu as ease, q as easeIn, q as easeInCubic, Ns as easeInBack, Ud as easeInBezier, ou as easeInBounce, Ff as easeInCirc, Js as easeInElastic, Cc as easeInExpo, K as easeInOut, K as easeInOutCubic, xu as easeInOutBack, hl as easeInOutBezier, $c as easeInOutBounce, Rc as easeInOutCirc, Uo as easeInOutElastic, Xf as easeInOutExpo, Vp as easeInOutQuad, vs as easeInOutQuart, Ep as easeInOutQuint, Ai as easeInOutSine, P as easeInQuad, dp as easeInQuart, Gi as easeInQuint, Ie as easeInSine, V as easeOut, V as easeOutCubic, wr as easeOutBack, is as easeOutBezier, Gl as easeOutBounce, fe as easeOutCirc, Al as easeOutElastic, Jn as easeOutExpo, lr as easeOutQuad, zr as easeOutQuart, Xe as easeOutQuint, Vt as easeOutSine, nr as emphasizeRegion, sc as ensureKatexStyles, es as equirectangular, cr as exclusion, Nn as exponentialDecay, l as exportAndDownloadPNG, Fl as exportFramePNG, $n as exportPNGSequence, tf as exteriorRings, _e as extractMobjectFamilyMembers, ao as fAlways, Ul as fadeIn, be as fadeOut, a as fadeToColor, Zc as fadeTransform, Ic as fadeTransformPieces, Af as findIntersection, Zo as flash, od as focusOn, qf as get3dVmobEndCorner, Rp as get3dVmobEndCornerIndex, hs as get3dVmobEndCornerUnitNormal, Cp as get3dVmobGradientStartAndEndPoints, Di as get3dVmobStartCorner, j as get3dVmobStartCornerIndex, cp as get3dVmobStartCornerUnitNormal, Hi as get3dVmobUnitNormal, Hp as getActiveTheme, h as getAnimationOverride, oi as getDetText, _d as getFeatureFlags, bc as getSerializableTypes, ud as getSerializer, Ro as getShadedRgb, pd as getSmoothCubicBezierHandlePoints, am as getSpeechSynthesizer, ys as getTheme, Dp as getThemeNames, qu as getUnitNormal, $d as getWindingNumber, Ef as gridGraph, md as growArrow, dr as growFromCenter, Cu as growFromEdge, tl as growFromPoint, Vl as hasAnimationOverride, ot as hashObj, Jd as hexToRgb, Mi as homotopy, bl as hsvToRgb, xp as indexLabels, Yp as indicate, Ys as integerInterpolate, xr as interpolate, ls as interpolateColor, Rr as intersection, Hl as inverseInterpolate, rd as invertColor, le as isClosed, Eu as isFeatureEnabled, kn as isMathJaxLoaded, S as isSpeechSupported, Fu as isTypstLoaded, Rd as katexCanRender, Fs as laggedStart, _l as laggedStartMap, Tr as lengthVec, Tl as lineIntersection, hi as linear, _r as linearSpeedRamp, nm as lingering, Kl as linspace, Zt as listDifferenceUpdate, Un as listUpdate, Ti as listify, _m as logger, ci as maintainPositionRelativeTo, gt as makeClickable, vo as makeDraggable, fm as makeEven, k as makeEvenByCycling, Md as makeHoverable, sm as makeMatrixTracker, da as makeMovablePoint, Ea as makeSlider, gm as manimElementInternals, Ol as masterTimeline, Dl as matchInterpolate, re as matrixToMobject, _c as matrixToTexString, Yu as mercator, Gn as mid, ms as midpoint, Le as moveAlongPath, Ei as moveToTarget, ql as moveToTargetPosition, cd as normSquared, mf as normalize, pe as normalizeVec, y as notQuiteThere, ym as onLog, jl as orientation2D, Yn as orthonormalFrame, ar as overrideAnimate, br as overrideAnimation, kt as parseBookmarks, zo as parseSVGPathData, wc as partialBezierPoints, ra as pathAlongArc, Na as pathAlongCircles, Uu as pathGraph, Us as perpendicularBisector, I as phaseFlow, or as pointLiesOnBezier, ja as powerset, mn as preloadMathJax, Vd as preloadTypst, Xr as prepareAnimation, ta as printFamily, Ir as proportionsAlongBezierCurveForPoint, ff as pulse, gp as qualityToBitrate, gu as quaternionConjugate, Gf as quaternionFromAngleAxis, rc as quaternionMult, Nc as r3ToComplex, lf as randomBrightColor, Rs as randomColor, Fc as registerFont, vm as registerManimElement, vu as registerSerializableMobject, ji as registerTheme, Sd as regularVertices, ke as remove, It as removeListRedundancies, ga as removeNones, ln as removeTextLetterByLetter, wo as renderLatexToSVG, pl as renderTypstToSVG, pm as replacementTransform, il as resetFeatureFlags, F as resetThemes, Xi as resolveResolution, ac as restore, _u as restoreMobjectState, Ge as restructureListToExcludeCertainFamilyMembers, xa as reverse, du as rgbToColor, Bf as rgbToHex, Qs as rgbToHsv, Oc as rgbaToColor, Ut as rotate, ju as rotateVector, Mr as rotating, ll as rotationAboutZ, Jc as rotationMatrix, Qo as rotationMatrixTranspose, Et as runningStart, oa as rushFrom, Ia as rushInto, qr as rushRegion, Kf as saveMobjectState, Vr as scale, _f as scaleInPlace, ur as scaleVec, ic as serializeMobject, Gs as serializeScene, Mf as serializeSceneMobject, Uc as setFeatureFlags, uo as setGifDecoder, yf as setKatexStylesheetUrl, co as setMathJaxScriptUrl, pf as setModelLoaderFactory, wa as setSpeechSynthesizer, fp as setTheme, ns as setTypstCompiler, o as shift, op as shoelace, Zp as shoelaceDirection, ne as showCreationThenDestruction, u as showIncreasingSubsets, Il as showPartial, tc as showPassingFlash, Zd as showPassingFlashWithThinningStrokeWidth, er as showSubmobjectsOneByOne, Pu as shrinkToCenter, g as sigmoid, dt as slowInto, vn as smooth, it as smoothSpeedCurve, pp as smoothedVectorizedHomotopy, Dd as smoothererstep, nn as smootherstep, po as smoothstep, Pc as snapshotFromJSON, Cd as snapshotToJSON, Os as sphericalToCartesian, Bc as spinInFromNothing, hr as spiralIn, qe as splitBezier, af as spring, Za as squishRateFunc, Yd as starGraph, Mu as stateFromJSON, ul as stateToJSON, Oo as stepFunction, $u as steps, ct as straightPath, Ka as stretchArrayToLength, Br as subVec, Rt as subdivideBezier, ed as succession, $s as svgMobject, di as svgToVMobjects, Ks as swap, Au as texturedSphere, ei as thereAndBack, r as thereAndBackWithPause, Ip as thickDiagonal, um as tracedPath, A as transform, Bd as transformAnimations, Vo as transformFromCopy, Ot as transformMatchingCode, pt as transformMatchingShapes, bn as transformMatchingTex, xt as tuplify, Fd as turnAnimationIntoUpdater, qt as typeWithCursor, yo as uncreate, Ye as union, On as uniqChain, Ze as unitPerpendicularTo, Xc as unregisterSerializableMobject, zn as untypeWithCursor, ro as unwrite, uc as updateFromAlphaFunc, zu as updateFromFunc, Dm as useAnimation, Am as useInjectedScene, Em as useMobject, Q as useScene, Om as useUpdater, Lo as valueTracker, $l as wait, bd as wiggle, No as wiggleOutThenIn, cc as wiggleRate, Po as write, Bi as zToVector };
|
|
@@ -10219,7 +10219,7 @@ var V = class e extends jm {
|
|
|
10219
10219
|
let t = e.stiffness ?? Ph, n = e.damping ?? Fh, r = e.mass ?? Ih;
|
|
10220
10220
|
return {
|
|
10221
10221
|
omega0: Math.sqrt(t / r),
|
|
10222
|
-
zeta: n / (2 * Math.sqrt(t * r))
|
|
10222
|
+
zeta: Math.max(n / (2 * Math.sqrt(t * r)), .001)
|
|
10223
10223
|
};
|
|
10224
10224
|
}, Bh = (e, t) => {
|
|
10225
10225
|
if (t < .999999) {
|
|
@@ -77316,4 +77316,262 @@ function KV(e, t) {
|
|
|
77316
77316
|
//#region src/serialization/index.ts
|
|
77317
77317
|
IV();
|
|
77318
77318
|
//#endregion
|
|
77319
|
-
export { kI as Add, Zj as AddTextLetterByLetter, uM as AddTextWordByWord, rO as Angle, wT as AnimateProxy, vI as AnimatedBoundary, AN as AnimatedImageMobject, o_ as Animation, zT as AnimationGroup, HO as AnnotationDot, jD as AnnularSector, AD as Annulus, dP as ApplyComplexFunction, lP as ApplyFunction, hP as ApplyMatrix, pP as ApplyMethod, aF as ApplyPointwiseFunction, cF as ApplyPointwiseFunctionToCenter, YI as ApplyWave, DD as Arc, OD as ArcBetweenPoints, AM as ArcBrace, ND as ArcPolygon, ID as ArcPolygonFromArcs, qE as Arrow, YA as Arrow3D, pO as ArrowCircleFilledTip, fO as ArrowCircleTip, hO as ArrowSquareFilledTip, mO as ArrowSquareTip, lO as ArrowTip, dO as ArrowTriangleFilledTip, uO as ArrowTriangleTip, AA as ArrowVectorField, ZT as AudioManager, ek as Axes, yl as BLACK, np as BLEND_MODES, jl as BLUE, Tl as BLUE_A, El as BLUE_B, Dl as BLUE_C, Ol as BLUE_D, kl as BLUE_E, Bu as BOLD, Yu as BOOK, KD as BackgroundRectangle, EA as BarChart, rL as Blink, vO as BooleanResult, zA as Box3D, OM as Brace, kM as BraceBetweenPoints, jM as BraceLabel, MM as BraceText, LI as Broadcast, bA as BulletedList, IT as Camera2D, PT as Camera2DFrame, FT as Camera3D, vD as CameraAnimateProxy, gD as CameraFrame, sd as CapStyleType, pI as ChangeDecimalToValue, CI as ChangeSpeed, fI as ChangingDecimal, yD as Circle, UI as Circumscribe, vL as Clickable, CP as ClockwiseTransform, _A as Code, jF as ComplexHomotopy, CA as ComplexPlane, eA as ComplexValueTracker, VA as Cone, fL as Controls, nO as ConvexHull, bj as ConvexHull3D, TP as CounterclockwiseTransform, Vj as Create, YD as Cross, RA as Cube, HD as CubicBezier, LD as CurvedArrow, RD as CurvedDoubleArrow, OT as CurvesAsSubmobjects, tO as Cutout, AP as CyclicReplace, BA as Cylinder, wl as DARKER_GRAY, Ml as DARK_BLUE, Du as DARK_BROWN, Cl as DARK_GRAY, ud as DEFAULT_ANIMATION_DURATION, Ru as DEFAULT_ARROW_TIP_LENGTH, jN as DEFAULT_ASPECT_RATIO, cA as DEFAULT_COLOR_SCHEME, Lu as DEFAULT_DASH_LENGTH, Fu as DEFAULT_DOT_RADIUS, ld as DEFAULT_FONT_SIZE, hd as DEFAULT_FPS, fd as DEFAULT_FRAME_HEIGHT, dd as DEFAULT_FRAME_WIDTH, bd as DEFAULT_MOBJECT_TO_EDGE_BUFFER, xd as DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, md as DEFAULT_PIXEL_HEIGHT, pd as DEFAULT_PIXEL_WIDTH, ed as DEFAULT_POINTWISE_FUNCTION_RUN_TIME, nd as DEFAULT_POINT_DENSITY_1D, td as DEFAULT_POINT_DENSITY_2D, Iu as DEFAULT_SMALL_DOT_RADIUS, cd as DEFAULT_STROKE_WIDTH, $u as DEFAULT_WAIT_TIME, ju as DEGREES, Id as DL, Od as DOWN, Ld as DR, BD as DashedLine, VD as DashedVMobject, Nj as DecimalMatrix, Yk as DecimalNumber, EM as DecimalTable, Dz as Degrees, fN as DiGraph, QN as DiceFace, wO as Difference, qA as Dodecahedron, UD as Dot, aj as Dot3D, JE as DoubleArrow, mL as Draggable, Uj as DrawBorderThenFill, aO as Elbow, kD as Ellipse, TO as Exclusion, oR as ExportSettingsPanel, tR as FPS_PRESETS, iP as FadeIn, oP as FadeOut, RP as FadeToColor, _P as FadeTransform, yP as FadeTransformPieces, VI as Flash, ZI as FocusOn, PN as FullScreenFadeRectangle, NN as FullScreenRectangle, KO as FunctionGraph, ru as GOLD, Ql as GOLD_A, $l as GOLD_B, eu as GOLD_C, tu as GOLD_D, nu as GOLD_E, Sl as GRAY, ml as GRAY_A, hl as GRAY_B, gl as GRAY_C, _l as GRAY_D, vl as GRAY_E, Gl as GREEN, zl as GREEN_A, Bl as GREEN_B, Vl as GREEN_C, Hl as GREEN_D, Ul as GREEN_E, uN as GenericGraph, zL as GifExporter, vw as GlyphVMobject, BM as GradientVMobject, dN as Graph, jT as Group, RF as GrowArrow, hF as GrowFromCenter, BF as GrowFromEdge, HF as GrowFromPoint, Gu as HEAVY, rz as HSV, CD as Hexagon, AF as Homotopy, gL as Hoverable, Md as IN, Zu as ITALIC, KA as Icosahedron, l_ as ImageMobject, ak as ImplicitFunction, zI as Indicate, Xk as Integer, Mj as IntegerMatrix, TM as IntegerTable, tE as InteractiveScene, CO as Intersection, yd as LARGE_BUFF, kd as LEFT, Hu as LIGHT, bl as LIGHTER_GRAY, Eu as LIGHT_BROWN, xl as LIGHT_GRAY, wu as LIGHT_PINK, XD as Label, BO as LabeledArrow, VO as LabeledDot, zO as LabeledLine, UO as LabeledPolygram, qF as LaggedStart, ZF as LaggedStartMap, GD as LargeDot, nE as Lighting, UE as Line, JA as Line3D, od as LineJointType, nk as LinearBase, ZE as LinearTransformationScene, rk as LogBase, Ou as MANIM_BACKGROUND, gu as MAROON, du as MAROON_A, fu as MAROON_B, pu as MAROON_C, mu as MAROON_D, hu as MAROON_E, Uu as MEDIUM, vd as MED_LARGE_BUFF, _d as MED_SMALL_BUFF, lA as MONOKAI_COLOR_SCHEME, WN as MandelbrotSet, bM as ManimBanner, tz as ManimColor, yV as ManimSceneElement, mD as MappingCamera, SA as MarkdownText, Ek as MarkupText, eP as MasterTimeline, CM as MathTable, Mk as MathTex, ZC as MathTexImage, yA as MathTexPart, Nk as MathTexSVG, Kk as MathTypst, jj as Matrix, ML as MatrixTracker, cp as Mobject, BN as Mobject1D, VN as Mobject2D, IA as Mobject3D, Pj as MobjectMatrix, wM as MobjectTable, Aj as ModelMobject, bL as MovablePoint, CF as MoveAlongPath, hT as MoveToTarget, yF as MoveToTargetPosition, dD as MovingCamera, LE as MovingCameraScene, pD as MultiCamera, Oz as Munits, zu as NORMAL, JN as NewtonFractal, NT as NullRenderer, WO as NumberLine, ik as NumberPlane, Qu as OBLIQUE, Tu as ORANGE, Nd as ORIGIN, jd as OUT, GA as Octahedron, DE as OrbitControls, LN as PGroup, ku as PI, Cu as PINK, s_ as PMobject, Al as PURE_BLUE, Wl as PURE_GREEN, lu as PURE_RED, Su as PURPLE, _u as PURPLE_A, vu as PURPLE_B, yu as PURPLE_C, bu as PURPLE_D, xu as PURPLE_E, uk as Paragraph, ok as ParametricFunction, $A as ParametricSurface, wD as Pentagon, Az as Percent, NF as PhaseFlow, Ez as Pixels, pL as PlaybackControls, CR as Player, yR as PlayerController, sR as PlayerUI, zN as PointCloudDot, RN as PointMobject, wA as PolarPlane, bD as Polygon, TD as Polygram, UA as Polyhedron, ij as Prism, $I as Pulse, nR as QUALITY_PRESETS, uu as RED, iu as RED_A, au as RED_B, ou as RED_C, su as RED_D, cu as RED_E, eR as RESOLUTION_PRESETS, nz as RGBA, Ad as RIGHT, oz as RandomColorGenerator, jE as Rectangle, SD as RegularPolygon, eO as RegularPolygram, jI as Remove, $j as RemoveTextLetterByLetter, MT as Renderer, pT as ReplacementTransform, IP as Restore, iO as RightAngle, uF as Rotate, FI as Rotating, ZD as RoundedRectangle, rd as SCALE_FACTOR_PER_FONT_POINT, Wu as SEMIBOLD, Ju as SEMILIGHT, gd as SMALL_BUFF, id as START_X, ad as START_Y, $M as SVGMobject, XN as SampleSpace, pF as Scale, tk as ScaleBase, MP as ScaleInPlace, $T as Scene, JT as SceneStateManager, MN as ScreenRectangle, MD as Sector, eE as SelectionManager, _F as Shift, aL as ShowCreationThenDestruction, fM as ShowIncreasingSubsets, mM as ShowPartial, qI as ShowPassingFlash, tL as ShowPassingFlashWithThinningStrokeWidth, gM as ShowSubmobjectsOneByOne, PP as ShrinkToCenter, vA as SingleStringMathTex, EL as Slider, WD as SmallDot, MF as SmoothedVectorizedHomotopy, lV as SpecialThreeDScene, LA as Sphere, WF as SpinInFromNothing, vM as SpiralIn, hD as SplitScreenCamera, ME as Square, QD as Star, gO as StealthTip, FA as StreamLines, YF as Succession, QA as Surface, QA as Surface3D, ej as SurfacePresets, qD as SurroundingRectangle, DP as Swap, Au as TAU, Rl as TEAL, Nl as TEAL_A, Pl as TEAL_B, Fl as TEAL_C, Il as TEAL_D, Ll as TEAL_E, Vu as THIN, qa as THREE, SM as Table, oO as TangentLine, zD as TangentialArc, WA as Tetrahedron, Pk as Tex, wd as TexFontTemplates, Sd as TexTemplate, Td as TexTemplateLibrary, Bw as Text, bw as TextGlyphGroup, tj as TexturedSurface, rj as ThreeDAxes, fD as ThreeDCamera, AE as ThreeDScene, oj as ThreeDVMobject, VT as Timeline, ED as TipableVMobject, xA as Title, HA as Torus, gI as TracedPath, dT as Transform, BP as TransformAnimations, xP as TransformFromCopy, HP as TransformMatchingAbstractBase, nF as TransformMatchingCode, YP as TransformMatchingShapes, QP as TransformMatchingTex, xD as Triangle, aM as TypeWithCursor, Gk as Typst, Pd as UL, Xu as ULTRABOLD, Ku as ULTRAHEAVY, qu as ULTRALIGHT, Dd as UP, Fd as UR, Gj as Uncreate, JD as Underline, SO as Union, GO as UnitInterval, sM as UntypeWithCursor, Yj as Unwrite, eI as UpdateFromAlphaFunc, QF as UpdateFromFunc, kT as VDict, Nh as VGroup, V as VMobject, QM as VMobjectFromSVGPath, Qk as ValueTracker, rA as Variable, YE as Vector, XA as Vector3D, kA as VectorField, sk as VectorFieldVector, XE as VectorScene, AT as VectorizedPoint, HL as VideoExporter, bN as VideoMobject, lD as Voiceover, uD as VoiceoverScene, pl as WHITE, NI as Wait, ZL as WebCodecsExporter, nD as WebSpeechSynthesizer, GI as Wiggle, uL as WiggleOutThenIn, qj as Write, Mu as X_AXIS, Zl as YELLOW, Kl as YELLOW_A, ql as YELLOW_B, Jl as YELLOW_C, Yl as YELLOW_D, Xl as YELLOW_E, Nu as Y_AXIS, Pu as Z_AXIS, FE as ZoomDisplayPopOut, IE as ZoomedScene, AI as add, Qj as addTextLetterByLetter, dM as addTextWordByWord, Kd as addVec, cz as adjacentNTuples, lz as adjacentPairs, vz as allElementsAreInstances, aI as always, rI as alwaysRedraw, lI as alwaysRotate, cI as alwaysShift, Uz as angleAxisFromQuaternion, Zz as angleBetweenVectors, Xz as angleOfVector, yI as animatedBoundary, BT as animationGroup, ip as applyBlendMode, fP as applyComplexFunction, uP as applyFunction, gP as applyMatrix, FL as applyMatrixLive, mP as applyMethod, oF as applyPointwiseFunction, lF as applyPointwiseFunctionToCenter, XI as applyWave, OC as areKatexStylesLoaded, oI as assertIsMobjectMethod, UR as averageColor, NB as bezier, IB as bezierRemap, CB as binarySearch, _N as binaryTree, yN as bipartiteGraph, rp as blendModeToThree, iL as blink, RI as broadcast, ww as buildStyledTextLines, uB as cartesianToSpherical, iB as centerOfMass, hI as changeDecimalToValue, wI as changeSpeed, mI as changingDecimal, wB as choose, $L as chooseVideoExporterStrategy, WI as circumscribe, ST as clearAnimationOverrides, TB as clip, xB as clockwisePath, wP as clockwiseTransform, Sh as colorGradient, LR as colorToIntRgb, RR as colorToIntRgba, FR as colorToRgb, IR as colorToRgba, $z as compassDirections, pN as completeGraph, rB as complexFuncToR3Func, FF as complexHomotopy, tB as complexToR3, nA as complexValueTracker, bg as compose, nN as computeCircularLayout, tN as computeLayout, yz as concatenateLists, SB as counterclockwisePath, EP as counterclockwiseTransform, Hj as create, $N as createDiceRow, FN as createFadeToBlack, IN as createFadeToWhite, BL as createGifExporter, UL as createVideoExporter, QL as createWebCodecsExporter, Yd as cross, Yd as crossVec, zz as cross2d, Zh as cubicBezier, dI as cycleAnimation, mN as cycleGraph, jP as cyclicReplace, UT as deserializeMobject, KV as deserializeScene, WV as deserializeSceneMobject, wj as detectModelFormat, OO as difference, Jd as dotVec, _g as doubleSmooth, JL as downloadBlob, Wj as drawBorderThenFill, ym as earclipTriangulation, Qh as ease, og as easeIn, og as easeInCubic, Zg as easeInBack, $h as easeInBezier, pg as easeInBounce, Gg as easeInCirc, n_ as easeInElastic, ug as easeInExpo, ag as easeInOut, ag as easeInOutCubic, $g as easeInOutBack, tg as easeInOutBezier, a_ as easeInOutBounce, qg as easeInOutCirc, i_ as easeInOutElastic, Wg as easeInOutExpo, Lg as easeInOutQuad, Bg as easeInOutQuart, Ug as easeInOutQuint, Ig as easeInOutSine, cg as easeInQuad, Rg as easeInQuart, Vg as easeInQuint, Pg as easeInSine, sg as easeOut, sg as easeOutCubic, Qg as easeOutBack, eg as easeOutBezier, fg as easeOutBounce, Kg as easeOutCirc, r_ as easeOutElastic, dg as easeOutExpo, lg as easeOutQuad, zg as easeOutQuart, Hg as easeOutQuint, Fg as easeOutSine, EI as emphasizeRegion, EC as ensureKatexStyles, kO as exclusion, Ag as exponentialDecay, YL as exportAndDownloadPNG, KL as exportFramePNG, qL as exportPNGSequence, jz as extractMobjectFamilyMembers, iI as fAlways, aP as fadeIn, sP as fadeOut, zP as fadeToColor, vP as fadeTransform, bP as fadeTransformPieces, sB as findIntersection, HI as flash, QI as focusOn, tV as get3dVmobEndCorner, $B as get3dVmobEndCornerIndex, iV as get3dVmobEndCornerUnitNormal, ZB as get3dVmobGradientStartAndEndPoints, eV as get3dVmobStartCorner, QB as get3dVmobStartCornerIndex, rV as get3dVmobStartCornerUnitNormal, nV as get3dVmobUnitNormal, $f as getActiveTheme, bT as getAnimationOverride, Fj as getDetText, kR as getFeatureFlags, TV as getSerializableTypes, wV as getSerializer, sz as getShadedRgb, gh as getSmoothCubicBezierHandlePoints, oD as getSpeechSynthesizer, Qf as getTheme, ep as getThemeNames, Qz as getUnitNormal, mB as getWindingNumber, vN as gridGraph, zF as growArrow, gF as growFromCenter, VF as growFromEdge, UF as growFromPoint, xT as hasAnimationOverride, Cz as hashObj, PR as hexToRgb, PF as homotopy, qR as hsvToRgb, Nz as indexLabels, BI as indicate, ph as integerInterpolate, DB as interpolate, HR as interpolateColor, DO as intersection, kB as inverseInterpolate, VR as invertColor, LB as isClosed, ER as isFeatureEnabled, UC as isMathJaxLoaded, eD as isSpeechSupported, Bk as isTypstLoaded, KC as katexCanRender, KF as laggedStart, XF as laggedStartMap, Xd as lengthVec, oB as lineIntersection, rg as linear, TI as linearSpeedRamp, kg as lingering, tf as linspace, dz as listDifferenceUpdate, fz as listUpdate, bz as listify, Gf as logger, nI as maintainPositionRelativeTo, yL as makeClickable, hL as makeDraggable, mz as makeEven, Sz as makeEvenByCycling, _L as makeHoverable, NL as makeMatrixTracker, CL as makeMovablePoint, OL as makeSlider, pV as manimElementInternals, tP as masterTimeline, AB as matchInterpolate, Ij as matrixToMobject, Lj as matrixToTexString, OB as mid, aB as midpoint, wF as moveAlongPath, gT as moveToTarget, bF as moveToTargetPosition, Rz as normSquared, Bz as normalize, Zd as normalizeVec, Og as notQuiteThere, Hf as onLog, ef as orientation2D, $d as orthonormalFrame, yT as overrideAnimate, vT as overrideAnimation, $E as parseBookmarks, AC as parseSVGPathData, fh as partialBezierPoints, bB as pathAlongArc, yB as pathAlongCircles, hN as pathGraph, fB as perpendicularBisector, LF as phaseFlow, JB as pointLiesOnBezier, _z as powerset, WC as preloadMathJax, Vk as preloadTypst, CT as prepareAnimation, Pz as printFamily, qB as proportionsAlongBezierCurveForPoint, eL as pulse, iR as qualityToBitrate, Wz as quaternionConjugate, Hz as quaternionFromAngleAxis, Vz as quaternionMult, nB as r3ToComplex, KR as randomBrightColor, GR as randomColor, uV as registerFont, bV as registerManimElement, SV as registerSerializableMobject, Xf as registerTheme, eB as regularVertices, MI as remove, uz as removeListRedundancies, xz as removeNones, eM as removeTextLetterByLetter, GC as renderLatexToSVG, Uk as renderTypstToSVG, mT as replacementTransform, OR as resetFeatureFlags, tp as resetThemes, aR as resolveResolution, LP as restore, XT as restoreMobjectState, Mz as restructureListToExcludeCertainFamilyMembers, yg as reverse, zR as rgbToColor, NR as rgbToHex, JR as rgbToHsv, BR as rgbaToColor, dF as rotate, Jz as rotateVector, II as rotating, Kz as rotationAboutZ, Gz as rotationMatrix, qz as rotationMatrixTranspose, Eg as runningStart, gg as rushFrom, hg as rushInto, DI as rushRegion, YT as saveMobjectState, mF as scale, NP as scaleInPlace, Gd as scaleVec, HT as serializeMobject, GV as serializeScene, UV as serializeSceneMobject, DR as setFeatureFlags, ON as setGifDecoder, wC as setKatexStylesheetUrl, BC as setMathJaxScriptUrl, Cj as setModelLoaderFactory, aD as setSpeechSynthesizer, Zf as setTheme, Rk as setTypstCompiler, vF as shift, cB as shoelace, lB as shoelaceDirection, oL as showCreationThenDestruction, pM as showIncreasingSubsets, hM as showPartial, JI as showPassingFlash, nL as showPassingFlashWithThinningStrokeWidth, _M as showSubmobjectsOneByOne, FP as shrinkToCenter, EB as sigmoid, Cg as slowInto, ig as smooth, OI as smoothSpeedCurve, IF as smoothedVectorizedHomotopy, Ng as smoothererstep, Mg as smootherstep, jg as smoothstep, qT as snapshotFromJSON, KT as snapshotToJSON, dB as sphericalToCartesian, GF as spinInFromNothing, yM as spiralIn, PB as splitBezier, Hh as spring, wg as squishRateFunc, gN as starGraph, GT as stateFromJSON, WT as stateToJSON, vg as stepFunction, ng as steps, vB as straightPath, hz as stretchArrayToLength, qd as subVec, FB as subdivideBezier, JF as succession, eN as svgMobject, PC as svgToVMobjects, OP as swap, nj as texturedSphere, mg as thereAndBack, Tg as thereAndBackWithPause, pB as thickDiagonal, _I as tracedPath, fT as transform, VP as transformAnimations, SP as transformFromCopy, rF as transformMatchingCode, XP as transformMatchingShapes, $P as transformMatchingTex, pz as tuplify, uI as turnAnimationIntoUpdater, oM as typeWithCursor, Kj as uncreate, EO as union, gz as uniqChain, Qd as unitPerpendicularTo, CV as unregisterSerializableMobject, cM as untypeWithCursor, Xj as unwrite, tI as updateFromAlphaFunc, $F as updateFromFunc, tA as valueTracker, PI as wait, KI as wiggle, dL as wiggleOutThenIn, Dg as wiggleRate, Jj as write, Yz as zToVector };
|
|
77319
|
+
//#region src/mobjects/geo/geojson.ts
|
|
77320
|
+
function qV(e) {
|
|
77321
|
+
if (e.type === "Polygon") {
|
|
77322
|
+
let t = e.coordinates[0];
|
|
77323
|
+
return t ? [t] : [];
|
|
77324
|
+
}
|
|
77325
|
+
let t = [];
|
|
77326
|
+
for (let n of e.coordinates) {
|
|
77327
|
+
let e = n[0];
|
|
77328
|
+
e && t.push(e);
|
|
77329
|
+
}
|
|
77330
|
+
return t;
|
|
77331
|
+
}
|
|
77332
|
+
//#endregion
|
|
77333
|
+
//#region src/mobjects/geo/projections.ts
|
|
77334
|
+
var JV = Math.PI / 180;
|
|
77335
|
+
function YV(e = {}) {
|
|
77336
|
+
let { radius: t = 1, centerLon: n = 0, centerLat: r = 0, standardParallel: i = 0 } = e, a = Math.cos(i * JV);
|
|
77337
|
+
return ([e, i]) => [(e - n) * JV * t * a, (i - r) * JV * t];
|
|
77338
|
+
}
|
|
77339
|
+
function XV(e = {}) {
|
|
77340
|
+
let { radius: t = 1, centerLon: n = 0, maxLatitude: r = 85.05112878 } = e;
|
|
77341
|
+
return ([e, i]) => {
|
|
77342
|
+
let a = Math.max(-r, Math.min(r, i)) * JV;
|
|
77343
|
+
return [(e - n) * JV * t, t * Math.log(Math.tan(Math.PI / 4 + a / 2))];
|
|
77344
|
+
};
|
|
77345
|
+
}
|
|
77346
|
+
//#endregion
|
|
77347
|
+
//#region src/mobjects/geo/colorScale.ts
|
|
77348
|
+
var ZV = ["#0d1b2a", "#4cc9f0"], QV = class {
|
|
77349
|
+
_palette;
|
|
77350
|
+
_domain;
|
|
77351
|
+
constructor(e = {}) {
|
|
77352
|
+
let { colors: t = ZV, domain: n = [0, 1], samples: r = 256 } = e, i = Math.max(2, Math.floor(r));
|
|
77353
|
+
this._palette = Sh(t.length > 0 ? t : ZV, i), this._domain = [n[0], n[1]];
|
|
77354
|
+
}
|
|
77355
|
+
setDomainFromValues(e) {
|
|
77356
|
+
let t = Infinity, n = -Infinity;
|
|
77357
|
+
for (let r of e) Number.isFinite(r) && (r < t && (t = r), r > n && (n = r));
|
|
77358
|
+
return Number.isFinite(t) && Number.isFinite(n) && (this._domain = [t, n]), this;
|
|
77359
|
+
}
|
|
77360
|
+
getDomain() {
|
|
77361
|
+
return [this._domain[0], this._domain[1]];
|
|
77362
|
+
}
|
|
77363
|
+
colorFor(e) {
|
|
77364
|
+
let [t, n] = this._domain, r = n - t, i = r === 0 || !Number.isFinite(e) ? 0 : (e - t) / r;
|
|
77365
|
+
i = Math.max(0, Math.min(1, i));
|
|
77366
|
+
let a = Math.round(i * (this._palette.length - 1));
|
|
77367
|
+
return this._palette[a];
|
|
77368
|
+
}
|
|
77369
|
+
}, $V = class extends jT {
|
|
77370
|
+
_projection;
|
|
77371
|
+
_colorScale;
|
|
77372
|
+
_regions = [];
|
|
77373
|
+
_regionColors = [];
|
|
77374
|
+
_regionPolygons = [];
|
|
77375
|
+
constructor(e) {
|
|
77376
|
+
super();
|
|
77377
|
+
let { geojson: t, value: n, colorScale: r = ["#0d1b2a", "#4cc9f0"], domain: i, fillOpacity: a = 1, noDataColor: o = Sl, borderColor: s = "#1b263b", borderWidth: c = 1, projection: l = YV() } = e;
|
|
77378
|
+
this._projection = l;
|
|
77379
|
+
let u = t.features ?? [], d = u.map((e, t) => n(e, t));
|
|
77380
|
+
this._colorScale = new QV({
|
|
77381
|
+
colors: r,
|
|
77382
|
+
domain: i
|
|
77383
|
+
}), i || this._colorScale.setDomainFromValues(d.filter((e) => typeof e == "number" && Number.isFinite(e))), u.forEach((e, t) => {
|
|
77384
|
+
this._buildRegion(e, d[t], {
|
|
77385
|
+
fillOpacity: a,
|
|
77386
|
+
noDataColor: o,
|
|
77387
|
+
borderColor: s,
|
|
77388
|
+
borderWidth: c
|
|
77389
|
+
});
|
|
77390
|
+
});
|
|
77391
|
+
}
|
|
77392
|
+
_buildRegion(e, t, n) {
|
|
77393
|
+
let r = typeof t == "number" && Number.isFinite(t) ? this._colorScale.colorFor(t) : n.noDataColor, i = qV(e.geometry), a = [];
|
|
77394
|
+
for (let e of i) {
|
|
77395
|
+
let t = this._buildPolygon(e, r, n);
|
|
77396
|
+
t && a.push(t);
|
|
77397
|
+
}
|
|
77398
|
+
let o = a.length === 1 ? a[0] : new jT(...a);
|
|
77399
|
+
this.add(o), this._regions.push(o), this._regionColors.push(r), this._regionPolygons.push(a);
|
|
77400
|
+
}
|
|
77401
|
+
_buildPolygon(e, t, n) {
|
|
77402
|
+
let r = tH(e);
|
|
77403
|
+
if (r.length < 3) return null;
|
|
77404
|
+
let i = new bD({
|
|
77405
|
+
vertices: r.map((e) => {
|
|
77406
|
+
let [t, n] = this._projection(e);
|
|
77407
|
+
return [
|
|
77408
|
+
t,
|
|
77409
|
+
n,
|
|
77410
|
+
0
|
|
77411
|
+
];
|
|
77412
|
+
}),
|
|
77413
|
+
color: n.borderColor,
|
|
77414
|
+
strokeWidth: n.borderWidth,
|
|
77415
|
+
fillOpacity: n.fillOpacity,
|
|
77416
|
+
closed: !0
|
|
77417
|
+
});
|
|
77418
|
+
return i.setFill(t, n.fillOpacity), i;
|
|
77419
|
+
}
|
|
77420
|
+
getRegions() {
|
|
77421
|
+
return [...this._regions];
|
|
77422
|
+
}
|
|
77423
|
+
getRegionCount() {
|
|
77424
|
+
return this._regions.length;
|
|
77425
|
+
}
|
|
77426
|
+
getRegionColor(e) {
|
|
77427
|
+
return this._regionColors[e];
|
|
77428
|
+
}
|
|
77429
|
+
getRegionPolygons(e) {
|
|
77430
|
+
return [...this._regionPolygons[e] ?? []];
|
|
77431
|
+
}
|
|
77432
|
+
getProjection() {
|
|
77433
|
+
return this._projection;
|
|
77434
|
+
}
|
|
77435
|
+
getColorScale() {
|
|
77436
|
+
return this._colorScale;
|
|
77437
|
+
}
|
|
77438
|
+
}, eH = $V;
|
|
77439
|
+
function tH(e) {
|
|
77440
|
+
if (e.length < 2) return e;
|
|
77441
|
+
let t = e[0], n = e[e.length - 1];
|
|
77442
|
+
return t[0] === n[0] && t[1] === n[1] ? e.slice(0, -1) : e;
|
|
77443
|
+
}
|
|
77444
|
+
//#endregion
|
|
77445
|
+
//#region src/mobjects/geo/Globe.ts
|
|
77446
|
+
var nH = Math.PI / 180, rH = class extends jT {
|
|
77447
|
+
_radius;
|
|
77448
|
+
_center;
|
|
77449
|
+
_sphere;
|
|
77450
|
+
_plottedPoints = [];
|
|
77451
|
+
constructor(e = {}) {
|
|
77452
|
+
super();
|
|
77453
|
+
let { radius: t = 1, center: n = [
|
|
77454
|
+
0,
|
|
77455
|
+
0,
|
|
77456
|
+
0
|
|
77457
|
+
], textureUrl: r, darkTextureUrl: i, color: a = "#2a6f97", opacity: o = 1, resolution: s = 64 } = e;
|
|
77458
|
+
this._radius = t, this._center = [...n], r ? this._sphere = nj({
|
|
77459
|
+
textureUrl: r,
|
|
77460
|
+
darkTextureUrl: i,
|
|
77461
|
+
radius: t,
|
|
77462
|
+
center: n,
|
|
77463
|
+
resolution: s,
|
|
77464
|
+
opacity: o
|
|
77465
|
+
}) : this._sphere = new LA({
|
|
77466
|
+
radius: t,
|
|
77467
|
+
center: n,
|
|
77468
|
+
color: a,
|
|
77469
|
+
opacity: o,
|
|
77470
|
+
resolution: s
|
|
77471
|
+
}), this.add(this._sphere);
|
|
77472
|
+
}
|
|
77473
|
+
getSphere() {
|
|
77474
|
+
return this._sphere;
|
|
77475
|
+
}
|
|
77476
|
+
getRadius() {
|
|
77477
|
+
return this._radius;
|
|
77478
|
+
}
|
|
77479
|
+
latLonToPoint(e, t) {
|
|
77480
|
+
return this._surfacePoint(e, t, this._radius);
|
|
77481
|
+
}
|
|
77482
|
+
plotPoint(e, t, n = {}) {
|
|
77483
|
+
let { size: r = this._radius * .03, color: i = "#ffd166" } = n, a = new aj({
|
|
77484
|
+
point: this.latLonToPoint(e, t),
|
|
77485
|
+
radius: r,
|
|
77486
|
+
color: i
|
|
77487
|
+
});
|
|
77488
|
+
return this.add(a), this._plottedPoints.push(a), a;
|
|
77489
|
+
}
|
|
77490
|
+
getPlottedPoints() {
|
|
77491
|
+
return [...this._plottedPoints];
|
|
77492
|
+
}
|
|
77493
|
+
arc(e, t, n = {}) {
|
|
77494
|
+
let { segments: r = 64, color: i = "#ef476f", lineWidth: a = 2, altitude: o = 0 } = n, s = this._radius * (1 + o), c = iH(e[0], e[1]), l = iH(t[0], t[1]), u = sH(c[0] * l[0] + c[1] * l[1] + c[2] * l[2], -1, 1), d = Math.acos(u), f = Math.sin(d), p = [];
|
|
77495
|
+
for (let e = 0; e <= r; e++) {
|
|
77496
|
+
let t = aH(c, l, e / r, d, f);
|
|
77497
|
+
p.push([
|
|
77498
|
+
this._center[0] + s * t[0],
|
|
77499
|
+
this._center[1] + s * t[1],
|
|
77500
|
+
this._center[2] + s * t[2]
|
|
77501
|
+
]);
|
|
77502
|
+
}
|
|
77503
|
+
let m = new bD({
|
|
77504
|
+
vertices: p,
|
|
77505
|
+
color: i,
|
|
77506
|
+
strokeWidth: a,
|
|
77507
|
+
closed: !1
|
|
77508
|
+
});
|
|
77509
|
+
return this.add(m), m;
|
|
77510
|
+
}
|
|
77511
|
+
graticule(e = {}) {
|
|
77512
|
+
let { latStep: t = 30, lonStep: n = 30, segments: r = 48, color: i = "#8d99ae", lineWidth: a = 1 } = e, o = new jT();
|
|
77513
|
+
for (let e = -180; e < 180; e += n) o.add(this._gridLine(cH(e, r), i, a));
|
|
77514
|
+
for (let e = -90 + t; e < 90; e += t) o.add(this._gridLine(lH(e, r), i, a));
|
|
77515
|
+
return this.add(o), o;
|
|
77516
|
+
}
|
|
77517
|
+
_gridLine(e, t, n) {
|
|
77518
|
+
return new bD({
|
|
77519
|
+
vertices: e.map(([e, t]) => this.latLonToPoint(e, t)),
|
|
77520
|
+
color: t,
|
|
77521
|
+
strokeWidth: n,
|
|
77522
|
+
closed: !1
|
|
77523
|
+
});
|
|
77524
|
+
}
|
|
77525
|
+
_surfacePoint(e, t, n) {
|
|
77526
|
+
let r = iH(e, t);
|
|
77527
|
+
return [
|
|
77528
|
+
this._center[0] + n * r[0],
|
|
77529
|
+
this._center[1] + n * r[1],
|
|
77530
|
+
this._center[2] + n * r[2]
|
|
77531
|
+
];
|
|
77532
|
+
}
|
|
77533
|
+
};
|
|
77534
|
+
function iH(e, t) {
|
|
77535
|
+
let n = e * nH, r = t * nH, i = Math.cos(n);
|
|
77536
|
+
return [
|
|
77537
|
+
i * Math.cos(r),
|
|
77538
|
+
i * Math.sin(r),
|
|
77539
|
+
Math.sin(n)
|
|
77540
|
+
];
|
|
77541
|
+
}
|
|
77542
|
+
function aH(e, t, n, r, i) {
|
|
77543
|
+
if (i < 1e-9) return oH([
|
|
77544
|
+
e[0] + (t[0] - e[0]) * n,
|
|
77545
|
+
e[1] + (t[1] - e[1]) * n,
|
|
77546
|
+
e[2] + (t[2] - e[2]) * n
|
|
77547
|
+
]);
|
|
77548
|
+
let a = Math.sin((1 - n) * r) / i, o = Math.sin(n * r) / i;
|
|
77549
|
+
return [
|
|
77550
|
+
e[0] * a + t[0] * o,
|
|
77551
|
+
e[1] * a + t[1] * o,
|
|
77552
|
+
e[2] * a + t[2] * o
|
|
77553
|
+
];
|
|
77554
|
+
}
|
|
77555
|
+
function oH(e) {
|
|
77556
|
+
let t = Math.sqrt(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]) || 1;
|
|
77557
|
+
return [
|
|
77558
|
+
e[0] / t,
|
|
77559
|
+
e[1] / t,
|
|
77560
|
+
e[2] / t
|
|
77561
|
+
];
|
|
77562
|
+
}
|
|
77563
|
+
function sH(e, t, n) {
|
|
77564
|
+
return Math.max(t, Math.min(n, e));
|
|
77565
|
+
}
|
|
77566
|
+
function cH(e, t) {
|
|
77567
|
+
let n = [];
|
|
77568
|
+
for (let r = 0; r <= t; r++) n.push([-90 + 180 * r / t, e]);
|
|
77569
|
+
return n;
|
|
77570
|
+
}
|
|
77571
|
+
function lH(e, t) {
|
|
77572
|
+
let n = [];
|
|
77573
|
+
for (let r = 0; r <= t; r++) n.push([e, -180 + 360 * r / t]);
|
|
77574
|
+
return n;
|
|
77575
|
+
}
|
|
77576
|
+
//#endregion
|
|
77577
|
+
export { kI as Add, Zj as AddTextLetterByLetter, uM as AddTextWordByWord, rO as Angle, wT as AnimateProxy, vI as AnimatedBoundary, AN as AnimatedImageMobject, o_ as Animation, zT as AnimationGroup, HO as AnnotationDot, jD as AnnularSector, AD as Annulus, dP as ApplyComplexFunction, lP as ApplyFunction, hP as ApplyMatrix, pP as ApplyMethod, aF as ApplyPointwiseFunction, cF as ApplyPointwiseFunctionToCenter, YI as ApplyWave, DD as Arc, OD as ArcBetweenPoints, AM as ArcBrace, ND as ArcPolygon, ID as ArcPolygonFromArcs, qE as Arrow, YA as Arrow3D, pO as ArrowCircleFilledTip, fO as ArrowCircleTip, hO as ArrowSquareFilledTip, mO as ArrowSquareTip, lO as ArrowTip, dO as ArrowTriangleFilledTip, uO as ArrowTriangleTip, AA as ArrowVectorField, ZT as AudioManager, ek as Axes, yl as BLACK, np as BLEND_MODES, jl as BLUE, Tl as BLUE_A, El as BLUE_B, Dl as BLUE_C, Ol as BLUE_D, kl as BLUE_E, Bu as BOLD, Yu as BOOK, KD as BackgroundRectangle, EA as BarChart, rL as Blink, vO as BooleanResult, zA as Box3D, OM as Brace, kM as BraceBetweenPoints, jM as BraceLabel, MM as BraceText, LI as Broadcast, bA as BulletedList, IT as Camera2D, PT as Camera2DFrame, FT as Camera3D, vD as CameraAnimateProxy, gD as CameraFrame, sd as CapStyleType, pI as ChangeDecimalToValue, CI as ChangeSpeed, fI as ChangingDecimal, $V as ChoroplethMap, yD as Circle, UI as Circumscribe, vL as Clickable, CP as ClockwiseTransform, _A as Code, QV as ColorScale, jF as ComplexHomotopy, CA as ComplexPlane, eA as ComplexValueTracker, VA as Cone, fL as Controls, nO as ConvexHull, bj as ConvexHull3D, TP as CounterclockwiseTransform, Vj as Create, YD as Cross, RA as Cube, HD as CubicBezier, LD as CurvedArrow, RD as CurvedDoubleArrow, OT as CurvesAsSubmobjects, tO as Cutout, AP as CyclicReplace, BA as Cylinder, wl as DARKER_GRAY, Ml as DARK_BLUE, Du as DARK_BROWN, Cl as DARK_GRAY, ud as DEFAULT_ANIMATION_DURATION, Ru as DEFAULT_ARROW_TIP_LENGTH, jN as DEFAULT_ASPECT_RATIO, cA as DEFAULT_COLOR_SCHEME, Lu as DEFAULT_DASH_LENGTH, Fu as DEFAULT_DOT_RADIUS, ld as DEFAULT_FONT_SIZE, hd as DEFAULT_FPS, fd as DEFAULT_FRAME_HEIGHT, dd as DEFAULT_FRAME_WIDTH, bd as DEFAULT_MOBJECT_TO_EDGE_BUFFER, xd as DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, md as DEFAULT_PIXEL_HEIGHT, pd as DEFAULT_PIXEL_WIDTH, ed as DEFAULT_POINTWISE_FUNCTION_RUN_TIME, nd as DEFAULT_POINT_DENSITY_1D, td as DEFAULT_POINT_DENSITY_2D, Iu as DEFAULT_SMALL_DOT_RADIUS, cd as DEFAULT_STROKE_WIDTH, $u as DEFAULT_WAIT_TIME, ju as DEGREES, Id as DL, Od as DOWN, Ld as DR, BD as DashedLine, VD as DashedVMobject, Nj as DecimalMatrix, Yk as DecimalNumber, EM as DecimalTable, Dz as Degrees, fN as DiGraph, QN as DiceFace, wO as Difference, qA as Dodecahedron, UD as Dot, aj as Dot3D, JE as DoubleArrow, mL as Draggable, Uj as DrawBorderThenFill, aO as Elbow, kD as Ellipse, TO as Exclusion, oR as ExportSettingsPanel, tR as FPS_PRESETS, iP as FadeIn, oP as FadeOut, RP as FadeToColor, _P as FadeTransform, yP as FadeTransformPieces, VI as Flash, ZI as FocusOn, PN as FullScreenFadeRectangle, NN as FullScreenRectangle, KO as FunctionGraph, ru as GOLD, Ql as GOLD_A, $l as GOLD_B, eu as GOLD_C, tu as GOLD_D, nu as GOLD_E, Sl as GRAY, ml as GRAY_A, hl as GRAY_B, gl as GRAY_C, _l as GRAY_D, vl as GRAY_E, Gl as GREEN, zl as GREEN_A, Bl as GREEN_B, Vl as GREEN_C, Hl as GREEN_D, Ul as GREEN_E, uN as GenericGraph, eH as GeoMap, zL as GifExporter, rH as Globe, vw as GlyphVMobject, BM as GradientVMobject, dN as Graph, jT as Group, RF as GrowArrow, hF as GrowFromCenter, BF as GrowFromEdge, HF as GrowFromPoint, Gu as HEAVY, rz as HSV, CD as Hexagon, AF as Homotopy, gL as Hoverable, Md as IN, Zu as ITALIC, KA as Icosahedron, l_ as ImageMobject, ak as ImplicitFunction, zI as Indicate, Xk as Integer, Mj as IntegerMatrix, TM as IntegerTable, tE as InteractiveScene, CO as Intersection, yd as LARGE_BUFF, kd as LEFT, Hu as LIGHT, bl as LIGHTER_GRAY, Eu as LIGHT_BROWN, xl as LIGHT_GRAY, wu as LIGHT_PINK, XD as Label, BO as LabeledArrow, VO as LabeledDot, zO as LabeledLine, UO as LabeledPolygram, qF as LaggedStart, ZF as LaggedStartMap, GD as LargeDot, nE as Lighting, UE as Line, JA as Line3D, od as LineJointType, nk as LinearBase, ZE as LinearTransformationScene, rk as LogBase, Ou as MANIM_BACKGROUND, gu as MAROON, du as MAROON_A, fu as MAROON_B, pu as MAROON_C, mu as MAROON_D, hu as MAROON_E, Uu as MEDIUM, vd as MED_LARGE_BUFF, _d as MED_SMALL_BUFF, lA as MONOKAI_COLOR_SCHEME, WN as MandelbrotSet, bM as ManimBanner, tz as ManimColor, yV as ManimSceneElement, mD as MappingCamera, SA as MarkdownText, Ek as MarkupText, eP as MasterTimeline, CM as MathTable, Mk as MathTex, ZC as MathTexImage, yA as MathTexPart, Nk as MathTexSVG, Kk as MathTypst, jj as Matrix, ML as MatrixTracker, cp as Mobject, BN as Mobject1D, VN as Mobject2D, IA as Mobject3D, Pj as MobjectMatrix, wM as MobjectTable, Aj as ModelMobject, bL as MovablePoint, CF as MoveAlongPath, hT as MoveToTarget, yF as MoveToTargetPosition, dD as MovingCamera, LE as MovingCameraScene, pD as MultiCamera, Oz as Munits, zu as NORMAL, JN as NewtonFractal, NT as NullRenderer, WO as NumberLine, ik as NumberPlane, Qu as OBLIQUE, Tu as ORANGE, Nd as ORIGIN, jd as OUT, GA as Octahedron, DE as OrbitControls, LN as PGroup, ku as PI, Cu as PINK, s_ as PMobject, Al as PURE_BLUE, Wl as PURE_GREEN, lu as PURE_RED, Su as PURPLE, _u as PURPLE_A, vu as PURPLE_B, yu as PURPLE_C, bu as PURPLE_D, xu as PURPLE_E, uk as Paragraph, ok as ParametricFunction, $A as ParametricSurface, wD as Pentagon, Az as Percent, NF as PhaseFlow, Ez as Pixels, pL as PlaybackControls, CR as Player, yR as PlayerController, sR as PlayerUI, zN as PointCloudDot, RN as PointMobject, wA as PolarPlane, bD as Polygon, TD as Polygram, UA as Polyhedron, ij as Prism, $I as Pulse, nR as QUALITY_PRESETS, uu as RED, iu as RED_A, au as RED_B, ou as RED_C, su as RED_D, cu as RED_E, eR as RESOLUTION_PRESETS, nz as RGBA, Ad as RIGHT, oz as RandomColorGenerator, jE as Rectangle, SD as RegularPolygon, eO as RegularPolygram, jI as Remove, $j as RemoveTextLetterByLetter, MT as Renderer, pT as ReplacementTransform, IP as Restore, iO as RightAngle, uF as Rotate, FI as Rotating, ZD as RoundedRectangle, rd as SCALE_FACTOR_PER_FONT_POINT, Wu as SEMIBOLD, Ju as SEMILIGHT, gd as SMALL_BUFF, id as START_X, ad as START_Y, $M as SVGMobject, XN as SampleSpace, pF as Scale, tk as ScaleBase, MP as ScaleInPlace, $T as Scene, JT as SceneStateManager, MN as ScreenRectangle, MD as Sector, eE as SelectionManager, _F as Shift, aL as ShowCreationThenDestruction, fM as ShowIncreasingSubsets, mM as ShowPartial, qI as ShowPassingFlash, tL as ShowPassingFlashWithThinningStrokeWidth, gM as ShowSubmobjectsOneByOne, PP as ShrinkToCenter, vA as SingleStringMathTex, EL as Slider, WD as SmallDot, MF as SmoothedVectorizedHomotopy, lV as SpecialThreeDScene, LA as Sphere, WF as SpinInFromNothing, vM as SpiralIn, hD as SplitScreenCamera, ME as Square, QD as Star, gO as StealthTip, FA as StreamLines, YF as Succession, QA as Surface, QA as Surface3D, ej as SurfacePresets, qD as SurroundingRectangle, DP as Swap, Au as TAU, Rl as TEAL, Nl as TEAL_A, Pl as TEAL_B, Fl as TEAL_C, Il as TEAL_D, Ll as TEAL_E, Vu as THIN, qa as THREE, SM as Table, oO as TangentLine, zD as TangentialArc, WA as Tetrahedron, Pk as Tex, wd as TexFontTemplates, Sd as TexTemplate, Td as TexTemplateLibrary, Bw as Text, bw as TextGlyphGroup, tj as TexturedSurface, rj as ThreeDAxes, fD as ThreeDCamera, AE as ThreeDScene, oj as ThreeDVMobject, VT as Timeline, ED as TipableVMobject, xA as Title, HA as Torus, gI as TracedPath, dT as Transform, BP as TransformAnimations, xP as TransformFromCopy, HP as TransformMatchingAbstractBase, nF as TransformMatchingCode, YP as TransformMatchingShapes, QP as TransformMatchingTex, xD as Triangle, aM as TypeWithCursor, Gk as Typst, Pd as UL, Xu as ULTRABOLD, Ku as ULTRAHEAVY, qu as ULTRALIGHT, Dd as UP, Fd as UR, Gj as Uncreate, JD as Underline, SO as Union, GO as UnitInterval, sM as UntypeWithCursor, Yj as Unwrite, eI as UpdateFromAlphaFunc, QF as UpdateFromFunc, kT as VDict, Nh as VGroup, V as VMobject, QM as VMobjectFromSVGPath, Qk as ValueTracker, rA as Variable, YE as Vector, XA as Vector3D, kA as VectorField, sk as VectorFieldVector, XE as VectorScene, AT as VectorizedPoint, HL as VideoExporter, bN as VideoMobject, lD as Voiceover, uD as VoiceoverScene, pl as WHITE, NI as Wait, ZL as WebCodecsExporter, nD as WebSpeechSynthesizer, GI as Wiggle, uL as WiggleOutThenIn, qj as Write, Mu as X_AXIS, Zl as YELLOW, Kl as YELLOW_A, ql as YELLOW_B, Jl as YELLOW_C, Yl as YELLOW_D, Xl as YELLOW_E, Nu as Y_AXIS, Pu as Z_AXIS, FE as ZoomDisplayPopOut, IE as ZoomedScene, AI as add, Qj as addTextLetterByLetter, dM as addTextWordByWord, Kd as addVec, cz as adjacentNTuples, lz as adjacentPairs, vz as allElementsAreInstances, aI as always, rI as alwaysRedraw, lI as alwaysRotate, cI as alwaysShift, Uz as angleAxisFromQuaternion, Zz as angleBetweenVectors, Xz as angleOfVector, yI as animatedBoundary, BT as animationGroup, ip as applyBlendMode, fP as applyComplexFunction, uP as applyFunction, gP as applyMatrix, FL as applyMatrixLive, mP as applyMethod, oF as applyPointwiseFunction, lF as applyPointwiseFunctionToCenter, XI as applyWave, OC as areKatexStylesLoaded, oI as assertIsMobjectMethod, UR as averageColor, NB as bezier, IB as bezierRemap, CB as binarySearch, _N as binaryTree, yN as bipartiteGraph, rp as blendModeToThree, iL as blink, RI as broadcast, ww as buildStyledTextLines, uB as cartesianToSpherical, iB as centerOfMass, hI as changeDecimalToValue, wI as changeSpeed, mI as changingDecimal, wB as choose, $L as chooseVideoExporterStrategy, WI as circumscribe, ST as clearAnimationOverrides, TB as clip, xB as clockwisePath, wP as clockwiseTransform, Sh as colorGradient, LR as colorToIntRgb, RR as colorToIntRgba, FR as colorToRgb, IR as colorToRgba, $z as compassDirections, pN as completeGraph, rB as complexFuncToR3Func, FF as complexHomotopy, tB as complexToR3, nA as complexValueTracker, bg as compose, nN as computeCircularLayout, tN as computeLayout, yz as concatenateLists, SB as counterclockwisePath, EP as counterclockwiseTransform, Hj as create, $N as createDiceRow, FN as createFadeToBlack, IN as createFadeToWhite, BL as createGifExporter, UL as createVideoExporter, QL as createWebCodecsExporter, Yd as cross, Yd as crossVec, zz as cross2d, Zh as cubicBezier, dI as cycleAnimation, mN as cycleGraph, jP as cyclicReplace, UT as deserializeMobject, KV as deserializeScene, WV as deserializeSceneMobject, wj as detectModelFormat, OO as difference, Jd as dotVec, _g as doubleSmooth, JL as downloadBlob, Wj as drawBorderThenFill, ym as earclipTriangulation, Qh as ease, og as easeIn, og as easeInCubic, Zg as easeInBack, $h as easeInBezier, pg as easeInBounce, Gg as easeInCirc, n_ as easeInElastic, ug as easeInExpo, ag as easeInOut, ag as easeInOutCubic, $g as easeInOutBack, tg as easeInOutBezier, a_ as easeInOutBounce, qg as easeInOutCirc, i_ as easeInOutElastic, Wg as easeInOutExpo, Lg as easeInOutQuad, Bg as easeInOutQuart, Ug as easeInOutQuint, Ig as easeInOutSine, cg as easeInQuad, Rg as easeInQuart, Vg as easeInQuint, Pg as easeInSine, sg as easeOut, sg as easeOutCubic, Qg as easeOutBack, eg as easeOutBezier, fg as easeOutBounce, Kg as easeOutCirc, r_ as easeOutElastic, dg as easeOutExpo, lg as easeOutQuad, zg as easeOutQuart, Hg as easeOutQuint, Fg as easeOutSine, EI as emphasizeRegion, EC as ensureKatexStyles, YV as equirectangular, kO as exclusion, Ag as exponentialDecay, YL as exportAndDownloadPNG, KL as exportFramePNG, qL as exportPNGSequence, qV as exteriorRings, jz as extractMobjectFamilyMembers, iI as fAlways, aP as fadeIn, sP as fadeOut, zP as fadeToColor, vP as fadeTransform, bP as fadeTransformPieces, sB as findIntersection, HI as flash, QI as focusOn, tV as get3dVmobEndCorner, $B as get3dVmobEndCornerIndex, iV as get3dVmobEndCornerUnitNormal, ZB as get3dVmobGradientStartAndEndPoints, eV as get3dVmobStartCorner, QB as get3dVmobStartCornerIndex, rV as get3dVmobStartCornerUnitNormal, nV as get3dVmobUnitNormal, $f as getActiveTheme, bT as getAnimationOverride, Fj as getDetText, kR as getFeatureFlags, TV as getSerializableTypes, wV as getSerializer, sz as getShadedRgb, gh as getSmoothCubicBezierHandlePoints, oD as getSpeechSynthesizer, Qf as getTheme, ep as getThemeNames, Qz as getUnitNormal, mB as getWindingNumber, vN as gridGraph, zF as growArrow, gF as growFromCenter, VF as growFromEdge, UF as growFromPoint, xT as hasAnimationOverride, Cz as hashObj, PR as hexToRgb, PF as homotopy, qR as hsvToRgb, Nz as indexLabels, BI as indicate, ph as integerInterpolate, DB as interpolate, HR as interpolateColor, DO as intersection, kB as inverseInterpolate, VR as invertColor, LB as isClosed, ER as isFeatureEnabled, UC as isMathJaxLoaded, eD as isSpeechSupported, Bk as isTypstLoaded, KC as katexCanRender, KF as laggedStart, XF as laggedStartMap, Xd as lengthVec, oB as lineIntersection, rg as linear, TI as linearSpeedRamp, kg as lingering, tf as linspace, dz as listDifferenceUpdate, fz as listUpdate, bz as listify, Gf as logger, nI as maintainPositionRelativeTo, yL as makeClickable, hL as makeDraggable, mz as makeEven, Sz as makeEvenByCycling, _L as makeHoverable, NL as makeMatrixTracker, CL as makeMovablePoint, OL as makeSlider, pV as manimElementInternals, tP as masterTimeline, AB as matchInterpolate, Ij as matrixToMobject, Lj as matrixToTexString, XV as mercator, OB as mid, aB as midpoint, wF as moveAlongPath, gT as moveToTarget, bF as moveToTargetPosition, Rz as normSquared, Bz as normalize, Zd as normalizeVec, Og as notQuiteThere, Hf as onLog, ef as orientation2D, $d as orthonormalFrame, yT as overrideAnimate, vT as overrideAnimation, $E as parseBookmarks, AC as parseSVGPathData, fh as partialBezierPoints, bB as pathAlongArc, yB as pathAlongCircles, hN as pathGraph, fB as perpendicularBisector, LF as phaseFlow, JB as pointLiesOnBezier, _z as powerset, WC as preloadMathJax, Vk as preloadTypst, CT as prepareAnimation, Pz as printFamily, qB as proportionsAlongBezierCurveForPoint, eL as pulse, iR as qualityToBitrate, Wz as quaternionConjugate, Hz as quaternionFromAngleAxis, Vz as quaternionMult, nB as r3ToComplex, KR as randomBrightColor, GR as randomColor, uV as registerFont, bV as registerManimElement, SV as registerSerializableMobject, Xf as registerTheme, eB as regularVertices, MI as remove, uz as removeListRedundancies, xz as removeNones, eM as removeTextLetterByLetter, GC as renderLatexToSVG, Uk as renderTypstToSVG, mT as replacementTransform, OR as resetFeatureFlags, tp as resetThemes, aR as resolveResolution, LP as restore, XT as restoreMobjectState, Mz as restructureListToExcludeCertainFamilyMembers, yg as reverse, zR as rgbToColor, NR as rgbToHex, JR as rgbToHsv, BR as rgbaToColor, dF as rotate, Jz as rotateVector, II as rotating, Kz as rotationAboutZ, Gz as rotationMatrix, qz as rotationMatrixTranspose, Eg as runningStart, gg as rushFrom, hg as rushInto, DI as rushRegion, YT as saveMobjectState, mF as scale, NP as scaleInPlace, Gd as scaleVec, HT as serializeMobject, GV as serializeScene, UV as serializeSceneMobject, DR as setFeatureFlags, ON as setGifDecoder, wC as setKatexStylesheetUrl, BC as setMathJaxScriptUrl, Cj as setModelLoaderFactory, aD as setSpeechSynthesizer, Zf as setTheme, Rk as setTypstCompiler, vF as shift, cB as shoelace, lB as shoelaceDirection, oL as showCreationThenDestruction, pM as showIncreasingSubsets, hM as showPartial, JI as showPassingFlash, nL as showPassingFlashWithThinningStrokeWidth, _M as showSubmobjectsOneByOne, FP as shrinkToCenter, EB as sigmoid, Cg as slowInto, ig as smooth, OI as smoothSpeedCurve, IF as smoothedVectorizedHomotopy, Ng as smoothererstep, Mg as smootherstep, jg as smoothstep, qT as snapshotFromJSON, KT as snapshotToJSON, dB as sphericalToCartesian, GF as spinInFromNothing, yM as spiralIn, PB as splitBezier, Hh as spring, wg as squishRateFunc, gN as starGraph, GT as stateFromJSON, WT as stateToJSON, vg as stepFunction, ng as steps, vB as straightPath, hz as stretchArrayToLength, qd as subVec, FB as subdivideBezier, JF as succession, eN as svgMobject, PC as svgToVMobjects, OP as swap, nj as texturedSphere, mg as thereAndBack, Tg as thereAndBackWithPause, pB as thickDiagonal, _I as tracedPath, fT as transform, VP as transformAnimations, SP as transformFromCopy, rF as transformMatchingCode, XP as transformMatchingShapes, $P as transformMatchingTex, pz as tuplify, uI as turnAnimationIntoUpdater, oM as typeWithCursor, Kj as uncreate, EO as union, gz as uniqChain, Qd as unitPerpendicularTo, CV as unregisterSerializableMobject, cM as untypeWithCursor, Xj as unwrite, tI as updateFromAlphaFunc, $F as updateFromFunc, tA as valueTracker, PI as wait, KI as wiggle, dL as wiggleOutThenIn, Dg as wiggleRate, Jj as write, Yz as zToVector };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Group } from '../../core/Group';
|
|
2
|
+
import { Mobject } from '../../core/Mobject';
|
|
3
|
+
import { Polygon } from '../geometry/Polygon';
|
|
4
|
+
import { GeoFeature, GeoFeatureCollection } from './geojson';
|
|
5
|
+
import { GeoProjection } from './projections';
|
|
6
|
+
import { ColorScale } from './colorScale';
|
|
7
|
+
/**
|
|
8
|
+
* Reads the value a feature should be colored by. Return `null`/`undefined`
|
|
9
|
+
* (or a non-finite number) to color the feature with the no-data color.
|
|
10
|
+
*/
|
|
11
|
+
export type ChoroplethValueAccessor = (feature: GeoFeature, index: number) => number | null | undefined;
|
|
12
|
+
/** Options for a {@link ChoroplethMap}. */
|
|
13
|
+
export interface ChoroplethMapOptions {
|
|
14
|
+
/** The GeoJSON feature collection to render. */
|
|
15
|
+
geojson: GeoFeatureCollection;
|
|
16
|
+
/** Reads the numeric value per feature. */
|
|
17
|
+
value: ChoroplethValueAccessor;
|
|
18
|
+
/** Reference colors for the fill scale (interpolated). Default: a blue ramp. */
|
|
19
|
+
colorScale?: string[];
|
|
20
|
+
/** Fixed value domain `[min, max]`. Default: computed from the data. */
|
|
21
|
+
domain?: [number, number];
|
|
22
|
+
/** Fill opacity from 0 to 1. Default: 1. */
|
|
23
|
+
fillOpacity?: number;
|
|
24
|
+
/** Fill color used when a feature has no value. Default: Manim gray. */
|
|
25
|
+
noDataColor?: string;
|
|
26
|
+
/** Border (stroke) color. Default: '#1b263b'. */
|
|
27
|
+
borderColor?: string;
|
|
28
|
+
/** Border width in pixels. 0 hides the border. Default: 1. */
|
|
29
|
+
borderWidth?: number;
|
|
30
|
+
/** Projection from lon/lat to 2D. Default: equirectangular(). */
|
|
31
|
+
projection?: GeoProjection;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* ChoroplethMap - a value-colored 2D map built from GeoJSON polygons.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const map = new ChoroplethMap({
|
|
39
|
+
* geojson: worldFeatureCollection,
|
|
40
|
+
* value: (feature) => feature.properties?.gdp as number,
|
|
41
|
+
* colorScale: ['#f7fbff', '#08306b'],
|
|
42
|
+
* borderWidth: 1,
|
|
43
|
+
* });
|
|
44
|
+
* map.scale(2);
|
|
45
|
+
* scene.add(map);
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare class ChoroplethMap extends Group {
|
|
49
|
+
private _projection;
|
|
50
|
+
private _colorScale;
|
|
51
|
+
private _regions;
|
|
52
|
+
private _regionColors;
|
|
53
|
+
private _regionPolygons;
|
|
54
|
+
constructor(options: ChoroplethMapOptions);
|
|
55
|
+
private _buildRegion;
|
|
56
|
+
private _buildPolygon;
|
|
57
|
+
/** Get the per-feature region mobjects (one entry per feature). */
|
|
58
|
+
getRegions(): Mobject[];
|
|
59
|
+
/** Get the number of regions (equals the number of input features). */
|
|
60
|
+
getRegionCount(): number;
|
|
61
|
+
/** Get the fill color assigned to a feature's region. */
|
|
62
|
+
getRegionColor(index: number): string;
|
|
63
|
+
/** Get the polygons that make up a feature's region (one per exterior ring). */
|
|
64
|
+
getRegionPolygons(index: number): Polygon[];
|
|
65
|
+
/** Get the projection used to place lon/lat. */
|
|
66
|
+
getProjection(): GeoProjection;
|
|
67
|
+
/** Get the color scale mapping values to fill colors. */
|
|
68
|
+
getColorScale(): ColorScale;
|
|
69
|
+
}
|
|
70
|
+
/** Alias: some callers prefer the shorter `GeoMap` name. */
|
|
71
|
+
export declare const GeoMap: typeof ChoroplethMap;
|
|
72
|
+
//# sourceMappingURL=ChoroplethMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChoroplethMap.d.ts","sourceRoot":"","sources":["../../../src/mobjects/geo/ChoroplethMap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,CACpC,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,MAAM,KACV,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE/B,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,OAAO,EAAE,oBAAoB,CAAC;IAC9B,2CAA2C;IAC3C,KAAK,EAAE,uBAAuB,CAAC;IAC/B,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,wEAAwE;IACxE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAmB;gBAE9B,OAAO,EAAE,oBAAoB;IAqCzC,OAAO,CAAC,YAAY;IA6BpB,OAAO,CAAC,aAAa;IA0BrB,mEAAmE;IACnE,UAAU,IAAI,OAAO,EAAE;IAIvB,uEAAuE;IACvE,cAAc,IAAI,MAAM;IAIxB,yDAAyD;IACzD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,gFAAgF;IAChF,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE;IAI3C,gDAAgD;IAChD,aAAa,IAAI,aAAa;IAI9B,yDAAyD;IACzD,aAAa,IAAI,UAAU;CAG5B;AAED,4DAA4D;AAC5D,eAAO,MAAM,MAAM,sBAAgB,CAAC"}
|