1.0.2 • Published 5 months ago

@mng12345/water_ball v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

example

example

install

npm install @mng12345/water_ball

example

see the code in directory examples

// @ts-check

const waterball = require('@mng12345/water_ball');

main()

function main() {
  const container = document.getElementById('container')
  if (container === null) {
    throw new Error(`container is null`)
  }
  /**
   * @type {waterball.default.Data[]}
   */
  const points = [
    {
      value: 20,
      label: 'xx1'
    },
    {
      value: 30,
      label: 'xx2'
    },
    {
      value: 40,
      label: 'xx3'
    },
    {
      value: 50,
      label: 'xx4'
    },
    {
      value: 60,
      label: 'xx5'
    },
    {
      value: 40,
      label: 'xx6'
    },
  ]
  console.log(`start init`)
  waterball.default.init(container, points)
}
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago