@hpcc-js/common 2.73.3 → 2.73.4

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 (58) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +59 -59
  3. package/dist/index.es6.js +2 -2
  4. package/dist/index.es6.js.map +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.min.js +1 -1
  8. package/dist/index.min.js.map +1 -1
  9. package/package.json +3 -3
  10. package/src/CanvasWidget.ts +31 -31
  11. package/src/Class.ts +67 -67
  12. package/src/Database.ts +856 -856
  13. package/src/Entity.ts +235 -235
  14. package/src/EntityCard.ts +66 -66
  15. package/src/EntityPin.ts +103 -103
  16. package/src/EntityRect.css +15 -15
  17. package/src/EntityRect.ts +236 -236
  18. package/src/EntityVertex.ts +86 -86
  19. package/src/FAChar.css +2 -2
  20. package/src/FAChar.ts +82 -82
  21. package/src/HTMLWidget.ts +191 -191
  22. package/src/IList.ts +4 -4
  23. package/src/IMenu.ts +5 -5
  24. package/src/Icon.css +9 -9
  25. package/src/Icon.ts +164 -164
  26. package/src/Image.ts +95 -95
  27. package/src/List.css +13 -13
  28. package/src/List.ts +99 -99
  29. package/src/Menu.css +23 -23
  30. package/src/Menu.ts +134 -134
  31. package/src/Palette.ts +341 -341
  32. package/src/Platform.ts +125 -125
  33. package/src/ProgressBar.ts +105 -105
  34. package/src/PropertyExt.ts +793 -793
  35. package/src/ResizeSurface.css +39 -39
  36. package/src/ResizeSurface.ts +221 -221
  37. package/src/SVGWidget.ts +567 -567
  38. package/src/SVGZoomWidget.css +12 -12
  39. package/src/SVGZoomWidget.ts +426 -426
  40. package/src/Shape.css +3 -3
  41. package/src/Shape.ts +186 -186
  42. package/src/Surface.css +35 -35
  43. package/src/Surface.ts +349 -349
  44. package/src/Text.css +4 -4
  45. package/src/Text.ts +131 -131
  46. package/src/TextBox.css +4 -4
  47. package/src/TextBox.ts +168 -168
  48. package/src/TitleBar.css +99 -99
  49. package/src/TitleBar.ts +401 -401
  50. package/src/Transition.ts +45 -45
  51. package/src/Utility.ts +839 -839
  52. package/src/Widget.css +8 -8
  53. package/src/Widget.ts +730 -730
  54. package/src/WidgetArray.ts +13 -13
  55. package/src/__package__.ts +3 -3
  56. package/src/index.ts +55 -55
  57. package/types/__package__.d.ts +2 -2
  58. package/types-3.4/__package__.d.ts +2 -2
package/src/Transition.ts CHANGED
@@ -1,45 +1,45 @@
1
- import { easeCubicInOut as d3CubicInOut } from "d3-ease";
2
-
3
- export class Transition {
4
-
5
- protected _widget;
6
- protected _duration;
7
- protected _delay;
8
- protected _ease;
9
-
10
- constructor(widget) {
11
- this._widget = widget;
12
- this._duration = 250;
13
- this._delay = 0;
14
- this._ease = d3CubicInOut;
15
- }
16
-
17
- duration(_) {
18
- if (!arguments.length) return this._duration;
19
- this._duration = _;
20
- return this._widget;
21
- }
22
-
23
- delay(_) {
24
- if (!arguments.length) return this._delay;
25
- this._delay = _;
26
- return this._widget;
27
- }
28
-
29
- ease(_) {
30
- if (!arguments.length) return this._ease;
31
- this._ease = _;
32
- return this._widget;
33
- }
34
-
35
- apply(selection) {
36
- if (this._duration || this._delay) {
37
- return selection.transition()
38
- .duration(this._duration)
39
- .delay(this._delay)
40
- .ease(this._ease)
41
- ;
42
- }
43
- return selection;
44
- }
45
- }
1
+ import { easeCubicInOut as d3CubicInOut } from "d3-ease";
2
+
3
+ export class Transition {
4
+
5
+ protected _widget;
6
+ protected _duration;
7
+ protected _delay;
8
+ protected _ease;
9
+
10
+ constructor(widget) {
11
+ this._widget = widget;
12
+ this._duration = 250;
13
+ this._delay = 0;
14
+ this._ease = d3CubicInOut;
15
+ }
16
+
17
+ duration(_) {
18
+ if (!arguments.length) return this._duration;
19
+ this._duration = _;
20
+ return this._widget;
21
+ }
22
+
23
+ delay(_) {
24
+ if (!arguments.length) return this._delay;
25
+ this._delay = _;
26
+ return this._widget;
27
+ }
28
+
29
+ ease(_) {
30
+ if (!arguments.length) return this._ease;
31
+ this._ease = _;
32
+ return this._widget;
33
+ }
34
+
35
+ apply(selection) {
36
+ if (this._duration || this._delay) {
37
+ return selection.transition()
38
+ .duration(this._duration)
39
+ .delay(this._delay)
40
+ .ease(this._ease)
41
+ ;
42
+ }
43
+ return selection;
44
+ }
45
+ }