Skip to content
Branch: master
Find file History
davidswinegar Fix mouse event argument mix-up (#227)
Fix bug of switching event and ray in object callbacks. Fixes #226.

Test plan: included integration test.
Latest commit 71a5c13 Sep 11, 2019


Worldview is a React library for rendering 2D and 3D scenes using regl.

Visit the homepage to see more guides, examples and APIs.

Quick start

Add regl-worldview to your React project:

npm install --save regl-worldview

If you’re not using a module bundler or package manager we also have a global (“UMD”) build hosted on the unpkg CDN. Simply add the following script tag to the bottom of your HTML file:

<script src="" />

Then try rendering the basic example:

Image of the basic example

import React from "react";

import Worldview, { Cubes, Axes } from "regl-worldview";

function BasicExample() {
  const markers = [
      pose: {
        orientation: { x: 0, y: 0, z: 0, w: 1 },
        position: { x: 0, y: 0, z: 0 },
      scale: { x: 15, y: 15, z: 15 },
      color: { r: 1, g: 0, b: 1, a: 0.9 },

  return (
      <Axes />
You can’t perform that action at this time.