setViewport method
dynamic
setViewport(
- dynamic x,
- dynamic y,
- dynamic width,
- dynamic height, [
- dynamic minDepth = 0,
- dynamic maxDepth = 1,
Implementation
setViewport(x, y, width, height, [minDepth = 0, maxDepth = 1]) {
if (x == null) {
this._viewport = null;
} else {
this._viewport = {
"x": x,
"y": y,
"width": width,
"height": height,
"minDepth": minDepth,
"maxDepth": maxDepth
};
}
}