1.0.1 • Published 3 years ago

graph2d.js v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Graph2D.js

React Library for interactive navigation of graphs of 2d functions.

Install

npm install -f graph2d.js

Example Usage

import React, { Component } from 'react'
import {Graph2D} from 'graph2d.js'

function App() {
  return (
    <div className="App">
        <Graph2D width={400} height={400} 

        htmlStyle={{"border": "1px solid red"}} // for html
        canvasStyle={{
          function: {shadowBlur: 10, shadowColor: "red"}
        }} // for getContext("2d")
        functions={[ 
          [x => 0.5 * x * x, "red"],
          [x => x - 2, "white"]
        ]}
          />
    </div>
  )
}

export default App;

License

MIT © Greece4ever

1.0.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago