cx 24.7.2 → 24.7.3

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.
package/dist/svg.js CHANGED
@@ -523,6 +523,8 @@ var Rectangle = /*#__PURE__*/ (function (_TextualBoundedObject) {
523
523
  colorIndex: undefined,
524
524
  fill: undefined,
525
525
  stroke: undefined,
526
+ rx: undefined,
527
+ ry: undefined,
526
528
  },
527
529
  ]),
528
530
  );
@@ -546,6 +548,8 @@ var Rectangle = /*#__PURE__*/ (function (_TextualBoundedObject) {
546
548
  style: data.style,
547
549
  fill: data.fill,
548
550
  stroke: data.stroke,
551
+ rx: data.rx,
552
+ ry: data.ry,
549
553
  }),
550
554
  this.renderChildren(context, instance),
551
555
  ],
@@ -557,6 +561,8 @@ var Rectangle = /*#__PURE__*/ (function (_TextualBoundedObject) {
557
561
  })(TextualBoundedObject);
558
562
  Rectangle.prototype.baseClass = "rectangle";
559
563
  Rectangle.prototype.anchors = "0 1 1 0";
564
+ Rectangle.prototype.rx = undefined;
565
+ Rectangle.prototype.ry = undefined;
560
566
  Widget.alias("rectangle", Rectangle);
561
567
 
562
568
  var ClipRect = /*#__PURE__*/ (function (_BoundedObject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cx",
3
- "version": "24.7.2",
3
+ "version": "24.7.3",
4
4
  "description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
5
5
  "main": "index.js",
6
6
  "jsnext:main": "src/index.js",
@@ -1,7 +1,7 @@
1
1
  import * as Cx from '../core';
2
2
 
3
3
  interface LegendEntryProps extends Cx.HtmlElementProps {
4
-
4
+
5
5
  /** Indicate that entry is selected. */
6
6
  selected?: Cx.BooleanProp,
7
7
 
@@ -28,11 +28,25 @@ interface LegendEntryProps extends Cx.HtmlElementProps {
28
28
 
29
29
  /** Base CSS class to be applied to the element. No class is applied by default. */
30
30
  baseClass?: string,
31
-
31
+
32
32
  legendAction?: string,
33
33
 
34
34
  /** Size of the svg shape container in pixels. Default value is 20. */
35
- svgSize?: number
35
+ svgSize?: number;
36
+
37
+ /**
38
+ * Applies to rectangular shapes. The horizontal corner radius of the rect. Defaults to ry if ry is specified.
39
+ * Value type: <length>|<percentage>;
40
+ * If unit is not specified, it defaults to `px`.
41
+ */
42
+ rx?: Cx.StringProp | Cx.NumberProp;
43
+
44
+ /**
45
+ * Applies to rectangular shapes. The vertical corner radius of the rect. Defaults to rx if rx is specified.
46
+ * Value type: <length>|<percentage>;
47
+ * If unit is not specified, it defaults to `px`.
48
+ */
49
+ ry?: Cx.StringProp | Cx.NumberProp;
36
50
  }
37
51
 
38
52
  export class LegendEntry extends Cx.Widget<LegendEntryProps> {}
@@ -23,6 +23,8 @@ export class LegendEntry extends HtmlElement {
23
23
  name: undefined,
24
24
  active: true,
25
25
  size: undefined,
26
+ rx: undefined,
27
+ ry: undefined
26
28
  });
27
29
  }
28
30
 
@@ -102,6 +104,8 @@ export class LegendEntry extends HtmlElement {
102
104
  {shape(this.svgSize / 2, this.svgSize / 2, entry.size, {
103
105
  style: entry.style,
104
106
  className: className,
107
+ rx: entry.rx,
108
+ ry: entry.ry
105
109
  })}
106
110
  </svg>
107
111
  );
@@ -1,96 +1,110 @@
1
- import * as Cx from "../core";
2
- import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
-
4
- interface MarkerProps extends BoundedObjectProps {
5
- /** The `x` value binding or expression. */
6
- x?: Cx.Prop<string | number>;
7
-
8
- /** The `y` value binding or expression. */
9
- y?: Cx.Prop<string | number>;
10
-
11
- /** Used to indicate if the data should affect axis span. */
12
- affectsAxes?: Cx.BooleanProp;
13
-
14
- /** Shape kind. `circle`, `square`, `triangle`, etc. */
15
- shape?: Cx.StringProp;
16
-
17
- disabled?: Cx.BooleanProp;
18
-
19
- /** Index of a color from the standard palette of colors. 0-15. */
20
- colorIndex?: Cx.Prop<string | number>;
21
-
22
- /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
23
- colorMap?: Cx.StringProp;
24
-
25
- /** Name used to resolve the color. If not provided, `name` is used instead. */
26
- colorName?: Cx.StringProp;
27
-
28
- legendColorIndex?: Cx.NumberProp;
29
-
30
- /** Name of the item as it will appear in the legend. */
31
- name?: Cx.StringProp;
32
-
33
- /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
34
- active?: Cx.BooleanProp;
35
-
36
- xOffset?: number;
37
- yOffset?: number;
38
-
39
- /** Size of the shape in pixels. */
40
- size?: Cx.NumberProp;
41
-
42
- /**
43
- * Name of the horizontal axis. The value should match one of the horizontal axes set
44
- * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
45
- */
46
- xAxis?: string;
47
-
48
- /**
49
- * Name of the vertical axis. The value should match one of the vertical axes set
50
- * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
51
- */
52
- yAxis?: string;
53
-
54
- /** Base CSS class to be applied to the element. Defaults to `marker`. */
55
- baseClass?: string;
56
-
57
- /** Set to `true` to make the shape draggable along the X axis. */
58
- draggableX?: boolean;
59
-
60
- /** Set to `true` to make the shape draggable along the Y axis. */
61
- draggableY?: boolean;
62
-
63
- /** Set to `true` to make the shape draggable along the X and Y axis. */
64
- draggable?: boolean;
65
-
66
- /** Constrain the marker position to min/max values of the X axis during drag operations. */
67
- constrainX?: boolean;
68
-
69
- /** Constrain the marker position to min/max values of the Y axis during drag operations. */
70
- constrainY?: boolean;
71
-
72
- /** When set to `true`, it is equivalent to setting `constrainX` and `constrainY` to true. */
73
- constrain?: boolean;
74
-
75
- /** Name of the legend to be used. Default is `legend`. */
76
- legend?: string;
77
-
78
- legendAction?: string;
79
-
80
- /** Tooltip configuration. For more info see Tooltips. */
81
- tooltip?: Cx.StringProp | Cx.StructuredProp;
82
-
83
- /** Set to true to hide the marker. The marker will still participate in axis range calculations. */
84
- hidden?: boolean;
85
-
86
- /** Indicate that markers should be stacked horizontally. Default value is `false`. */
87
- stackedX?: Cx.BooleanProp;
88
-
89
- /** Indicate that markers should be stacked vertically. Default value is `false`. */
90
- stackedY?: Cx.BooleanProp;
91
-
92
- /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
93
- stack?: Cx.StringProp;
94
- }
95
-
96
- export class Marker extends Cx.Widget<MarkerProps> {}
1
+ import * as Cx from "../core";
2
+ import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
+
4
+ interface MarkerProps extends BoundedObjectProps {
5
+ /** The `x` value binding or expression. */
6
+ x?: Cx.Prop<string | number>;
7
+
8
+ /** The `y` value binding or expression. */
9
+ y?: Cx.Prop<string | number>;
10
+
11
+ /** Used to indicate if the data should affect axis span. */
12
+ affectsAxes?: Cx.BooleanProp;
13
+
14
+ /** Shape kind. `circle`, `square`, `triangle`, etc. */
15
+ shape?: Cx.StringProp;
16
+
17
+ disabled?: Cx.BooleanProp;
18
+
19
+ /** Index of a color from the standard palette of colors. 0-15. */
20
+ colorIndex?: Cx.Prop<string | number>;
21
+
22
+ /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
23
+ colorMap?: Cx.StringProp;
24
+
25
+ /** Name used to resolve the color. If not provided, `name` is used instead. */
26
+ colorName?: Cx.StringProp;
27
+
28
+ legendColorIndex?: Cx.NumberProp;
29
+
30
+ /** Name of the item as it will appear in the legend. */
31
+ name?: Cx.StringProp;
32
+
33
+ /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
34
+ active?: Cx.BooleanProp;
35
+
36
+ xOffset?: number;
37
+ yOffset?: number;
38
+
39
+ /** Size of the shape in pixels. */
40
+ size?: Cx.NumberProp;
41
+
42
+ /**
43
+ * Name of the horizontal axis. The value should match one of the horizontal axes set
44
+ * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
45
+ */
46
+ xAxis?: string;
47
+
48
+ /**
49
+ * Name of the vertical axis. The value should match one of the vertical axes set
50
+ * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
51
+ */
52
+ yAxis?: string;
53
+
54
+ /** Base CSS class to be applied to the element. Defaults to `marker`. */
55
+ baseClass?: string;
56
+
57
+ /** Set to `true` to make the shape draggable along the X axis. */
58
+ draggableX?: boolean;
59
+
60
+ /** Set to `true` to make the shape draggable along the Y axis. */
61
+ draggableY?: boolean;
62
+
63
+ /** Set to `true` to make the shape draggable along the X and Y axis. */
64
+ draggable?: boolean;
65
+
66
+ /** Constrain the marker position to min/max values of the X axis during drag operations. */
67
+ constrainX?: boolean;
68
+
69
+ /** Constrain the marker position to min/max values of the Y axis during drag operations. */
70
+ constrainY?: boolean;
71
+
72
+ /** When set to `true`, it is equivalent to setting `constrainX` and `constrainY` to true. */
73
+ constrain?: boolean;
74
+
75
+ /** Name of the legend to be used. Default is `legend`. */
76
+ legend?: string;
77
+
78
+ legendAction?: string;
79
+
80
+ /** Tooltip configuration. For more info see Tooltips. */
81
+ tooltip?: Cx.StringProp | Cx.StructuredProp;
82
+
83
+ /** Set to true to hide the marker. The marker will still participate in axis range calculations. */
84
+ hidden?: boolean;
85
+
86
+ /** Indicate that markers should be stacked horizontally. Default value is `false`. */
87
+ stackedX?: Cx.BooleanProp;
88
+
89
+ /** Indicate that markers should be stacked vertically. Default value is `false`. */
90
+ stackedY?: Cx.BooleanProp;
91
+
92
+ /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
93
+ stack?: Cx.StringProp;
94
+
95
+ /**
96
+ * Applies to rectangular shapes. The horizontal corner radius of the rect. Defaults to ry if ry is specified.
97
+ * Value type: <length>|<percentage>;
98
+ * If unit is not specified, it defaults to `px`.
99
+ */
100
+ rx?: Cx.StringProp | Cx.NumberProp;
101
+
102
+ /**
103
+ * Applies to rectangular shapes. The vertical corner radius of the rect. Defaults to rx if rx is specified.
104
+ * Value type: <length>|<percentage>;
105
+ * If unit is not specified, it defaults to `px`.
106
+ */
107
+ ry?: Cx.StringProp | Cx.NumberProp;
108
+ }
109
+
110
+ export class Marker extends Cx.Widget<MarkerProps> {}