tech.tablesaw.plotly.components.threeD.CameraComponent Maven / Gradle / Ivy
package tech.tablesaw.plotly.components.threeD;
import java.util.HashMap;
import java.util.Map;
import tech.tablesaw.plotly.components.Component;
class CameraComponent extends Component {
private final double x;
private final double y;
private final double z;
CameraComponent(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
}
@Override
public String asJavascript() {
return asJSON();
}
@Override
protected Map getJSONContext() {
return getContext();
}
@Override
protected Map getContext() {
Map context = new HashMap<>();
context.put("x", x);
context.put("y", y);
context.put("z", z);
return context;
}
}