SimpleContourRenderer constructor
Creates this renderer which will draw into contourCanvas
.
The data area size and position covered by the drawing is given by
dataAreaWidth
, dataAreaHeight
, dataAreaX
, dataAreaY
.
contourAttr
Implementation
SimpleContourRenderer(
this.contourCanvas,
this.dataAreaWidth,
this.dataAreaHeight,
this.dataAreaX,
this.dataAreaY,
Map<CtourA, String> contourAttr) {
attr = CONTOUR_DEFAULT_ATTRIBUTES;
if (contourAttr != null) {
attr.addAll(contourAttr);
}
// Element ccel = document.getElementById("contour_canvas");
// contourCanvas = ccel; // cast
contourCanvas.style
..position = "absolute"
..backgroundColor = "transparent";
c2d = contourCanvas.getContext("2d");
// dataAreaWidth = contourCanvas.width;
// dataAreaHeight = contourCanvas.height;
}