kitchen-simulator 4.1.4-react-18 → 4.1.5-react-18

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.
@@ -46,7 +46,7 @@ var RulerX = /*#__PURE__*/function (_Component) {
46
46
  var left = Number.isFinite(this.props.zeroLeftPosition) && Number.isFinite(this.props.mouseX) && Number.isFinite(this.props.zoom) ? this.props.zeroLeftPosition + this.props.mouseX * this.props.zoom - 6.5 : 0;
47
47
  var markerStyle = {
48
48
  position: 'absolute',
49
- left: left,
49
+ left: Number.isFinite(left) ? left : 0,
50
50
  top: 8,
51
51
  width: 0,
52
52
  height: 0,
@@ -1647,7 +1647,6 @@ function updateHole(sceneData, oldSceneData, planData, layer, holeID, difference
1647
1647
  function addLine(sceneData, planData, layer, lineID, catalog, linesActions) {
1648
1648
  var mode = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
1649
1649
  var toolObj = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
1650
- console.log('catalog =>', catalog);
1651
1650
  if (planData.sceneGraph.busyResources.layers[layer.id].lines[lineID]) {
1652
1651
  setTimeout(function () {
1653
1652
  return addLine(sceneData, planData, layer, lineID, catalog, linesActions, mode);
@@ -55,7 +55,7 @@ var RulerX = exports["default"] = /*#__PURE__*/function (_Component) {
55
55
  var left = Number.isFinite(this.props.zeroLeftPosition) && Number.isFinite(this.props.mouseX) && Number.isFinite(this.props.zoom) ? this.props.zeroLeftPosition + this.props.mouseX * this.props.zoom - 6.5 : 0;
56
56
  var markerStyle = {
57
57
  position: 'absolute',
58
- left: left,
58
+ left: Number.isFinite(left) ? left : 0,
59
59
  top: 8,
60
60
  width: 0,
61
61
  height: 0,
@@ -1682,7 +1682,6 @@ function updateHole(sceneData, oldSceneData, planData, layer, holeID, difference
1682
1682
  function addLine(sceneData, planData, layer, lineID, catalog, linesActions) {
1683
1683
  var mode = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
1684
1684
  var toolObj = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
1685
- console.log('catalog =>', catalog);
1686
1685
  if (planData.sceneGraph.busyResources.layers[layer.id].lines[lineID]) {
1687
1686
  setTimeout(function () {
1688
1687
  return addLine(sceneData, planData, layer, lineID, catalog, linesActions, mode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "4.1.4-react-18",
3
+ "version": "4.1.5-react-18",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",