three-render-objects 1.26.5 → 1.26.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -614,8 +614,8 @@ var threeRenderObjects = Kapsule__default["default"]({
614
614
  update: function update(state, changedProps) {
615
615
  // resize canvas
616
616
  if (state.width && state.height && (changedProps.hasOwnProperty('width') || changedProps.hasOwnProperty('height'))) {
617
- state.container.style.width = state.width;
618
- state.container.style.height = state.height;
617
+ state.container.style.width = "".concat(state.width, "px");
618
+ state.container.style.height = "".concat(state.height, "px");
619
619
  [state.renderer, state.postProcessingComposer].concat(_toConsumableArray(state.extraRenderers)).forEach(function (r) {
620
620
  return r.setSize(state.width, state.height);
621
621
  });
@@ -1,4 +1,4 @@
1
- // Version 1.26.5 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.26.6 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
@@ -5352,8 +5352,8 @@
5352
5352
  update: function update(state, changedProps) {
5353
5353
  // resize canvas
5354
5354
  if (state.width && state.height && (changedProps.hasOwnProperty('width') || changedProps.hasOwnProperty('height'))) {
5355
- state.container.style.width = state.width;
5356
- state.container.style.height = state.height;
5355
+ state.container.style.width = "".concat(state.width, "px");
5356
+ state.container.style.height = "".concat(state.height, "px");
5357
5357
  [state.renderer, state.postProcessingComposer].concat(_toConsumableArray(state.extraRenderers)).forEach(function (r) {
5358
5358
  return r.setSize(state.width, state.height);
5359
5359
  });