fl-web-component 2.0.0-beta.8 → 2.0.0

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.
Files changed (33) hide show
  1. package/dist/fl-web-component.common.js +34645 -1611
  2. package/dist/fl-web-component.common.js.map +1 -1
  3. package/dist/fl-web-component.css +1 -1
  4. package/package.json +4 -15
  5. package/packages/components/com-card/index.vue +1 -1
  6. package/packages/components/com-flcanvas/components/bspline.js +31 -34
  7. package/packages/components/com-flcanvas/components/entityFormatting.js +810 -849
  8. package/packages/components/com-flcanvas/components/round10.js +17 -17
  9. package/packages/components/com-flcanvas/index.vue +314 -333
  10. package/packages/components/com-formDialog/index.vue +6 -4
  11. package/packages/components/com-graphics/component/ann-tool.vue +263 -208
  12. package/packages/components/com-graphics/index.vue +366 -773
  13. package/packages/components/com-graphics/pid.vue +304 -295
  14. package/packages/components/com-table/column-default.vue +2 -3
  15. package/packages/components/com-table/column-dynamic.vue +7 -4
  16. package/packages/components/com-table/column.vue +1 -2
  17. package/packages/components/com-table/index.vue +6 -5
  18. package/packages/components/com-tabs/index.vue +1 -2
  19. package/packages/components/com-tiles/index.vue +134 -136
  20. package/packages/components/com-treeDynamic/index.vue +1 -1
  21. package/packages/utils/StreamLoader.js +1548 -1489
  22. package/packages/utils/StreamLoaderParser.worker.js +9 -14
  23. package/src/main.js +2 -8
  24. package/src/utils/cloud.js +28 -28
  25. package/src/utils/cursor.js +11 -9
  26. package/src/utils/flgltf-parser.js +257 -245
  27. package/src/utils/instance-parser.js +20 -22
  28. package/src/utils/mini-devtool.js +94 -39
  29. package/src/utils/threejs/measure-angle.js +51 -13
  30. package/src/utils/threejs/measure-area.js +43 -12
  31. package/src/utils/threejs/measure-distance.js +43 -12
  32. package/src/utils/threejs/rain-shader.js +10 -10
  33. package/src/utils/threejs/snow-shader.js +9 -9
@@ -5,20 +5,20 @@
5
5
  // https://developer.mozilla.org/en-US/docs/MDN/About
6
6
 
7
7
  export default (value, exp) => {
8
- // If the exp is undefined or zero...
9
- if (typeof exp === 'undefined' || +exp === 0) {
10
- return Math.round(value)
11
- }
12
- value = +value
13
- exp = +exp
14
- // If the value is not a number or the exp is not an integer...
15
- if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {
16
- return NaN
17
- }
18
- // Shift
19
- value = value.toString().split('e')
20
- value = Math.round(+(value[0] + 'e' + (value[1] ? (+value[1] - exp) : -exp)))
21
- // Shift back
22
- value = value.toString().split('e')
23
- return +(value[0] + 'e' + (value[1] ? (+value[1] + exp) : exp))
24
- }
8
+ // If the exp is undefined or zero...
9
+ if (typeof exp === 'undefined' || +exp === 0) {
10
+ return Math.round(value);
11
+ }
12
+ value = +value;
13
+ exp = +exp;
14
+ // If the value is not a number or the exp is not an integer...
15
+ if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {
16
+ return NaN;
17
+ }
18
+ // Shift
19
+ value = value.toString().split('e');
20
+ value = Math.round(+(value[0] + 'e' + (value[1] ? +value[1] - exp : -exp)));
21
+ // Shift back
22
+ value = value.toString().split('e');
23
+ return +(value[0] + 'e' + (value[1] ? +value[1] + exp : exp));
24
+ };