viewOffsetCamera-component.js 487 B

123456789101112131415
  1. this.initialize = function () {
  2. }
  3. this.setParams = function(w, h) {
  4. // debugger;
  5. let width = this.properties.subcamWidth;
  6. let height = this.properties.subcamHeight;
  7. //TODO: not good trick to force updating property
  8. vwf_view.kernel.setProperty(this.id, "subcamWidth", 1);
  9. vwf_view.kernel.setProperty(this.id, "subcamHeight", 1);
  10. vwf_view.kernel.setProperty(this.id, "subcamWidth", width);
  11. vwf_view.kernel.setProperty(this.id, "subcamHeight", height);
  12. }