MCPcopy Create free account
hub / github.com/NikLever/ThreeJS-PathEditor / constructor

Method constructor

graph.js:4–8  ·  view source on GitHub ↗
( canvas, config )

Source from the content-addressed store, hash-verified

2
3export class Graph{
4 constructor( canvas, config ){
5 this.canvas = canvas;
6 this.config = config;
7 this.context = canvas.getContext( '2d' );
8 }
9
10 drawBg(){
11 let x = this.canvas.width * this.config.yAxis;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected