Skip to content

Commit a800942

Browse files
authored
Make context protected
This is necessary for future extension of the project by subclassing its components. Unfortunately, current implementation doesn't provide any elegant way to add axis, legend nor labels to the plot.
1 parent 4eeafc3 commit a800942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webglplot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ type WebglPlotConfig = {
3030
*/
3131
export class WebglPlot {
3232
/**
33-
* @private
33+
* @protected
3434
*/
35-
private readonly webgl: WebGLRenderingContext;
35+
protected readonly webgl: WebGLRenderingContext;
3636

3737
/**
3838
* Global horizontal scale factor

0 commit comments

Comments
 (0)