astro-zdog

0.0.1 • Public • Published

Astro Zdog

Astro component for static rendering of Zdog 3D scenes. The 3D scenes are rendered to svg which requires no JS.

Demo

browser-env

zdog assumes its executing in a browser and calls into document. To make the astro static renderer happy with this you need to add browser-env to your index.astro page.

import browserEnv from "browser-env";
browserEnv();

And due to issues with snowpack you need to add browser-env to your external module list. See snowpack.config.js

/astro-zdog/

    Package Sidebar

    Install

    npm i astro-zdog

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    31.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • trashhalo