retiam 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +213 -209
- package/bin/export.js +322 -322
- package/bin/init.js +425 -425
- package/bin/lint.js +354 -354
- package/bin/render-config.js +87 -0
- package/bin/render.js +517 -600
- package/bin/snapshot.js +231 -231
- package/dist/{UTIF-pBEih-vH.js → UTIF-CuM_xgsi.js} +1 -1
- package/dist/assets/roboto-msdf.json +3642 -3642
- package/dist/{index-CnM0BhUR.js → index-C7UzgTiw.js} +4728 -4728
- package/dist/{main-Bw2LTrnR.js → main-CCBHkqdA.js} +1 -1
- package/dist/retiam.es.js +1 -1
- package/package.json +106 -116
- package/readme.md +155 -143
package/dist/retiam.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { iq as e, j8 as r, V as t, a5 as i, b as o, A as n, ga as l, bn as c, bo as d, bp as f, gf as u, jH as m, bV as h, gb as E, g3 as S, dj as g, dk as P, lw as p, f1 as A, f2 as T, dE as C, dK as R, dF as D, dG as F, dH as L, dI as I, eV as b, B as _, n as M, ao as k, ap as G, aq as O, ar as B, as as y, ag as N, gv as j, ja as v, iz as x, bZ as U, gc as w, gw as H, ep as V, b$ as Y, bq as W, bs as z, jI as K, bu as Q, bx as Z, kG as J, f3 as X, gH as q, fc as $, hR as aa, kJ as sa, kK as ea, c1 as ra, eE as ta, c as ia, ib as oa, v as na, ah as la, y as ca, jy as da, x as fa, o as ua, hS as ma, dN as ha, dQ as Ea, dW as Sa, dO as ga, dU as Pa, dT as pa, dV as Aa, dS as Ta, dR as Ca, dX as Ra, bR as Da, bS as Fa, dM as La, bT as Ia, bU as ba, ly as _a, c3 as Ma, gx as ka, hT as Ga, hy as Oa, km as Ba, gd as ya, fL as Na, ir as ja, i9 as va, is as xa, eW as Ua, C as wa, eM as Ha, lQ as Va, eN as Ya, kz as Wa, eL as za, jJ as Ka, bz as Qa, gI as Za, hC as Ja, eR as Xa, eX as qa, c6 as $a, c8 as as, c5 as ss, jK as es, c9 as rs, kL as ts, f0 as is, gy as os, kN as ns, bA as ls, jL as cs, hz as ds, iT as fs, hX as us, gJ as ms, u as hs, t as Es, Q as Ss, cf as gs, a8 as Ps, kC as ps, h as As, D as Ts, i as Cs, fG as Rs, ih as Ds, iU as Fs, hY as Ls, kr as Is, eq as bs, bC as _s, jb as Ms, f5 as ks, ji as Gs, bX as Os, cb as Bs, kn as ys, ge as Ns, hZ as js, hA as vs, cd as xs, cg as Us, ch as ws, eC as Hs, h_ as Vs, j as Ys, a1 as Ws, lE as zs, lD as Ks, E as Qs, iV as Zs, fZ as Js, fY as Xs, gj as qs, gi as $s, b5 as ae, gK as se, cj as ee, kF as re, iP as te, f7 as ie, kc as oe, a4 as ne, F as le, i8 as ce, bD as de, bF as fe, jM as ue, g4 as me, iy as he, b6 as Ee, hv as Se, hu as ge, hV as Pe, h$ as pe, d9 as Ae, hn as Te, ho as Ce, hp as Re, hq as De, it as Fe, e5 as Le, e0 as Ie, jN as be, ju as _e, iv as Me, iu as ke, fl as Ge, ix as Oe, kA as Be, X as ye, ls as Ne, kj as je, jj as ve, iH as xe, q as Ue, aX as we, aY as He, aZ as Ve, a_ as Ye, a$ as We, G as ze, at as Ke, au as Qe, av as Ze, aw as Je, ax as Xe, p as qe, b0 as $e, b1 as ar, b2 as sr, b3 as er, b4 as rr, er as tr, e1 as ir, kO as or, jk as nr, jl as lr, jm as cr, jn as dr, gg as fr, hB as ur, cl as mr, i0 as hr, hN as Er, i1 as Sr, jv as gr, b7 as Pr, bH as pr, cn as Ar, cr as Tr, g5 as Cr, H as Rr, gV as Dr, kI as Fr, hW as Lr, gE as Ir, cF as br, du as _r, I as Mr, ab as kr, fm as Gr, fn as Or, fo as Br, e6 as yr, es as Nr, eO as jr, g2 as vr, eS as xr, e2 as Ur, eP as wr, f6 as Hr, cv as Vr, cx as Yr, lA as Wr, lz as zr, lx as Kr, ae as Qr, L as Zr, _ as Jr, s as Xr, r as qr, $ as $r, gh as at, gM as st, gk as et, gO as rt, e7 as tt, et as it, e8 as ot, eu as nt, hE as lt, gz as ct, dm as dt, j7 as ft, M as ut, J as mt, a0 as ht, fH as Et, hr as St, js as gt, e9 as Pt, kP as pt, fN as At, fO as Tt, g6 as Ct, iI as Rt, iJ as Dt, kR as Ft, b9 as Lt, b8 as It, cz as bt, iw as _t, fd as Mt, ea as kt, jo as Gt, gl as Ot, eH as Bt, fe as yt, gP as Nt, eb as jt, ev as vt, eI as xt, dv as Ut, dw as wt, dl as Ht, ew as Vt, gR as Yt, gQ as Wt, dn as zt, aa as Kt, N as Qt, eD as Zt, gF as Jt, iA as Xt, iB as qt, eY as $t, kQ as ai, jZ as si, a3 as ei, fF as ri, K as ti, aN as ii, aO as oi, aP as ni, aQ as li, aR as ci, O as di, d as fi, j6 as ui, ba as mi, jO as hi, iW as Ei, hF as Si, i2 as gi, dp as Pi, dZ as pi, lS as Ai, lT as Ti, P as Ci, aS as Ri, aT as Di, aU as Fi, aV as Li, aW as Ii, af as bi, j$ as _i, jt as Mi, jP as ki, ke as Gi, kf as Oi, kg as Bi, jq as yi, jQ as Ni, j9 as ji, ad as vi, aD as xi, aE as Ui, aF as wi, aG as Hi, aH as Vi, bc as Yi, bb as Wi, ec as zi, fp as Ki, fq as Qi, gT as Zi, fr as Ji, ed as Xi, jC as qi, iR as $i, gm as ao, hx as so, hw as eo, kS as ro, ee as to, ex as io, kT as oo, iQ as no, iO as lo, iS as co, iX as fo, eJ as uo, kY as mo, i3 as ho, iC as Eo, jR as So, kB as go, k4 as Po, ko as po, ff as Ao, gU as To, eQ as Co, eU as Ro, iK as Do, eZ as Fo, fs as Lo, gn as Io, ef as bo, ey as _o, cB as Mo, jS as ko, jT as Go, bB as Oo, iY as Bo, gU as yo, ez as No, iL as jo, lq as vo, jw as xo, m as Uo, aj as wo, ak as Ho, al as Vo, am as Yo, an as Wo, R as zo, z as Ko, a9 as Qo, jW as Zo, gW as Jo, gX as Xo, kl as qo, gY as $o, hG as an, bI as sn, kZ as en, fu as rn, fv as tn, fw as on, ft as nn, fx as ln, jp as cn, jU as dn, kk as fn, jV as un, k_ as mn, j7 as hn, go as En, je as Sn, jX as gn, jf as Pn, jg as pn, d$ as An, jh as Tn, e3 as Cn, ku as Rn, iZ as Dn, jG as Fn, cD as Ln, i_ as In, hU as bn, i$ as _n, Z as Mn, gp as kn, eg as Gn, dx as On, hi as Bn, hl as yn, fP as Nn, gG as jn, hj as vn, h2 as xn, ei as Un, h8 as wn, hc as Hn, h5 as Vn, h3 as Yn, h4 as Wn, hm as zn, hd as Kn, hb as Qn, hf as Zn, ha as Jn, hg as Xn, hh as qn, h7 as $n, fQ as al, hk as sl, h9 as el, he as rl, h6 as tl, gZ as il, eh as ol, w as nl, a7 as ll, S as cl, lC as dl, lB as fl, fD as ul, fE as ml, k8 as hl, cH as El, cJ as Sl, bd as gl, be as Pl, eF as pl, bJ as Al, gq as Tl, kp as Cl, ej as Rl, k0 as Dl, jc as Fl, jr as Ll, jd as Il, jY as bl, dq as _l, k$ as Ml, k3 as kl, cL as Gl, cp as Ol, ct as Bl, iD as yl, i4 as Nl, cN as jl, j0 as vl, bf as xl, hO as Ul, hH as wl, i5 as Hl, dy as Vl, dL as Yl, j_ as Wl, g_ as zl, cP as Kl, cR as Ql, dr as Zl, ek as Jl, gr as Xl, ds as ql, i6 as $l, gs as ac, dt as sc, gt as ec, el as rc, cT as tc, bg as ic, bK as oc, bh as nc, ks as lc, k1 as cc, hD as dc, k6 as fc, kb as uc, k7 as mc, fy as hc, hI as Ec, eT as Sc, hs as gc, l0 as Pc, em as pc, fA as Ac, fz as Tc, eG as Cc, gS as Rc, ai as Dc, a2 as Fc, aI as Lc, aJ as Ic, aK as bc, aL as _c, aM as Mc, T as kc, a6 as Gc, lu as Oc, i7 as Bc, cV as yc, g$ as Nc, fR as jc, fS as vc, fT as xc, en as Uc, eA as wc, ka as Hc, k9 as Vc, ht as Yc, hP as Wc, bi as zc, e_ as Kc, hJ as Qc, h0 as Zc, cX as Jc, h1 as Xc, bL as qc, bM as $c, bj as ad, dz as sd, dA as ed, dB as rd, dC as td, cZ as id, c$ as od, gu as nd, eo as ld, eB as cd, eK as dd, j1 as fd, j2 as ud, d1 as md, d2 as hd, bk as Ed, e as Sd, U as gd, f as Pd, d5 as pd, d4 as Ad, d7 as Td, k5 as Cd, kw as Rd, kv as Dd, f4 as Fd, db as Ld, lG as Id, g7 as bd, lt as _d, g8 as Md, ac as kd, f$ as Gd, f_ as Od, fI as Bd, iE as yd, g0 as Nd, kx as jd, iM as vd, iN as xd, bl as Ud, fB as wd, fC as Hd, dD as Vd, kt as Yd, ky as Wd, bm as zd, hQ as Kd, hK as Qd, kd as Zd, W as Jd, jx as Xd, bN as qd, ia as $d, dd as af, iF as sf, j3 as ef, df as rf, dh as tf, j4 as of, iG as nf, bP as lf, Y as cf, ay as df, az as ff, aA as uf, aB as mf, aC as hf, j5 as Ef, g9 as Sf, lP as gf, g1 as Pf, lh as pf, bW as Af, lj as Tf, b_ as Cf, ll as Rf, lm as Df, l5 as Ff, l4 as Lf, c0 as If, br as bf, bt as _f, bv as Mf, by as kf, kH as Gf, lr as Of, gB as Bf, gA as yf, ic as Nf, ii as jf, hM as vf, kh as xf, ip as Uf, gC as wf, ki as Hf, c2 as Vf, dP as Yf, dY as Wf, c4 as zf, e$ as Kf, fW as Qf, fV as Zf, jB as Jf, c7 as Xf, fg as qf, lJ as $f, lH as au, jE as su, fk as eu, lR as ru, fh as tu, fj as iu, fi as ou, jD as nu, ln as lu, ca as cu, lc as du, l8 as fu, l2 as uu, kE as mu, la as hu, k2 as Eu, lo as Su, f9 as gu, lg as Pu, lf as pu, bY as Au, cc as Tu, l1 as Cu, ce as Ru, ci as Du, kX as Fu, dJ as Lu, gL as Iu, ck as bu, fb as _u, bE as Mu, bG as ku, da as Gu, hL as Ou, kM as Bu, gD as yu, jF as Nu, lp as ju, lF as vu, cm as xu, co as Uu, cs as wu, l as Hu, cG as Vu, ld as Yu, le as Wu, fa as zu, cw as Ku, cy as Qu, lk as Zu, k as Ju, l7 as Xu, gN as qu, li as $u, l3 as am, cA as sm, lb as em, l9 as rm, kW as tm, d_ as im, e4 as om, fJ as nm, kq as lm, cC as cm, lL as dm, jz as fm, lK as um, kU as mm, kV as hm, bw as Em, il as Sm, ik as gm, ie as Pm, im as pm, ig as Am, ij as Tm, id as Cm, io as Rm, cE as Dm, lN as Fm, lO as Lm, cI as Im, cK as bm, kD as _m, lM as Mm, cM as km, cq as Gm, cu as Om, cO as Bm, cQ as ym, cS as Nm, fX as jm, cU as vm, cW as xm, fK as Um, fM as wm, fU as Hm, cY as Vm, c_ as Ym, d0 as Wm, l6 as zm, d3 as Km, d6 as Qm, d8 as Zm, f8 as Jm, dc as Xm, lI as qm, bO as $m, de as ah, dg as sh, di as eh, lv as rh, jA as th, bQ as ih } from "./index-
|
|
1
|
+
import { iq as e, j8 as r, V as t, a5 as i, b as o, A as n, ga as l, bn as c, bo as d, bp as f, gf as u, jH as m, bV as h, gb as E, g3 as S, dj as g, dk as P, lw as p, f1 as A, f2 as T, dE as C, dK as R, dF as D, dG as F, dH as L, dI as I, eV as b, B as _, n as M, ao as k, ap as G, aq as O, ar as B, as as y, ag as N, gv as j, ja as v, iz as x, bZ as U, gc as w, gw as H, ep as V, b$ as Y, bq as W, bs as z, jI as K, bu as Q, bx as Z, kG as J, f3 as X, gH as q, fc as $, hR as aa, kJ as sa, kK as ea, c1 as ra, eE as ta, c as ia, ib as oa, v as na, ah as la, y as ca, jy as da, x as fa, o as ua, hS as ma, dN as ha, dQ as Ea, dW as Sa, dO as ga, dU as Pa, dT as pa, dV as Aa, dS as Ta, dR as Ca, dX as Ra, bR as Da, bS as Fa, dM as La, bT as Ia, bU as ba, ly as _a, c3 as Ma, gx as ka, hT as Ga, hy as Oa, km as Ba, gd as ya, fL as Na, ir as ja, i9 as va, is as xa, eW as Ua, C as wa, eM as Ha, lQ as Va, eN as Ya, kz as Wa, eL as za, jJ as Ka, bz as Qa, gI as Za, hC as Ja, eR as Xa, eX as qa, c6 as $a, c8 as as, c5 as ss, jK as es, c9 as rs, kL as ts, f0 as is, gy as os, kN as ns, bA as ls, jL as cs, hz as ds, iT as fs, hX as us, gJ as ms, u as hs, t as Es, Q as Ss, cf as gs, a8 as Ps, kC as ps, h as As, D as Ts, i as Cs, fG as Rs, ih as Ds, iU as Fs, hY as Ls, kr as Is, eq as bs, bC as _s, jb as Ms, f5 as ks, ji as Gs, bX as Os, cb as Bs, kn as ys, ge as Ns, hZ as js, hA as vs, cd as xs, cg as Us, ch as ws, eC as Hs, h_ as Vs, j as Ys, a1 as Ws, lE as zs, lD as Ks, E as Qs, iV as Zs, fZ as Js, fY as Xs, gj as qs, gi as $s, b5 as ae, gK as se, cj as ee, kF as re, iP as te, f7 as ie, kc as oe, a4 as ne, F as le, i8 as ce, bD as de, bF as fe, jM as ue, g4 as me, iy as he, b6 as Ee, hv as Se, hu as ge, hV as Pe, h$ as pe, d9 as Ae, hn as Te, ho as Ce, hp as Re, hq as De, it as Fe, e5 as Le, e0 as Ie, jN as be, ju as _e, iv as Me, iu as ke, fl as Ge, ix as Oe, kA as Be, X as ye, ls as Ne, kj as je, jj as ve, iH as xe, q as Ue, aX as we, aY as He, aZ as Ve, a_ as Ye, a$ as We, G as ze, at as Ke, au as Qe, av as Ze, aw as Je, ax as Xe, p as qe, b0 as $e, b1 as ar, b2 as sr, b3 as er, b4 as rr, er as tr, e1 as ir, kO as or, jk as nr, jl as lr, jm as cr, jn as dr, gg as fr, hB as ur, cl as mr, i0 as hr, hN as Er, i1 as Sr, jv as gr, b7 as Pr, bH as pr, cn as Ar, cr as Tr, g5 as Cr, H as Rr, gV as Dr, kI as Fr, hW as Lr, gE as Ir, cF as br, du as _r, I as Mr, ab as kr, fm as Gr, fn as Or, fo as Br, e6 as yr, es as Nr, eO as jr, g2 as vr, eS as xr, e2 as Ur, eP as wr, f6 as Hr, cv as Vr, cx as Yr, lA as Wr, lz as zr, lx as Kr, ae as Qr, L as Zr, _ as Jr, s as Xr, r as qr, $ as $r, gh as at, gM as st, gk as et, gO as rt, e7 as tt, et as it, e8 as ot, eu as nt, hE as lt, gz as ct, dm as dt, j7 as ft, M as ut, J as mt, a0 as ht, fH as Et, hr as St, js as gt, e9 as Pt, kP as pt, fN as At, fO as Tt, g6 as Ct, iI as Rt, iJ as Dt, kR as Ft, b9 as Lt, b8 as It, cz as bt, iw as _t, fd as Mt, ea as kt, jo as Gt, gl as Ot, eH as Bt, fe as yt, gP as Nt, eb as jt, ev as vt, eI as xt, dv as Ut, dw as wt, dl as Ht, ew as Vt, gR as Yt, gQ as Wt, dn as zt, aa as Kt, N as Qt, eD as Zt, gF as Jt, iA as Xt, iB as qt, eY as $t, kQ as ai, jZ as si, a3 as ei, fF as ri, K as ti, aN as ii, aO as oi, aP as ni, aQ as li, aR as ci, O as di, d as fi, j6 as ui, ba as mi, jO as hi, iW as Ei, hF as Si, i2 as gi, dp as Pi, dZ as pi, lS as Ai, lT as Ti, P as Ci, aS as Ri, aT as Di, aU as Fi, aV as Li, aW as Ii, af as bi, j$ as _i, jt as Mi, jP as ki, ke as Gi, kf as Oi, kg as Bi, jq as yi, jQ as Ni, j9 as ji, ad as vi, aD as xi, aE as Ui, aF as wi, aG as Hi, aH as Vi, bc as Yi, bb as Wi, ec as zi, fp as Ki, fq as Qi, gT as Zi, fr as Ji, ed as Xi, jC as qi, iR as $i, gm as ao, hx as so, hw as eo, kS as ro, ee as to, ex as io, kT as oo, iQ as no, iO as lo, iS as co, iX as fo, eJ as uo, kY as mo, i3 as ho, iC as Eo, jR as So, kB as go, k4 as Po, ko as po, ff as Ao, gU as To, eQ as Co, eU as Ro, iK as Do, eZ as Fo, fs as Lo, gn as Io, ef as bo, ey as _o, cB as Mo, jS as ko, jT as Go, bB as Oo, iY as Bo, gU as yo, ez as No, iL as jo, lq as vo, jw as xo, m as Uo, aj as wo, ak as Ho, al as Vo, am as Yo, an as Wo, R as zo, z as Ko, a9 as Qo, jW as Zo, gW as Jo, gX as Xo, kl as qo, gY as $o, hG as an, bI as sn, kZ as en, fu as rn, fv as tn, fw as on, ft as nn, fx as ln, jp as cn, jU as dn, kk as fn, jV as un, k_ as mn, j7 as hn, go as En, je as Sn, jX as gn, jf as Pn, jg as pn, d$ as An, jh as Tn, e3 as Cn, ku as Rn, iZ as Dn, jG as Fn, cD as Ln, i_ as In, hU as bn, i$ as _n, Z as Mn, gp as kn, eg as Gn, dx as On, hi as Bn, hl as yn, fP as Nn, gG as jn, hj as vn, h2 as xn, ei as Un, h8 as wn, hc as Hn, h5 as Vn, h3 as Yn, h4 as Wn, hm as zn, hd as Kn, hb as Qn, hf as Zn, ha as Jn, hg as Xn, hh as qn, h7 as $n, fQ as al, hk as sl, h9 as el, he as rl, h6 as tl, gZ as il, eh as ol, w as nl, a7 as ll, S as cl, lC as dl, lB as fl, fD as ul, fE as ml, k8 as hl, cH as El, cJ as Sl, bd as gl, be as Pl, eF as pl, bJ as Al, gq as Tl, kp as Cl, ej as Rl, k0 as Dl, jc as Fl, jr as Ll, jd as Il, jY as bl, dq as _l, k$ as Ml, k3 as kl, cL as Gl, cp as Ol, ct as Bl, iD as yl, i4 as Nl, cN as jl, j0 as vl, bf as xl, hO as Ul, hH as wl, i5 as Hl, dy as Vl, dL as Yl, j_ as Wl, g_ as zl, cP as Kl, cR as Ql, dr as Zl, ek as Jl, gr as Xl, ds as ql, i6 as $l, gs as ac, dt as sc, gt as ec, el as rc, cT as tc, bg as ic, bK as oc, bh as nc, ks as lc, k1 as cc, hD as dc, k6 as fc, kb as uc, k7 as mc, fy as hc, hI as Ec, eT as Sc, hs as gc, l0 as Pc, em as pc, fA as Ac, fz as Tc, eG as Cc, gS as Rc, ai as Dc, a2 as Fc, aI as Lc, aJ as Ic, aK as bc, aL as _c, aM as Mc, T as kc, a6 as Gc, lu as Oc, i7 as Bc, cV as yc, g$ as Nc, fR as jc, fS as vc, fT as xc, en as Uc, eA as wc, ka as Hc, k9 as Vc, ht as Yc, hP as Wc, bi as zc, e_ as Kc, hJ as Qc, h0 as Zc, cX as Jc, h1 as Xc, bL as qc, bM as $c, bj as ad, dz as sd, dA as ed, dB as rd, dC as td, cZ as id, c$ as od, gu as nd, eo as ld, eB as cd, eK as dd, j1 as fd, j2 as ud, d1 as md, d2 as hd, bk as Ed, e as Sd, U as gd, f as Pd, d5 as pd, d4 as Ad, d7 as Td, k5 as Cd, kw as Rd, kv as Dd, f4 as Fd, db as Ld, lG as Id, g7 as bd, lt as _d, g8 as Md, ac as kd, f$ as Gd, f_ as Od, fI as Bd, iE as yd, g0 as Nd, kx as jd, iM as vd, iN as xd, bl as Ud, fB as wd, fC as Hd, dD as Vd, kt as Yd, ky as Wd, bm as zd, hQ as Kd, hK as Qd, kd as Zd, W as Jd, jx as Xd, bN as qd, ia as $d, dd as af, iF as sf, j3 as ef, df as rf, dh as tf, j4 as of, iG as nf, bP as lf, Y as cf, ay as df, az as ff, aA as uf, aB as mf, aC as hf, j5 as Ef, g9 as Sf, lP as gf, g1 as Pf, lh as pf, bW as Af, lj as Tf, b_ as Cf, ll as Rf, lm as Df, l5 as Ff, l4 as Lf, c0 as If, br as bf, bt as _f, bv as Mf, by as kf, kH as Gf, lr as Of, gB as Bf, gA as yf, ic as Nf, ii as jf, hM as vf, kh as xf, ip as Uf, gC as wf, ki as Hf, c2 as Vf, dP as Yf, dY as Wf, c4 as zf, e$ as Kf, fW as Qf, fV as Zf, jB as Jf, c7 as Xf, fg as qf, lJ as $f, lH as au, jE as su, fk as eu, lR as ru, fh as tu, fj as iu, fi as ou, jD as nu, ln as lu, ca as cu, lc as du, l8 as fu, l2 as uu, kE as mu, la as hu, k2 as Eu, lo as Su, f9 as gu, lg as Pu, lf as pu, bY as Au, cc as Tu, l1 as Cu, ce as Ru, ci as Du, kX as Fu, dJ as Lu, gL as Iu, ck as bu, fb as _u, bE as Mu, bG as ku, da as Gu, hL as Ou, kM as Bu, gD as yu, jF as Nu, lp as ju, lF as vu, cm as xu, co as Uu, cs as wu, l as Hu, cG as Vu, ld as Yu, le as Wu, fa as zu, cw as Ku, cy as Qu, lk as Zu, k as Ju, l7 as Xu, gN as qu, li as $u, l3 as am, cA as sm, lb as em, l9 as rm, kW as tm, d_ as im, e4 as om, fJ as nm, kq as lm, cC as cm, lL as dm, jz as fm, lK as um, kU as mm, kV as hm, bw as Em, il as Sm, ik as gm, ie as Pm, im as pm, ig as Am, ij as Tm, id as Cm, io as Rm, cE as Dm, lN as Fm, lO as Lm, cI as Im, cK as bm, kD as _m, lM as Mm, cM as km, cq as Gm, cu as Om, cO as Bm, cQ as ym, cS as Nm, fX as jm, cU as vm, cW as xm, fK as Um, fM as wm, fU as Hm, cY as Vm, c_ as Ym, d0 as Wm, l6 as zm, d3 as Km, d6 as Qm, d8 as Zm, f8 as Jm, dc as Xm, lI as qm, bO as $m, de as ah, dg as sh, di as eh, lv as rh, jA as th, bQ as ih } from "./index-C7UzgTiw.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AABB,
|
|
4
4
|
r as AA_Method,
|
package/package.json
CHANGED
|
@@ -1,117 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "retiam",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "WebGPU powered animation engine",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/retiam.es.js",
|
|
7
|
-
"module": "./dist/retiam.es.js",
|
|
8
|
-
"types": "./dist/src/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/src/index.d.ts",
|
|
12
|
-
"import": "./dist/retiam.es.js"
|
|
13
|
-
},
|
|
14
|
-
"./dist/assets/*": "./dist/assets/*",
|
|
15
|
-
"./*": {
|
|
16
|
-
"types": "./dist/libs/*/index.d.ts",
|
|
17
|
-
"import": "./dist/libs/*/index.js"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"bin": {
|
|
21
|
-
"retiam": "./bin/cli.js"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist/*.js",
|
|
25
|
-
"dist/assets/**",
|
|
26
|
-
"dist/libs/**/*.js",
|
|
27
|
-
"dist/libs/**/*.d.ts",
|
|
28
|
-
"dist/src/**/*.d.ts",
|
|
29
|
-
"bin"
|
|
30
|
-
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "vite",
|
|
33
|
-
"build": "tsc && vite build",
|
|
34
|
-
"prepack": "npm run build",
|
|
35
|
-
"build:watch": "vite build --watch",
|
|
36
|
-
"export": "node ./bin/cli.js export",
|
|
37
|
-
"render": "node ./bin/cli.js render",
|
|
38
|
-
"lint:scene": "node ./bin/cli.js lint",
|
|
39
|
-
"snapshot": "node ./bin/cli.js snapshot",
|
|
40
|
-
"init": "node ./bin/cli.js init",
|
|
41
|
-
"create": "node ./bin/cli.js create",
|
|
42
|
-
"cdn": "vite preview",
|
|
43
|
-
"start": "npm run dev",
|
|
1
|
+
{
|
|
2
|
+
"name": "retiam",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "WebGPU powered animation engine",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/retiam.es.js",
|
|
7
|
+
"module": "./dist/retiam.es.js",
|
|
8
|
+
"types": "./dist/src/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/src/index.d.ts",
|
|
12
|
+
"import": "./dist/retiam.es.js"
|
|
13
|
+
},
|
|
14
|
+
"./dist/assets/*": "./dist/assets/*",
|
|
15
|
+
"./*": {
|
|
16
|
+
"types": "./dist/libs/*/index.d.ts",
|
|
17
|
+
"import": "./dist/libs/*/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"retiam": "./bin/cli.js"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/*.js",
|
|
25
|
+
"dist/assets/**",
|
|
26
|
+
"dist/libs/**/*.js",
|
|
27
|
+
"dist/libs/**/*.d.ts",
|
|
28
|
+
"dist/src/**/*.d.ts",
|
|
29
|
+
"bin"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "vite",
|
|
33
|
+
"build": "tsc && vite build",
|
|
34
|
+
"prepack": "npm run build",
|
|
35
|
+
"build:watch": "vite build --watch",
|
|
36
|
+
"export": "node ./bin/cli.js export",
|
|
37
|
+
"render": "node ./bin/cli.js render",
|
|
38
|
+
"lint:scene": "node ./bin/cli.js lint",
|
|
39
|
+
"snapshot": "node ./bin/cli.js snapshot",
|
|
40
|
+
"init": "node ./bin/cli.js init",
|
|
41
|
+
"create": "node ./bin/cli.js create",
|
|
42
|
+
"cdn": "vite preview",
|
|
43
|
+
"start": "npm run dev",
|
|
44
44
|
"resolve": "npm i",
|
|
45
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
46
|
-
"test:distribution": "node --import tsx --test test/library_portability_test.ts test/package_contents_test.mjs",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"@
|
|
57
|
-
"@types/
|
|
58
|
-
"@types/
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"ts-jest": "^29.1.2",
|
|
68
|
-
"ts-node": "^10.9.2",
|
|
69
|
-
"tsx": "^4.22.4",
|
|
70
|
-
"vite-plugin-dts": "^5.0.1",
|
|
71
|
-
"vite-plugin-mkcert": "^2.0.0"
|
|
72
|
-
},
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"svg-parser": "^2.0.4",
|
|
109
|
-
"svg-pathdata": "^7.0.0",
|
|
110
|
-
"typescript": "^5.4.5",
|
|
111
|
-
"vite": "^6.1.1",
|
|
112
|
-
"webm-muxer": "^5.1.4",
|
|
113
|
-
"wgsl_reflect": "^1.2.3",
|
|
114
|
-
"woff2-encoder": "^2.0.0",
|
|
115
|
-
"ws": "^8.16.0"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
45
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
46
|
+
"test:distribution": "node --import tsx --test test/library_portability_test.ts test/package_contents_test.mjs test/render_config_test.mjs",
|
|
47
|
+
"test:create": "node --test test/create_retiam_test.mjs",
|
|
48
|
+
"test:studio-layout": "node --test test/studio_layout.test.mjs",
|
|
49
|
+
"unit-test": "ts-node-esm test/test.ts",
|
|
50
|
+
"gen-context": "ts-node tools/context_gen/context_generator.ts ./src",
|
|
51
|
+
"gen-index": "node ./tools/index_generator/generate-index.cjs"
|
|
52
|
+
},
|
|
53
|
+
"author": "Abhilas Biswas",
|
|
54
|
+
"license": "ISC",
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@lightningjs/msdf-generator": "^1.1.1",
|
|
57
|
+
"@types/earcut": "^3.0.0",
|
|
58
|
+
"@types/events": "^3.0.3",
|
|
59
|
+
"@types/integer": "^4.0.3",
|
|
60
|
+
"@types/jest": "^29.5.12",
|
|
61
|
+
"@types/matter-js": "^0.20.2",
|
|
62
|
+
"@types/node": "^22.2.0",
|
|
63
|
+
"@webgpu/types": "^0.1.31",
|
|
64
|
+
"jest": "^29.7.0",
|
|
65
|
+
"msdf-atlas-gen": "^1.0.0",
|
|
66
|
+
"msdf-bmfont-xml": "^2.7.0",
|
|
67
|
+
"ts-jest": "^29.1.2",
|
|
68
|
+
"ts-node": "^10.9.2",
|
|
69
|
+
"tsx": "^4.22.4",
|
|
70
|
+
"vite-plugin-dts": "^5.0.1",
|
|
71
|
+
"vite-plugin-mkcert": "^2.0.0"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@dimforge/rapier2d-compat": "^0.20.0",
|
|
75
|
+
"@dimforge/rapier3d-compat": "^0.20.0",
|
|
76
|
+
"@types/libtess": "^1.2.0",
|
|
77
|
+
"@types/prismjs": "^1.26.6",
|
|
78
|
+
"@zappar/msdf-generator": "^1.2.4",
|
|
79
|
+
"box3d-wasm": "^0.2.0",
|
|
80
|
+
"cli-progress": "^3.12.0",
|
|
81
|
+
"earcut": "^3.0.2",
|
|
82
|
+
"events": "^3.3.0",
|
|
83
|
+
"extrude-polyline": "^1.0.6",
|
|
84
|
+
"jolt-physics": "^1.1.0",
|
|
85
|
+
"libtess": "^1.2.2",
|
|
86
|
+
"mathjax-full": "^3.2.2",
|
|
87
|
+
"matter-js": "^0.20.0",
|
|
88
|
+
"mp4-muxer": "^5.2.2",
|
|
89
|
+
"msedge-tts": "^2.0.8",
|
|
90
|
+
"oidn-web": "^0.3.5",
|
|
91
|
+
"opentype.js": "^1.3.4",
|
|
92
|
+
"path-data-parser": "^0.1.0",
|
|
93
|
+
"planck": "^1.5.0",
|
|
94
|
+
"polygon-clipping": "^0.15.7",
|
|
95
|
+
"prismjs": "^1.30.0",
|
|
96
|
+
"puppeteer": "^21.11.0",
|
|
97
|
+
"roughjs": "^4.6.6",
|
|
98
|
+
"svg-parser": "^2.0.4",
|
|
99
|
+
"svg-pathdata": "^7.0.0",
|
|
100
|
+
"typescript": "^5.4.5",
|
|
101
|
+
"vite": "^6.1.1",
|
|
102
|
+
"webm-muxer": "^5.1.4",
|
|
103
|
+
"wgsl_reflect": "^1.2.3",
|
|
104
|
+
"woff2-encoder": "^2.0.0",
|
|
105
|
+
"ws": "^8.16.0"
|
|
106
|
+
}
|
|
107
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,145 +1,157 @@
|
|
|
1
|
-
# Retiam
|
|
2
|
-
|
|
3
|
-
Retiam is a TypeScript animation engine built on WebGPU. Write scenes for mathematical explanations, data visualizations, and 2D or 3D animation, then preview them in a browser, render video, or export an interactive web embed.
|
|
4
|
-
|
|
5
|
-
**[Documentation](https://abhilasbiswas.github.io/retiam-docs/)** · [Getting started](https://abhilasbiswas.github.io/retiam-docs/getting-started/) · [Examples](https://abhilasbiswas.github.io/retiam-docs/examples-catalog/) · [API reference](https://abhilasbiswas.github.io/retiam-docs/api-core/)
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- **Scene authoring:** compose entities, groups, layouts, cameras, and interaction with TypeScript.
|
|
10
|
-
- **Animation and timing:** choreograph transitions with asynchronous timelines, easing, tracks, and value trackers.
|
|
11
|
-
- **Mathematical graphics:** create coordinate systems, plots, vector geometry, LaTeX equations, text, and highlighted code.
|
|
12
|
-
- **Rendering:** combine 2D paths, 3D meshes, lighting, shadows, compute effects, and post-processing.
|
|
13
|
-
- **Specialized libraries:** add charts, graphs, physics, procedural shapes, sketch styling, and emphasis animations through separate imports.
|
|
14
|
-
- **Audio and output:** work with audio, narration, and subtitles; inspect snapshots, render video, or share scenes as web components.
|
|
15
|
-
|
|
16
|
-
## Getting started
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```typescript
|
|
44
|
-
import {
|
|
45
|
-
|
|
46
|
-
export default
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
await
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
1
|
+
# Retiam
|
|
2
|
+
|
|
3
|
+
Retiam is a TypeScript animation engine built on WebGPU. Write scenes for mathematical explanations, data visualizations, and 2D or 3D animation, then preview them in a browser, render video, or export an interactive web embed.
|
|
4
|
+
|
|
5
|
+
**[Documentation](https://abhilasbiswas.github.io/retiam-docs/)** · [Getting started](https://abhilasbiswas.github.io/retiam-docs/getting-started/) · [Examples](https://abhilasbiswas.github.io/retiam-docs/examples-catalog/) · [API reference](https://abhilasbiswas.github.io/retiam-docs/api-core/)
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Scene authoring:** compose entities, groups, layouts, cameras, and interaction with TypeScript.
|
|
10
|
+
- **Animation and timing:** choreograph transitions with asynchronous timelines, easing, tracks, and value trackers.
|
|
11
|
+
- **Mathematical graphics:** create coordinate systems, plots, vector geometry, LaTeX equations, text, and highlighted code.
|
|
12
|
+
- **Rendering:** combine 2D paths, 3D meshes, lighting, shadows, compute effects, and post-processing.
|
|
13
|
+
- **Specialized libraries:** add charts, graphs, physics, procedural shapes, sketch styling, and emphasis animations through separate imports.
|
|
14
|
+
- **Audio and output:** work with audio, narration, and subtitles; inspect snapshots, render video, or share scenes as web components.
|
|
15
|
+
|
|
16
|
+
## Getting started
|
|
17
|
+
|
|
18
|
+
The project generator creates a TypeScript application, installs its dependencies,
|
|
19
|
+
and opens Retiam Studio with a **Write** animation of “Retiam”:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx create-retiam my-animation
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Run `npm run dev` inside the generated project to reopen Studio. Use `--no-start`
|
|
26
|
+
to install without launching or `--no-install` to generate files only. The
|
|
27
|
+
[`create-retiam` package](packages/create-retiam/README.md) is released separately
|
|
28
|
+
from the engine; see its maintainer instructions for packaging and publication.
|
|
29
|
+
|
|
30
|
+
### Manual setup
|
|
31
|
+
|
|
32
|
+
Install Retiam in your own TypeScript application:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install retiam
|
|
36
|
+
npm install --save-dev typescript vite @webgpu/types
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Follow the [installation guide](https://abhilasbiswas.github.io/retiam-docs/installation/) for the complete project structure, TypeScript configuration, and browser entry point. To use an unpublished checkout, run `npm pack` in this repository and install the generated `.tgz` file in your application.
|
|
40
|
+
|
|
41
|
+
For Vite applications, preserve Retiam's packaged module and asset URLs by excluding it from dependency prebundling in `vite.config.ts`:
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { defineConfig } from "vite";
|
|
45
|
+
|
|
46
|
+
export default defineConfig({
|
|
47
|
+
optimizeDeps: { exclude: ["retiam"] },
|
|
48
|
+
});
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Retiam requires a WebGPU-capable browser and compatible GPU. Serve browser applications over HTTPS or localhost.
|
|
52
|
+
|
|
53
|
+
### Your first scene
|
|
54
|
+
|
|
55
|
+
Save this as `scenes/FirstScene.ts`. Scenes define their animation in an asynchronous `run()` method; durations are in milliseconds.
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
import { Scene, Circle, Create, FadeOut, CameraModel, hex } from "retiam";
|
|
59
|
+
|
|
60
|
+
export default class FirstScene extends Scene {
|
|
61
|
+
async run() {
|
|
62
|
+
this.clearColor(hex("#090E1B"));
|
|
63
|
+
this.camera.model = CameraModel.ORTHOGRAPHIC;
|
|
64
|
+
this.camera.orthoScale = 12;
|
|
65
|
+
this.camera.position.set([0, 0, 20]);
|
|
66
|
+
this.camera.lookAt([0, 0, 0]);
|
|
67
|
+
|
|
68
|
+
const circle = new Circle(1, { fill: hex("#38BDF8") });
|
|
69
|
+
circle.move([-2, 0, 0]);
|
|
70
|
+
this.add(circle);
|
|
71
|
+
|
|
72
|
+
await this.play(new Create(circle, { duration: 1200 }));
|
|
73
|
+
await this.play(circle.animate.move([2, 0, 0]), { duration: 1000 });
|
|
74
|
+
await this.wait(800);
|
|
75
|
+
await this.play(new FadeOut(circle, { duration: 600 }));
|
|
76
|
+
await this.wait(400);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Start the scene from your application's browser entry point, `src/main.ts`:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import FirstScene from "../scenes/FirstScene";
|
|
85
|
+
|
|
86
|
+
const canvas = document.querySelector<HTMLCanvasElement>("#canvas");
|
|
87
|
+
if (!canvas) throw new Error("Missing scene canvas.");
|
|
88
|
+
|
|
89
|
+
const scene = new FirstScene();
|
|
90
|
+
await scene.start(canvas);
|
|
91
|
+
window.addEventListener("pagehide", () => scene.destroy(), { once: true });
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The host page needs a `<canvas id="canvas"></canvas>` with an explicit CSS display size. Continue with [your first scene](https://abhilasbiswas.github.io/retiam-docs/first-scene/) for animation, camera, and lifecycle guidance.
|
|
95
|
+
|
|
96
|
+
## CLI and video rendering
|
|
97
|
+
|
|
98
|
+
Use the CLI to analyze scenes, capture PNG snapshots, and render video:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npx retiam lint scenes/FirstScene.ts --json
|
|
102
|
+
npx retiam snapshot scenes/FirstScene.ts --times 1.0,2.5,4.0 --json
|
|
103
|
+
npx retiam render scenes/FirstScene.ts -w 1920 -h 1080 -f 60 -d 4000 -o outputs/video
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Puppeteer is a required production dependency of Retiam starting with version 1.0.1 and is installed automatically with the package. Render and snapshot commands need a working Chrome/WebGPU setup. Video rendering also requires FFmpeg on your `PATH`.
|
|
107
|
+
|
|
108
|
+
Projects made with `create-retiam` include a commented `config.js` containing all CLI and engine render defaults. `npx retiam render` reads it from the calling project; `retiam.config.js` takes priority when present, and CLI flags override file settings. Settings include video output, anti-aliasing, transparency, shadows, shading, raytracing, and denoising.
|
|
109
|
+
|
|
110
|
+
For rendering and snapshots, your project must include an `index.html` host that loads the scene selected by the CLI's `file` query parameter. Use the host from the [installation guide](https://abhilasbiswas.github.io/retiam-docs/installation/#create-a-consumer-application). Render duration (`-d`) is in milliseconds; output (`-o`) is a directory.
|
|
111
|
+
|
|
112
|
+
See [rendering and export](https://abhilasbiswas.github.io/retiam-docs/export/) for project setup and encoding options, or follow [package-based embeds](https://abhilasbiswas.github.io/retiam-docs/export/#embed-from-npm) to bundle a scene for another website. Run `npx retiam help` for the command reference.
|
|
113
|
+
|
|
114
|
+
## Libraries
|
|
115
|
+
|
|
116
|
+
Import shared scene primitives from `retiam` and specialized functionality from its own entry point.
|
|
117
|
+
|
|
118
|
+
| Import | Purpose |
|
|
119
|
+
| --- | --- |
|
|
120
|
+
| `retiam` | Scenes, entities, animations, cameras, geometry, text, and core math |
|
|
121
|
+
| `retiam/shapes` | Procedural 2D paths and 3D meshes |
|
|
122
|
+
| `retiam/charts` | Cartesian and polar charts, scales, themes, and tooltips |
|
|
123
|
+
| `retiam/graphs` | Graphs, layouts, automata, and tapes |
|
|
124
|
+
| `retiam/highlights` | Emphasis and attention animations |
|
|
125
|
+
| `retiam/physics` | 2D and 3D physics integrations |
|
|
126
|
+
| `retiam/rough` | RoughJS styling integration |
|
|
115
127
|
| `retiam/tts` | Microsoft Edge speech synthesis, narration, and subtitles |
|
|
116
|
-
|
|
117
|
-
See the [library guide](https://abhilasbiswas.github.io/retiam-docs/libraries/) for import boundaries and examples.
|
|
118
|
-
|
|
128
|
+
|
|
129
|
+
See the [library guide](https://abhilasbiswas.github.io/retiam-docs/libraries/) for import boundaries and examples. Starting with Retiam 1.0.1, `roughjs` is a required production dependency and is installed automatically.
|
|
130
|
+
|
|
119
131
|
Built-in fonts and imported engine assets are included in the library package. Application media is managed separately. Edge speech synthesis in the browser requires a compatible service. See [asset workflows](https://abhilasbiswas.github.io/retiam-docs/asset-workflows/) and [speech and subtitles](https://abhilasbiswas.github.io/retiam-docs/speech-subtitles/) for setup.
|
|
120
|
-
|
|
121
|
-
## Repository development
|
|
122
|
-
|
|
123
|
-
Use Node.js 24, matching the documentation CI configuration.
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
git clone https://github.com/abhilasbiswas/Retiam.git
|
|
127
|
-
cd Retiam
|
|
128
|
-
npm ci
|
|
129
|
-
npm run dev
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Open the URL printed by Vite. Retiam Studio is available at `/studio/` on the same server. See the [tooling guide](https://abhilasbiswas.github.io/retiam-docs/tooling/) for the editor, inspector, and playback controls.
|
|
133
|
-
|
|
134
|
-
### Documentation development
|
|
135
|
-
|
|
136
|
-
The viewer, authored guides, examples, assets, API reference data, and Pages workflow are maintained in the separate [retiam-docs repository](https://github.com/abhilasbiswas/retiam-docs). It installs, builds, and deploys independently of this engine checkout. See that repository's README and deployment guide for local development and publishing.
|
|
137
|
-
|
|
138
|
-
## Documentation and source
|
|
139
|
-
|
|
140
|
-
- [Handbook](https://abhilasbiswas.github.io/retiam-docs/): guides, tutorials, examples, and API references.
|
|
141
|
-
- [Compatibility notes](https://abhilasbiswas.github.io/retiam-docs/limitations/): current implementation boundaries and known differences from historical examples.
|
|
142
|
-
- [Architecture notes](docs/README.md): detailed subsystem documentation.
|
|
143
|
-
- [Example sources](examples/): repository scenes and integrations.
|
|
144
|
-
- [Agent skill](.agents/skills/retiam/SKILL.md): scene-authoring guidance for coding assistants.
|
|
145
|
-
|
|
132
|
+
|
|
133
|
+
## Repository development
|
|
134
|
+
|
|
135
|
+
Use Node.js 24, matching the documentation CI configuration.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
git clone https://github.com/abhilasbiswas/Retiam.git
|
|
139
|
+
cd Retiam
|
|
140
|
+
npm ci
|
|
141
|
+
npm run dev
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Open the URL printed by Vite. Retiam Studio is available at `/studio/` on the same server. See the [tooling guide](https://abhilasbiswas.github.io/retiam-docs/tooling/) for the editor, inspector, and playback controls.
|
|
145
|
+
|
|
146
|
+
### Documentation development
|
|
147
|
+
|
|
148
|
+
The viewer, authored guides, examples, assets, API reference data, and Pages workflow are maintained in the separate [retiam-docs repository](https://github.com/abhilasbiswas/retiam-docs). It installs, builds, and deploys independently of this engine checkout. See that repository's README and deployment guide for local development and publishing.
|
|
149
|
+
|
|
150
|
+
## Documentation and source
|
|
151
|
+
|
|
152
|
+
- [Handbook](https://abhilasbiswas.github.io/retiam-docs/): guides, tutorials, examples, and API references.
|
|
153
|
+
- [Compatibility notes](https://abhilasbiswas.github.io/retiam-docs/limitations/): current implementation boundaries and known differences from historical examples.
|
|
154
|
+
- [Architecture notes](docs/README.md): detailed subsystem documentation.
|
|
155
|
+
- [Example sources](examples/): repository scenes and integrations.
|
|
156
|
+
- [Agent skill](.agents/skills/retiam/SKILL.md): scene-authoring guidance for coding assistants.
|
|
157
|
+
|