@wardic/object 0.0.0-stage → 1.3.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.
@@ -0,0 +1,380 @@
1
+ /**
2
+ * Wardic for any object's properties: Motion's `animate` on plain objects (a three.js mesh's material,
3
+ * a camera, a uniforms object, a Canvas 2D sprite, a plain `{ x, y }`), on frames the host pumps. One
4
+ * runtime per Host loop: `make` builds it, the host calls `frame(time)` once a frame before it renders,
5
+ * and `dispose` ends it.
6
+ *
7
+ * - **Keys** are an object's own properties, by name: `animate(sprite, { x: 100 })` writes `sprite.x`.
8
+ * Each starts from the property's value when the animation starts. A key the object doesn't have,
9
+ * or whose value is neither a number nor a string, is an error naming it.
10
+ * - **Values** are numbers, and strings with a unit or of numbers (`"10px"`, `"0 0 4px"`). An array in
11
+ * a target is keyframes, as Motion's.
12
+ * - **Transitions** are Motion's by a key's name when a key gives none: a spring for a transform's
13
+ * (`x`, `rotate`, `scale`…), a 0.3 s ease for any other.
14
+ * - **The controls** are the DOM's: awaitable, with `stop`, `cancel`, `complete`, `pause`, `play`,
15
+ * `speed`, `time` and `duration`. A later `animate` of a key takes it over, keeping its velocity.
16
+ *
17
+ * @example
18
+ * import * as WardicObject from "@wardic/object/WardicObject"
19
+ *
20
+ * const wardic = WardicObject.make()
21
+ * renderer.setAnimationLoop((time) => {
22
+ * wardic.frame(time)
23
+ * renderer.render(scene, camera)
24
+ * })
25
+ * await wardic.animate(material, { opacity: 0 }, { duration: 0.4 })
26
+ */
27
+ // `@wardic/object/WardicObject` (#882; ADR-0068 decisions 2 and 5, ADR-0069 decision 21; ADR-0073,
28
+ // *Amendment (#882)*, Q4–Q6): core's Imperative track (`@wardic/core/unstable/Imperative`) over plain
29
+ // objects, on `PumpedFrames`, with core's Frame effects at each frame's end (`afterWrites`). Its Batches
30
+ // are PR 3's (`ObjectBatch`).
31
+ import * as Announcer from "@wardic/core/Announcer"
32
+ import * as Clock from "@wardic/core/Clock"
33
+ import * as DefaultTransition from "@wardic/core/DefaultTransition"
34
+ import * as FrameLoop from "@wardic/core/FrameLoop"
35
+ import * as InputFeed from "@wardic/core/InputFeed"
36
+ import * as InterpolatorRegistry from "@wardic/core/InterpolatorRegistry"
37
+ import * as Probe from "@wardic/core/Probe"
38
+ import type * as Renderer from "@wardic/core/Renderer"
39
+ import type * as Batch from "@wardic/core/Batch"
40
+ import * as ReducedMotion from "@wardic/core/ReducedMotion"
41
+ import * as UnitScale from "@wardic/core/UnitScale"
42
+ import type * as Config from "@wardic/core/unstable/Config"
43
+ import * as FlushGate from "@wardic/core/unstable/FlushGate"
44
+ import type * as OwnValues from "@wardic/core/unstable/OwnValues"
45
+ import type * as Spine from "@wardic/core/unstable/Spine"
46
+ import * as FrameEffects from "@wardic/core/unstable/FrameEffects"
47
+ import * as BatchCalls from "@wardic/core/unstable/BatchCalls"
48
+ import * as Imperative from "@wardic/core/unstable/Imperative"
49
+ import * as Report from "@wardic/core/unstable/Report"
50
+ import * as WardicServices from "@wardic/core/unstable/WardicServices"
51
+ import * as Arr from "effect/Array"
52
+ import * as Bool from "effect/Boolean"
53
+ import * as Cause from "effect/Cause"
54
+ import * as Context from "effect/Context"
55
+ import * as Effect from "effect/Effect"
56
+ import { constUndefined } from "effect/Function"
57
+ import * as Iter from "effect/Iterable"
58
+ import * as Layer from "effect/Layer"
59
+ import * as ManagedRuntime from "effect/ManagedRuntime"
60
+ import * as Option from "effect/Option"
61
+ import * as Predicate from "effect/Predicate"
62
+ import * as Atom from "effect/reactivity/Atom"
63
+ import * as AtomRegistry from "effect/reactivity/AtomRegistry"
64
+ import * as Stream from "effect/Stream"
65
+ import * as UndefinedOr from "effect/UndefinedOr"
66
+ import * as ObjectBatch from "./ObjectBatch.ts"
67
+ import * as ObjectRenderer from "./ObjectRenderer.ts"
68
+ import * as ObjectValues from "./ObjectValues.ts"
69
+ import * as PumpedFrames from "./PumpedFrames.ts"
70
+
71
+ /** A key of `T` Wardic animates: one whose value is a number or a string. */
72
+ export type AnimatableKey<T> = { readonly [K in keyof T]-?: T[K] extends number | string ? K : never }[keyof T] & string
73
+
74
+ /** A target for `T`: each of its animatable keys a value or keyframes, with a transition and a Transition end. */
75
+ export type ObjectTarget<T> = {
76
+ readonly [K in AnimatableKey<T>]?: T[K] | Config.WardicKeyframes<T[K]>
77
+ } & {
78
+ readonly transition?: Config.WardicTransition | undefined
79
+ readonly transitionEnd?: { readonly [K in AnimatableKey<T>]?: T[K] } | undefined
80
+ }
81
+
82
+ /** A Segment of objects, `[subject, target, options?]`: an object, or a list of them. Motion's. */
83
+ export type ObjectSegment =
84
+ | readonly [subject: object | ReadonlyArray<object>, target: Readonly<Record<string, number | string | Config.WardicKeyframes<number | string>>>]
85
+ | readonly [subject: object | ReadonlyArray<object>, target: Readonly<Record<string, number | string | Config.WardicKeyframes<number | string>>>, options: Imperative.WardicSegmentOptions]
86
+
87
+ /** A Segment of a Batch, `[batch, target, options?]`: every member, or a member's handle, `batch.at(i)`. */
88
+ export type ObjectBatchSegment =
89
+ | readonly [batch: ObjectBatch.ObjectBatch<any, any> | ObjectBatch.Member<any, any>, target: Readonly<Record<string, ObjectBatch.SegmentValue>>]
90
+ | readonly [batch: ObjectBatch.ObjectBatch<any, any> | ObjectBatch.Member<any, any>, target: Readonly<Record<string, ObjectBatch.SegmentValue>>, options: Imperative.WardicSegmentOptions]
91
+
92
+ /** A sequence of objects: Segments of objects and of Batches, function Segments and labels. Motion's `AnimationSequence`. */
93
+ export type ObjectSequence = ReadonlyArray<Imperative.WardicSequenceLabel | ObjectSegment | ObjectBatchSegment | Imperative.WardicFunctionSegment>
94
+
95
+ /**
96
+ * `animate(subject, target, options?)` animates an object, or each of a list of them, to `target`;
97
+ * `animate(sequence, options?)` plays a sequence. Either returns its Playback controls. Motion's.
98
+ */
99
+ export interface ObjectAnimate {
100
+ <T extends object>(batch: ObjectBatch.ObjectBatch<T> | ObjectBatch.Member<T>, target: ObjectBatch.Target<T>, options?: Imperative.WardicAnimateOptions): Imperative.WardicPlaybackControls
101
+ <T extends object>(subject: T | ReadonlyArray<T>, target: ObjectTarget<T>, options?: Imperative.WardicAnimateOptions): Imperative.WardicPlaybackControls
102
+ (sequence: ObjectSequence, options?: Imperative.WardicSequenceOptions): Imperative.WardicPlaybackControls
103
+ }
104
+
105
+ /** A runtime's options. */
106
+ export interface Options {
107
+ /**
108
+ * Whether reduced motion applies (`"user"`, the default: the user's preference where the host
109
+ * reports one, through `matchMedia`, else never; `"always"`; `"never"`). Under it, a transform's
110
+ * keys (`x`, `rotate`, `scale`…) snap to their targets after their delay, and other keys animate.
111
+ */
112
+ readonly reducedMotion?: ReducedMotion.Config | undefined
113
+ /** Land every animation on its next frame: for tests and screenshots, and a user who turned motion off. */
114
+ readonly skipAnimations?: boolean | undefined
115
+ /** The `AtomRegistry` Live values are shared through: the page's, so a DOM value can drive an object's. */
116
+ readonly registry?: AtomRegistry.AtomRegistry | undefined
117
+ /** The host's steady clock on its frames' timebase: `performance.now()` when left out. */
118
+ readonly now?: (() => number) | undefined
119
+ }
120
+
121
+ /**
122
+ * What a binding's ward runs on, to move this runtime's Subjects as a ward moves an element: what
123
+ * `animate` runs on, where a Subject starts, and its Frame effects. Unstable: for `@wardic/solid`'s
124
+ * Stage ward and the Stages built on it.
125
+ */
126
+ // #884's PR 4 (ADR-0073, *Amendment (#884)*, Q2 and Q3): `makeWith`'s own parts, opened up, not copied.
127
+ export interface StageEnvironment extends Imperative.AnimateEnv {
128
+ /** Where each key of a Subject starts: its Environment's Base-value links. */
129
+ readonly startLinksOf: (subject: object) => Spine.StartLinks
130
+ /** Its Frame effects: what `afterWrites` adds to, and how one asks for a frame. */
131
+ readonly frameEffects: Pick<FrameEffects.FrameEffects, "add" | "request">
132
+ }
133
+
134
+ /** A runtime: what animates objects on one Host loop. */
135
+ export interface WardicObject {
136
+ readonly animate: ObjectAnimate
137
+ /**
138
+ * A Batch of `objects`: one run for all of them, on the keys of its first `animate` (or `keys`).
139
+ * `animate(batch, target)` moves every member; `animate(batch.at(i), target)` member `i`.
140
+ */
141
+ readonly batch: <T extends object>(objects: ReadonlyArray<T>, options?: ObjectBatch.Options<T>) => ObjectBatch.ObjectBatch<T>
142
+ /**
143
+ * Run `effect` at the end of each frame from now on, after Wardic's writes for it and the effects
144
+ * added before it, with the frame's time in ms: an app's own code before the render. Returns its remover.
145
+ */
146
+ readonly afterWrites: (effect: (time: number) => void) => () => void
147
+ /** Run the frame, `time` in ms: Wardic's writes for it, then `afterWrites`' effects. Call it once a frame, before rendering. */
148
+ readonly frame: (time: number) => void
149
+ /** Whether Wardic wants another frame: what a loop that draws on demand checks to go on. */
150
+ readonly wantsFrame: () => boolean
151
+ /** Stop every animation, and end the runtime. */
152
+ readonly dispose: () => void
153
+ /** What a binding's ward runs on, for this runtime's Subjects. Unstable: `@wardic/solid`'s Stage ward's. */
154
+ readonly stageEnvironment: StageEnvironment
155
+ }
156
+
157
+ /** A media query's answer, where the host has `matchMedia`. */
158
+ interface MediaQuery {
159
+ readonly matches: boolean
160
+ }
161
+
162
+ /** The user's reduced-motion query, where the host has `matchMedia`; none in Node or a worker. */
163
+ const reducedMotionQuery = (): MediaQuery | undefined =>
164
+ UndefinedOr.match((globalThis as { readonly matchMedia?: ((query: string) => MediaQuery) | undefined }).matchMedia, {
165
+ onUndefined: constUndefined,
166
+ onDefined: (matchMedia) => matchMedia("(prefers-reduced-motion: reduce)"),
167
+ })
168
+
169
+ /** Whether `query` says the user prefers reduced motion, now. */
170
+ const prefersOf = (query: MediaQuery | undefined): boolean => UndefinedOr.match(query, { onUndefined: () => false, onDefined: (given) => given.matches })
171
+
172
+ /** A box of nothing: an object has no layout to measure. */
173
+ const ZERO_BOUNDS: Probe.Bounds = { x: 0, y: 0, width: 0, height: 0, top: 0, right: 0, bottom: 0, left: 0 }
174
+
175
+ /** The Probe of an Environment with no layout: nothing to measure, observe or intersect; the user's preference as the host reports it. */
176
+ const probeLayer = (query: MediaQuery | undefined): Layer.Layer<Probe.Probe> =>
177
+ Layer.succeed(Probe.Probe, {
178
+ measure: () => Effect.succeed(ZERO_BOUNDS),
179
+ viewport: Atom.make({ width: 0, height: 0 }),
180
+ prefersReducedMotion: Atom.make(prefersOf(query)),
181
+ visible: Atom.make(true),
182
+ observeResize: () => Stream.never,
183
+ observeIntersection: () => InputFeed.empty,
184
+ })
185
+
186
+ /**
187
+ * A Batch of something that isn't a list of Subjects, an `InstancedMesh`'s instances: a handle per
188
+ * member, and how they're drawn and read.
189
+ */
190
+ // #883's PR 4 (ADR-0073, *Amendment (#883)*, PR 4's Q1): one writer per source, since its `flush` is the source's.
191
+ export interface BatchSource {
192
+ /** Its members, in order: what the writer and the read are given for each. */
193
+ readonly members: ReadonlyArray<object>
194
+ /** How its members are drawn. */
195
+ readonly writer: Batch.Writer<object>
196
+ /** How it reads a member's key before the Batch moves it. */
197
+ readonly read: (subject: object, key: string) => unknown
198
+ }
199
+
200
+ /**
201
+ * What an Environment of objects gives the runtime: how its Subjects are written and read, which of its
202
+ * keys are positional, how a Batch of them is drawn, and any Layers of its own. `OBJECTS` is plain
203
+ * objects'; `@wardic/three` gives three's.
204
+ */
205
+ // #883 (ADR-0073, *Amendment (#883)*, Q1): `make`'s parts, opened up for another Environment of objects.
206
+ export interface Environment {
207
+ /** Its writer: Wardic's values onto a Subject, once a frame. */
208
+ readonly renderer: Layer.Layer<Renderer.Renderer>
209
+ /** What its Flush gate reads of a Subject. */
210
+ readonly gate: FlushGate.GateEnvironment
211
+ /** A plain Subject's Base-value links: where each key it animates starts. */
212
+ readonly startLinksOf: (subject: object) => Spine.StartLinks
213
+ /** Its values in the shape of their targets. */
214
+ readonly ownValues: OwnValues.Shape
215
+ /** Which of its keys reduced motion snaps. */
216
+ readonly positionalKeys: Layer.Layer<ReducedMotion.PositionalKeys>
217
+ /** How a Batch of its Subjects is drawn. */
218
+ readonly batchWriter: Batch.Writer<object>
219
+ /** How a Batch reads a member's key before it moves it. */
220
+ readonly batchRead: (subject: object, key: string) => unknown
221
+ /**
222
+ * A Batch of `given`, something other than a list (an `InstancedMesh`): its members, drawn and read
223
+ * its own way. `undefined` for anything it doesn't make a Batch of.
224
+ */
225
+ readonly batchSource?: ((given: object) => BatchSource | undefined) | undefined
226
+ /** Layers of its own: its `UnitScale`, say. */
227
+ readonly layers?: Layer.Layer<never> | undefined
228
+ }
229
+
230
+ /** Plain objects' Environment: each key the object's own property. */
231
+ export const OBJECTS: Environment = {
232
+ renderer: ObjectRenderer.layer,
233
+ gate: ObjectRenderer.GATE,
234
+ startLinksOf: ObjectValues.startLinksOf,
235
+ ownValues: ObjectValues.ownValues,
236
+ positionalKeys: ReducedMotion.transformsOnly,
237
+ batchWriter: ObjectBatch.writer,
238
+ batchRead: ObjectBatch.read,
239
+ }
240
+
241
+ /**
242
+ * The Environment's services, on `frames`: the Effect form, for an app that runs Wardic's Effects
243
+ * itself. `make` builds its runtime on it; `environment` is plain objects' unless given.
244
+ */
245
+ export const layer = (frames: PumpedFrames.PumpedFrames, options: Options = {}, environment: Environment = OBJECTS): Layer.Layer<WardicServices.WardicServices> =>
246
+ FrameLoop.layer.pipe(
247
+ Layer.provideMerge(
248
+ Layer.mergeAll(
249
+ Clock.layer.pipe(Layer.provideMerge(PumpedFrames.layer(frames))),
250
+ environment.renderer,
251
+ probeLayer(reducedMotionQuery()),
252
+ InterpolatorRegistry.layer,
253
+ environment.positionalKeys,
254
+ DefaultTransition.layerByKey,
255
+ Announcer.layerSilent,
256
+ UndefinedOr.match(environment.layers, { onUndefined: () => Layer.empty, onDefined: (given) => given }),
257
+ ),
258
+ ),
259
+ Layer.provideMerge(
260
+ UndefinedOr.match(options.registry, {
261
+ onUndefined: () => AtomRegistry.layer,
262
+ onDefined: (registry) => Layer.succeed(AtomRegistry.AtomRegistry, registry),
263
+ }),
264
+ ),
265
+ )
266
+
267
+ /** The runtime's Flush gate: an object's properties, written once a frame. */
268
+ class Gate extends Context.Service<Gate, FlushGate.Shape>()("@wardic/object/WardicObject/Gate") {}
269
+
270
+ /** The gate on `edges`, built with its runtime's services and ended with its Scope. */
271
+ const gateLayerOf = (edges: FlushGate.GateEnvironment): Layer.Layer<Gate, never, FlushGate.FlushGateServices> =>
272
+ Layer.effect(Gate)(
273
+ Effect.gen(function* () {
274
+ // An object has no framework to batch a flush's hooks in.
275
+ const gate = FlushGate.makeFlushGate(yield* WardicServices.makeRunner<FlushGate.FlushGateServices>(), { batch: (apply) => apply() }, edges)
276
+ yield* Effect.addFinalizer(() => Effect.sync(gate.dispose))
277
+ return gate
278
+ }),
279
+ )
280
+
281
+ /** What `given` names as an object: itself, an error for anything that isn't one. */
282
+ const objectOf = (given: unknown): object => {
283
+ if (Predicate.isObject(given)) return given
284
+ throw new Error(`wardic.animate: ${String(given)} isn't an object to animate. Give an object, or a list of them.`)
285
+ }
286
+
287
+ /** The objects `given` names: an object, or each of a list of them. */
288
+ const resolve = (given: unknown): ReadonlyArray<object> => {
289
+ if (Arr.isArray(given)) return Arr.map(given as ReadonlyArray<unknown>, objectOf)
290
+ return [objectOf(given)]
291
+ }
292
+
293
+ /** An object of a Batch given to `animate` itself: an error naming its handle. */
294
+ const memberGiven = (subjects: ReadonlyArray<object>): never => {
295
+ const member = Option.match(Arr.findFirst(Arr.map(subjects, ObjectBatch.memberOf), Predicate.isNotUndefined), { onNone: () => "?", onSome: String })
296
+ throw new Error(`wardic.animate: an object given is member ${member} of a Batch, whose run draws it: animate it through its Batch, batch.at(${member})`)
297
+ }
298
+
299
+ /** The object Environment's Batches: `ObjectBatch`'s handles; a member object is reached through them alone. */
300
+ const BATCHES: Imperative.Batches<object> = {
301
+ entryOf: ObjectBatch.entryOf,
302
+ hasMembers: (subjects) => Arr.some(subjects, (subject) => Predicate.isNotUndefined(ObjectBatch.memberOf(subject))),
303
+ callPartsOf: memberGiven,
304
+ segmentSubjectsOf: memberGiven,
305
+ sequencePartsOf: (compiled) => BatchCalls.sequencePartsOf(compiled),
306
+ }
307
+
308
+ /** An Environment's ports into core's track: its Subjects any object, each starting where the Environment reads it. */
309
+ const portsOf = (environment: Environment): Imperative.Ports<object> => ({
310
+ subjects: { resolve, startLinksOf: environment.startLinksOf },
311
+ batches: BATCHES,
312
+ })
313
+
314
+ /** A runtime on frames the host pumps, for plain objects: `frame(time)` once a frame, before it renders. */
315
+ export const make = (options: Options = {}): WardicObject => makeWith(OBJECTS, options)
316
+
317
+ /** A runtime on frames the host pumps, for `environment`'s objects: what `@wardic/three` builds on. */
318
+ export const makeWith = (environment: Environment, options: Options = {}): WardicObject => {
319
+ const frames = PumpedFrames.make(options.now)
320
+ const runtime = ManagedRuntime.make(gateLayerOf(environment.gate).pipe(Layer.provideMerge(layer(frames, options, environment))))
321
+ const { gate, positionalKeys, defaultTransition } = runtime.runSync(
322
+ Effect.all({ gate: Gate, positionalKeys: ReducedMotion.PositionalKeys, defaultTransition: DefaultTransition.DefaultTransition }),
323
+ )
324
+ const config: ReducedMotion.Config = UndefinedOr.match(options.reducedMotion, { onUndefined: () => "user", onDefined: (given) => given })
325
+ const skip = options.skipAnimations === true
326
+ const query = reducedMotionQuery()
327
+ const env: Imperative.AnimateEnv = {
328
+ runtime,
329
+ gate,
330
+ reducedMotion: () => ReducedMotion.applies(config, prefersOf(query)),
331
+ skipAnimations: () => skip,
332
+ positionalKeys,
333
+ defaultTransition,
334
+ ownValues: environment.ownValues,
335
+ measuredPairs: ObjectValues.measuredPairs,
336
+ variableValues: ObjectValues.variableValues,
337
+ }
338
+ // Its animations in flight, stopped as it ends.
339
+ const live = new Set<Imperative.WardicPlaybackControls>()
340
+ const watch: Imperative.AnimationWatch = {
341
+ started: (controls) => void live.add(controls),
342
+ ended: (controls) => void live.delete(controls),
343
+ }
344
+ const animate = Imperative.make(env, portsOf(environment), constUndefined, watch) as ObjectAnimate
345
+ const effects = FrameEffects.make({
346
+ // The host asks `wantsFrame()`: a request is counted there.
347
+ requestFrame: constUndefined,
348
+ report: (defect) => void runtime.runFork(Report.failure("wardic.afterWrites: an effect failed", Cause.die(defect))),
349
+ })
350
+ const frame = (time: number): void => {
351
+ frames.frame(time)
352
+ effects.run(time)
353
+ }
354
+ const dispose = (): void => {
355
+ Iter.forEach(Arr.fromIterable(live), (controls) => controls.stop())
356
+ void runtime.dispose()
357
+ }
358
+ const batchContext: ObjectBatch.Context = { runFork: runtime.runFork, positionalKeys, defaultTransition, unitScale: runtime.runSync(UnitScale.UnitScale), writer: environment.batchWriter, read: environment.batchRead }
359
+ /** What the Environment makes a Batch of `given`, a Batch's source other than a list: `undefined` where it makes none. */
360
+ const sourceOf = (given: unknown): BatchSource | undefined => {
361
+ if (!Predicate.isObject(given) || Predicate.isUndefined(environment.batchSource)) return undefined
362
+ return environment.batchSource(given)
363
+ }
364
+ /** A Batch of a list of Subjects, or of what the Environment's `batchSource` makes one of. */
365
+ const batch = <T extends object>(given: ReadonlyArray<T>, options?: ObjectBatch.Options<T>): ObjectBatch.ObjectBatch<T> => {
366
+ if (Arr.isArray(given)) return ObjectBatch.make<T>(batchContext, given as ReadonlyArray<T>, options)
367
+ const source = sourceOf(given)
368
+ if (Predicate.isUndefined(source)) throw new Error("wardic.batch: a Batch is made of a list of objects, and it was given something else. Give a list: wardic.batch([a, b, c]).")
369
+ return ObjectBatch.make<T>({ ...batchContext, writer: source.writer, read: source.read }, source.members as ReadonlyArray<T>, options)
370
+ }
371
+ return {
372
+ animate,
373
+ batch,
374
+ afterWrites: effects.add,
375
+ frame,
376
+ wantsFrame: () => Bool.or(frames.wantsFrame(), effects.requested()),
377
+ dispose,
378
+ stageEnvironment: { ...env, startLinksOf: environment.startLinksOf, frameEffects: effects },
379
+ }
380
+ }
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @wardic/object — Wardic for any object's properties, renderer-agnostic: Motion's `animate` on plain
3
+ * objects, on frames the host pumps, the base for canvas and WebGL. The root re-exports each module as
4
+ * a namespace; code imports the subpath, `import * as WardicObject from "@wardic/object/WardicObject"`.
5
+ */
6
+ // #882 (ADR-0068 decision 2; ADR-0073, *Amendment (#882)*): its modules named as ADR-0041 names an
7
+ // Environment's. Shipped from 1.3 (#564), with `@wardic/three`.
8
+ export * as ObjectBatch from "./ObjectBatch.ts"
9
+ export * as ObjectRenderer from "./ObjectRenderer.ts"
10
+ export * as ObjectValues from "./ObjectValues.ts"
11
+ export * as PumpedFrames from "./PumpedFrames.ts"
12
+ export * as WardicObject from "./WardicObject.ts"