@liquidcars/atlas-geometry-media
v0.1.2
Published
Media-aware geometry pack for LiquidCars Atlas
Maintainers
Readme
@liquidcars/atlas-geometry-media
Media-aware geometry pack for @liquidcars/atlas. It registers
media.image-box, a box that can map a public raster image or SVG onto any one
of its six faces.
import "@liquidcars/atlas";
import "@liquidcars/atlas-geometry-media";- id: image-card
name: Public image
geometry: media.image-box
geometryOptions:
image: https://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg
face: front
fit: cover
radius: 0.06image accepts PNG, JPEG, WebP, remote SVG, SVG data URIs and inline SVG.
fit accepts cover, contain or stretch. The image remains external to
the model bundle. Remote servers must allow cross-origin image access.
