megaplot
megaplot copied to clipboard
Depends on: - #57 - #55 The `TextView` object should allow the API user to specify a rotation to the containing box. Proposed example: ```ts const text: Text = scene.createText();...
Inside of a Sprite callback, the API user can set `TransitionTimeMs` to specify how long the transition should take to complete. However, unlike other sprite attributes, `TransitionTimeMs` is not inherited...
Currently, all sprite attribute values default to 0. This makes initialization easy since a freshly allocated texture will have zeros flashed throughout. When a sprite is released, its swatch of...
Currently, the `GeometricZoom` attribute, like all Sprite attributes, defaults to zero. To make this work, the formula used in the shader is this: ```glsl currentSizeWorld * exp(log(scale) * (1. -...
Currently: * The `main` branch is behind. * `dev` branch is used for developing new features. * `dev` branch has incremented package number, but `dist` directory does not consistently match....
Would be nice if this library was available as a named NPM package instead of having to use `npm install git://https://github.com/PAIR-code/megaplot.git`.
When specifying Sprite attributes, all values are numeric. However, some values have special meaning. Rather than requiring API users to specify numeric values, the Megaplot API should supply an object...
It looks like `regl` triggers Trusted Types errors at [this line](https://github.com/regl-project/regl/blob/3de86bf154b4634d53b365f83f0223aa09143f3d/lib/util/codegen.js#L169). Since I'm in a "Report Only" environment, I see this error in the console, but it does allow the...
MegaPlot provides a basic [`Scene.hitTest(x, y)`](https://github.com/PAIR-code/megaplot/blob/main/src/lib/scene.ts#L86) API that returns the full list of Sprites at that location. This requires API consumers to write essentially the same boilerplate code, shown below...
tl;dr -- Consider adding a `Selection.queue()` API that would effectively enqueue multiple `.bind()`-equivalents and guarantee that each `.bind()`-equivalent is completed before processing the next one. ## Background In LIT, I'm...