Napolean Paced Mischeviously

    @thi.ng/rdom-canvas
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.44 • Public • Published

    @thi.ng/rdom-canvas

    npm version npm downloads Mastodon Follow

    This project is part of the @thi.ng/umbrella monorepo.

    About

    @thi.ng/rdom component wrapper for @thi.ng/hiccup-canvas and declarative canvas drawing.

    Status

    ALPHA - bleeding edge / work-in-progress

    Search or submit any issues for this package

    Related packages

    Installation

    yarn add @thi.ng/rdom-canvas

    ES module import:

    <script type="module" src="https://cdn.skypack.dev/@thi.ng/rdom-canvas"></script>

    Skypack documentation

    For Node.js REPL:

    const rdomCanvas = await import("@thi.ng/rdom-canvas");

    Package sizes (brotli'd, pre-treeshake): ESM: 646 bytes

    Dependencies

    Usage examples

    Several demos in this repo's /examples directory are using this package.

    A selection:

    Screenshot Description Live demo Source
    Interactive visualization of closest points on ellipses Demo Source
    rdom & hiccup-canvas interop test Demo Source

    API

    Generated API docs

    TODO

    Authors

    If this project contributes to an academic publication, please cite it as:

    @misc{thing-rdom-canvas,
      title = "@thi.ng/rdom-canvas",
      author = "Karsten Schmidt",
      note = "https://thi.ng/rdom-canvas",
      year = 2020
    }

    License

    © 2020 - 2023 Karsten Schmidt // Apache License 2.0

    Install

    npm i @thi.ng/rdom-canvas

    DownloadsWeekly Downloads

    36

    Version

    0.4.44

    License

    Apache-2.0

    Unpacked Size

    28.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • thi.ng