Skip to content

v0.3.1

Latest

Choose a tag to compare

@ClouD-161803 ClouD-161803 released this 21 Nov 19:40
759e073

Scene format 0.5 and data container version 2 are written and read at this version, as at 0.3.0. A scene that uses the forms added below, e.g. a marker colored by a colormap, is rejected by the runtime of 0.3.0.

Added

  • The color of the marker of a points layer takes the forms of the color of a trajectories layer, i.e. a colormap over a parameter, which colors each member, and a colormap over a channel or ty.threshold_color, which color each sample, e.g. ty.marker("disc", 1.6, {"colormap": "plasma", "channel": "height", "range": (0.0, 0.8)}). A cloud of samples is thus colored by a stored value, as c= colors a matplotlib scatter plot, in one layer. The colormap magma is added, and a truncate of (1, 0) reads a colormap in reverse.
  • An axis title of a frame takes subscripts and superscripts, as a list of strings, ty.sub parts, and ty.sup parts, e.g. scene.frame("phase", axes=("C", ["initial x", ty.sub("0")], "z")) (#46). A script is set smaller and off the baseline, in the font of its title, in a plane panel, in the box of an axes layer, and at the tips of 3d axes. Unicode subscript digits are missing from many fonts, and the browser then draws them in another font.

Fixed

  • On macOS, the Chrome that is started by the scripts web/scripts/video.mjs, web/scripts/poster.mjs, and web/scripts/frame-profile.mjs and by the tests does not copy its app into a temp folder, and it is ended with Browser.close of the DevTools protocol rather than with a signal (#51). Each start left a copy of about 1,300 files behind, which macOS removes only at boot.
  • A video export is encoded and tagged in full range, with BT.709 primaries and matrix and the sRGB transfer, and its colors hence match the page in PowerPoint (#49). Chrome encoded the export in limited range, which PowerPoint draws about one level dark, so that a faint box could be seen around a video on a slide of its background color. An export takes about a quarter longer.
  • The text of a video export is drawn with the page's antialiasing and baselines in Chrome on Linux, without colored fringes, and a rotated axis title on the pixel row the page shows it on (#48).
  • A points layer whose marker does not give a color is drawn in the foreground of the theme, as the scene reference says. Such a layer was drawn in white, which hardly shows on a light page.
  • A points layer whose member is selected by a parameter input is drawn again when the input changes, e.g. when its slider is moved. Such a layer kept the member of the loaded page, unless it was revealed or given before or after.
  • A row of tabs that is wider than the page is wrapped onto further lines, and a label wider than the page is wrapped within its tab, so that every tab can be reached on a phone. Such a row stayed on one line, ran off the screen, and widened the panels past it.
  • Every viewer on a page with more viewers than the browser keeps WebGL contexts, i.e. more than 16 in Chrome, draws its scene when it is shown (#44). A viewer makes its context when it first draws, rather than when its scene loads. Once more than eight viewers of a page hold a context, the contexts of the viewers shown least recently are released, and a released viewer makes a new one when it is shown again, with its cameras and its time as they were. Chrome took the contexts of the first viewers of such a page for good, which then stayed blank.