0.0.22 • Published 6 years ago

sanity-plugin-dashboard-widget-orbitals-2d v0.0.22

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Orbitals 2D

A widget for the Sanity Content Studio Dashboard

Params

query

A GROQ query string

attractorColor

CSS color of the attractor body in the middle

attractorRadius

Radius in pixels of the attractor body

attractorOpacity

Opacity (a value between 0 and 1) of the attractor body

attractorSides

Number of sides of the attractor body polygon (6 -> hexagon)

transformDocument

A function which transforms a Sanity document into an object shaped like this:

{
  radius: 10, // size in pixels of orbital body
  mass: 1, // mass of orbital body
  percentDistanceFromCenter: 50, // % (integer 0-100) distance from center
  solid: true, // will it collide with other orbitals?
  sides: 5, // sides < 3 gives you a circle
  render: {
    fillStyle: 'red', // CSS color of body
    opacity: 0.7 // opacity of body
  }
}

....

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago