@spectrum-charts/constants 0.0.1
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/LICENSE +201 -0
- package/dist/@types/constants.d.ts +89 -0
- package/dist/@types/constants.d.ts.map +1 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Adobe
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export declare const ANNOTATION_FONT_SIZE = 12;
|
|
2
|
+
export declare const ANNOTATION_FONT_WEIGHT = "bold";
|
|
3
|
+
export declare const ANNOTATION_PADDING = 4;
|
|
4
|
+
export declare const DEFAULT_AXIS_ANNOTATION_COLOR = "gray-600";
|
|
5
|
+
export declare const DEFAULT_AXIS_ANNOTATION_OFFSET = 80;
|
|
6
|
+
export declare const DEFAULT_BACKGROUND_COLOR = "transparent";
|
|
7
|
+
export declare const DEFAULT_CATEGORICAL_DIMENSION = "category";
|
|
8
|
+
export declare const DEFAULT_COLOR = "series";
|
|
9
|
+
export declare const DEFAULT_COLOR_SCHEME = "light";
|
|
10
|
+
export declare const DEFAULT_DIMENSION_SCALE_TYPE = "linear";
|
|
11
|
+
export declare const DEFAULT_FONT_SIZE = 14;
|
|
12
|
+
export declare const DEFAULT_FONT_COLOR = "gray-800";
|
|
13
|
+
export declare const DEFAULT_GRANULARITY = "day";
|
|
14
|
+
export declare const DEFAULT_LABEL_ALIGN = "center";
|
|
15
|
+
export declare const DEFAULT_LABEL_FONT_WEIGHT = "normal";
|
|
16
|
+
export declare const DEFAULT_LABEL_ORIENTATION = "horizontal";
|
|
17
|
+
export declare const DEFAULT_LINE_TYPES: string[];
|
|
18
|
+
export declare const DEFAULT_LINEAR_DIMENSION = "x";
|
|
19
|
+
export declare const DEFAULT_LOCALE = "en-US";
|
|
20
|
+
export declare const DEFAULT_METRIC = "value";
|
|
21
|
+
export declare const DEFAULT_SECONDARY_COLOR = "subSeries";
|
|
22
|
+
export declare const DEFAULT_SYMBOL_SIZE = 100;
|
|
23
|
+
export declare const DEFAULT_SYMBOL_STROKE_WIDTH = 2;
|
|
24
|
+
export declare const DEFAULT_TIME_DIMENSION = "datetime";
|
|
25
|
+
export declare const DEFAULT_TRANSFORMED_TIME_DIMENSION = "datetime0";
|
|
26
|
+
export declare const DEFAULT_TITLE_FONT_WEIGHT = "bold";
|
|
27
|
+
export declare const DEFAULT_INTERACTION_MODE = "nearest";
|
|
28
|
+
export declare const TABLE = "table";
|
|
29
|
+
export declare const FILTERED_TABLE = "filteredTable";
|
|
30
|
+
export declare const GROUP_DATA = "rscGroupData";
|
|
31
|
+
export declare const MARK_ID = "rscMarkId";
|
|
32
|
+
export declare const SERIES_ID = "rscSeriesId";
|
|
33
|
+
export declare const STACK_ID = "rscStackId";
|
|
34
|
+
export declare const COMPONENT_NAME = "rscComponentName";
|
|
35
|
+
export declare const TRENDLINE_VALUE = "rscTrendlineValue";
|
|
36
|
+
export declare const HIGHLIGHTED_ITEM = "highlightedItem";
|
|
37
|
+
export declare const HIGHLIGHTED_GROUP = "highlightedGroup";
|
|
38
|
+
export declare const HIGHLIGHTED_SERIES = "highlightedSeries";
|
|
39
|
+
export declare const SELECTED_ITEM = "selectedItem";
|
|
40
|
+
export declare const SELECTED_SERIES = "selectedSeries";
|
|
41
|
+
export declare const SELECTED_GROUP = "selectedGroup";
|
|
42
|
+
export declare const COLOR_SCALE = "color";
|
|
43
|
+
export declare const LINE_TYPE_SCALE = "lineType";
|
|
44
|
+
export declare const LINEAR_COLOR_SCALE = "linearColor";
|
|
45
|
+
export declare const LINE_WIDTH_SCALE = "lineWidth";
|
|
46
|
+
export declare const OPACITY_SCALE = "opacity";
|
|
47
|
+
export declare const SYMBOL_SHAPE_SCALE = "symbolShape";
|
|
48
|
+
export declare const SYMBOL_SIZE_SCALE = "symbolSize";
|
|
49
|
+
export declare const SYMBOL_PATH_WIDTH_SCALE = "symbolPathWidth";
|
|
50
|
+
export declare const DEFAULT_OPACITY_RULE: {
|
|
51
|
+
value: number;
|
|
52
|
+
};
|
|
53
|
+
export declare const CORNER_RADIUS = 6;
|
|
54
|
+
export declare const DISCRETE_PADDING = 0.5;
|
|
55
|
+
export declare const PADDING_RATIO = 0.4;
|
|
56
|
+
export declare const LINEAR_PADDING = 0;
|
|
57
|
+
export declare const TRELLIS_PADDING = 0.2;
|
|
58
|
+
/** Calculation for donut radius, subtract 2 pixels to make room for the selection ring */
|
|
59
|
+
export declare const DONUT_RADIUS = "(min(width, height) / 2 - 2)";
|
|
60
|
+
/** Min arc angle radians to display a segment label. If the arc angle is less than this, the segment label will be hidden. */
|
|
61
|
+
export declare const DONUT_SEGMENT_LABEL_MIN_ANGLE = 0.3;
|
|
62
|
+
/** Min font size for the donut summary metric value */
|
|
63
|
+
export declare const DONUT_SUMMARY_MIN_FONT_SIZE = 28;
|
|
64
|
+
/** Max font size for the donut summary metric value */
|
|
65
|
+
export declare const DONUT_SUMMARY_MAX_FONT_SIZE = 60;
|
|
66
|
+
/** Ratio of the donut summary matric value font size to the inner donut raidus */
|
|
67
|
+
export declare const DONUT_SUMMARY_FONT_SIZE_RATIO = 0.35;
|
|
68
|
+
/** Min inner radius to display the summary metric. If the inner radius is less than this, the summary metric is hidden. */
|
|
69
|
+
export declare const DONUT_SUMMARY_MIN_RADIUS = 45;
|
|
70
|
+
export declare const HIGHLIGHT_CONTRAST_RATIO = 5;
|
|
71
|
+
export declare const LEGEND_TOOLTIP_DELAY = 350;
|
|
72
|
+
export declare const BACKGROUND_COLOR = "chartBackgroundColor";
|
|
73
|
+
export declare const MS_PER_DAY = 86400000;
|
|
74
|
+
export declare const TIME = "time";
|
|
75
|
+
export declare enum INTERACTION_MODE {
|
|
76
|
+
NEAREST = "nearest",
|
|
77
|
+
ITEM = "item"
|
|
78
|
+
}
|
|
79
|
+
export declare const HOVER_SIZE = 3000;
|
|
80
|
+
export declare const HOVER_SHAPE_COUNT = 3;
|
|
81
|
+
export declare const HOVER_SHAPE = "diamond";
|
|
82
|
+
export declare const ROUNDED_SQUARE_PATH = "M -0.55 -1 h 1.1 a 0.45 0.45 0 0 1 0.45 0.45 v 1.1 a 0.45 0.45 0 0 1 -0.45 0.45 h -1.1 a 0.45 0.45 0 0 1 -0.45 -0.45 v -1.1 a 0.45 0.45 0 0 1 0.45 -0.45 z";
|
|
83
|
+
export declare const DATE_PATH = "M 0.88 -0.66 H 0.605 V -0.825 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.385 V -0.825 A 0.055 0.055 90 0 0 -0.44 -0.88 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.88 a 0.055 0.055 90 0 0 -0.055 0.055 v 1.43 a 0.055 0.055 90 0 0 0.055 0.055 h 1.76 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.605 A 0.055 0.055 90 0 0 0.88 -0.66 Z M 0.825 0.77 H -0.825 V -0.55 H -0.605 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 A 0.055 0.055 90 0 0 -0.385 -0.495 V -0.55 h 0.77 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.55 h 0.22 Z M 0.165 0.165 v 0.33 a 0.055 0.055 90 0 0 0.055 0.055 h 0.33 a 0.055 0.055 90 0 0 0.055 -0.055 v -0.33 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.33 a 0.055 0.055 90 0 0 -0.055 0.055";
|
|
84
|
+
export declare const ANNOTATION_SINGLE_ICON_SVG = "M 6.86 -8.32 H -7.79 a 0.53 0.53 90 0 0 -0.53 0.53 v 14.65 a 0.53 0.53 90 0 0 0.53 0.53 H 1.72 V 2.9 a 1.06 1.06 90 0 1 1.06 -1.06 h 4.49 V -7.79 A 0.53 0.53 90 0 0 6.86 -8.32 Z M -0.4 2.9 H -5.02 V 1.72 H -0.4 Z m 4.49 -3.3 H -5.02 V -1.58 h 8.98 Z m 0 -3.3 H -5.02 V -5.02 h 8.98 Z M 2.9 7.39 V 3.43 a 0.53 0.53 90 0 1 0.53 -0.53 H 7.39 a 0.66 0.66 90 0 1 -0.13 0.53 l -3.83 3.83 A 0.66 0.66 90 0 1 2.9 7.39 Z";
|
|
85
|
+
export declare const ANNOTATION_RANGED_ICON_SVG = "M 3.8 7.6 V 4.3 A 0.5 0.5 90 0 1 4.3 3.8 h 3.3 a 0.6 0.6 90 0 1 -0.1 0.4 L 4.2 7.5 a 0.6 0.6 90 0 1 -0.4 0.1 Z m 3.7 -15.1 a 0.5 0.5 90 0 0 -0.4 -0.2 H -7.1 a 0.5 0.5 90 0 0 -0.5 0.5 v 14.2 a 0.5 0.5 90 0 0 0.5 0.5 H 2.5 V 3.6 a 1.1 1.1 90 0 1 1.1 -1.1 H 7.6 V -7.1 A 0.5 0.5 90 0 0 7.5 -7.5 Z M 5.7 -3.3 l -1.9 1.9 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0 -0.1 a 0.2 0.2 90 0 1 -0 -0.1 v -1 L -3.4 -2.6 l -0 1 a 0.2 0.2 90 0 1 -0.1 0.2 a 0.2 0.2 90 0 1 -0.2 0.1 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 L -5.7 -3.3 a 0.2 0.2 90 0 1 0 -0.2 L -3.8 -5.4 a 0.2 0.2 90 0 1 0.2 -0.1 a 0.2 0.2 90 0 1 0.2 0.1 a 0.2 0.2 90 0 1 0 0.1 a 0.2 0.2 90 0 1 0 0.1 l 0 1 l 6.8 0 V -5.3 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0.3 -0 l 1.9 1.9 a 0.2 0.2 90 0 1 0 0.2 Z";
|
|
86
|
+
export declare const SENTIMENT_NEGATIVE_PATH = "M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M 0.3421 -0.598 A 0.2149 0.2149 90 0 1 0.5296 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.1292 A 0.2149 0.2149 90 0 1 0.1546 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.598 Z M -0.3522 -0.5916 A 0.2148 0.2148 90 0 1 -0.1647 -0.3574 A 0.2149 0.2149 90 0 1 -0.3522 -0.123 A 0.2149 0.2149 90 0 1 -0.5397 -0.3574 A 0.2148 0.2148 90 0 1 -0.3522 -0.5916 Z M 0.5548 0.4151 L 0.4959 0.4449 A 0.0625 0.0625 90 0 1 0.4257 0.4354 C 0.4049 0.4166 0.3802 0.3942 0.3739 0.3898 A 0.6554 0.6554 90 0 0 0.0026 0.2813 A 0.6546 0.6546 90 0 0 -0.3724 0.3919 C -0.3802 0.3974 -0.403 0.4184 -0.4224 0.4368 A 0.0625 0.0625 90 0 1 -0.4933 0.4468 L -0.5513 0.4174 A 0.0625 0.0625 90 0 1 -0.5694 0.3197 C -0.5549 0.3036 -0.5418 0.2895 -0.5366 0.2848 A 0.813 0.813 90 0 1 0.0026 0.0938 A 0.8106 0.8106 90 0 1 0.5481 0.2906 C 0.5511 0.2933 0.5611 0.3043 0.5731 0.3176 A 0.0625 0.0625 90 0 1 0.5548 0.4151 Z";
|
|
87
|
+
export declare const SENTIMENT_NEUTRAL_PATH = "M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.4666 A 0.2149 0.2149 90 0 1 -0.1647 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 0.0021 A 0.2149 0.2149 90 0 1 -0.5397 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 -0.4666 Z M 0.325 0.5 H -0.325 A 0.05 0.05 90 0 1 -0.375 0.45 V 0.425 A 0.05 0.05 90 0 1 -0.325 0.375 H 0.325 A 0.05 0.05 90 0 1 0.375 0.425 V 0.45 A 0.05 0.05 90 0 1 0.325 0.5 Z M 0.3421 -0.0042 A 0.2149 0.2149 90 0 1 0.1546 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.473 A 0.2149 0.2149 90 0 1 0.5296 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.0043 Z";
|
|
88
|
+
export declare const SENTIMENT_POSITIVE_PATH = "M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.5916 A 0.215 0.215 90 0 1 -0.1647 -0.3572 A 0.215 0.215 90 0 1 -0.3522 -0.1229 A 0.215 0.215 90 0 1 -0.5397 -0.3572 A 0.2149 0.2149 90 0 1 -0.3522 -0.5916 Z M 0.3421 -0.598 A 0.215 0.215 90 0 1 0.5296 -0.3635 A 0.2149 0.2149 90 0 1 0.3421 -0.1291 A 0.2149 0.2149 90 0 1 0.1546 -0.3635 A 0.215 0.215 90 0 1 0.3421 -0.598 Z M 0 0.6275 A 0.6161 0.6161 90 0 1 -0.625 0.1187 H 0.625 A 0.6161 0.6161 90 0 1 0 0.6275 Z";
|
|
89
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAYA,cAAc,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!function(E,_){"object"==typeof exports&&"object"==typeof module?module.exports=_():"function"==typeof define&&define.amd?define([],_):"object"==typeof exports?exports.spectrumChartsConstants=_():E.spectrumChartsConstants=_()}(this,(()=>(()=>{"use strict";var E={715:(E,_)=>{var A;Object.defineProperty(_,"__esModule",{value:!0}),_.DEFAULT_OPACITY_RULE=_.SYMBOL_PATH_WIDTH_SCALE=_.SYMBOL_SIZE_SCALE=_.SYMBOL_SHAPE_SCALE=_.OPACITY_SCALE=_.LINE_WIDTH_SCALE=_.LINEAR_COLOR_SCALE=_.LINE_TYPE_SCALE=_.COLOR_SCALE=_.SELECTED_GROUP=_.SELECTED_SERIES=_.SELECTED_ITEM=_.HIGHLIGHTED_SERIES=_.HIGHLIGHTED_GROUP=_.HIGHLIGHTED_ITEM=_.TRENDLINE_VALUE=_.COMPONENT_NAME=_.STACK_ID=_.SERIES_ID=_.MARK_ID=_.GROUP_DATA=_.FILTERED_TABLE=_.TABLE=_.DEFAULT_INTERACTION_MODE=_.DEFAULT_TITLE_FONT_WEIGHT=_.DEFAULT_TRANSFORMED_TIME_DIMENSION=_.DEFAULT_TIME_DIMENSION=_.DEFAULT_SYMBOL_STROKE_WIDTH=_.DEFAULT_SYMBOL_SIZE=_.DEFAULT_SECONDARY_COLOR=_.DEFAULT_METRIC=_.DEFAULT_LOCALE=_.DEFAULT_LINEAR_DIMENSION=_.DEFAULT_LINE_TYPES=_.DEFAULT_LABEL_ORIENTATION=_.DEFAULT_LABEL_FONT_WEIGHT=_.DEFAULT_LABEL_ALIGN=_.DEFAULT_GRANULARITY=_.DEFAULT_FONT_COLOR=_.DEFAULT_FONT_SIZE=_.DEFAULT_DIMENSION_SCALE_TYPE=_.DEFAULT_COLOR_SCHEME=_.DEFAULT_COLOR=_.DEFAULT_CATEGORICAL_DIMENSION=_.DEFAULT_BACKGROUND_COLOR=_.DEFAULT_AXIS_ANNOTATION_OFFSET=_.DEFAULT_AXIS_ANNOTATION_COLOR=_.ANNOTATION_PADDING=_.ANNOTATION_FONT_WEIGHT=_.ANNOTATION_FONT_SIZE=void 0,_.SENTIMENT_POSITIVE_PATH=_.SENTIMENT_NEUTRAL_PATH=_.SENTIMENT_NEGATIVE_PATH=_.ANNOTATION_RANGED_ICON_SVG=_.ANNOTATION_SINGLE_ICON_SVG=_.DATE_PATH=_.ROUNDED_SQUARE_PATH=_.HOVER_SHAPE=_.HOVER_SHAPE_COUNT=_.HOVER_SIZE=_.INTERACTION_MODE=_.TIME=_.MS_PER_DAY=_.BACKGROUND_COLOR=_.LEGEND_TOOLTIP_DELAY=_.HIGHLIGHT_CONTRAST_RATIO=_.DONUT_SUMMARY_MIN_RADIUS=_.DONUT_SUMMARY_FONT_SIZE_RATIO=_.DONUT_SUMMARY_MAX_FONT_SIZE=_.DONUT_SUMMARY_MIN_FONT_SIZE=_.DONUT_SEGMENT_LABEL_MIN_ANGLE=_.DONUT_RADIUS=_.TRELLIS_PADDING=_.LINEAR_PADDING=_.PADDING_RATIO=_.DISCRETE_PADDING=_.CORNER_RADIUS=void 0,_.ANNOTATION_FONT_SIZE=12,_.ANNOTATION_FONT_WEIGHT="bold",_.ANNOTATION_PADDING=4,_.DEFAULT_AXIS_ANNOTATION_COLOR="gray-600",_.DEFAULT_AXIS_ANNOTATION_OFFSET=80,_.DEFAULT_BACKGROUND_COLOR="transparent",_.DEFAULT_CATEGORICAL_DIMENSION="category",_.DEFAULT_COLOR="series",_.DEFAULT_COLOR_SCHEME="light",_.DEFAULT_DIMENSION_SCALE_TYPE="linear",_.DEFAULT_FONT_SIZE=14,_.DEFAULT_FONT_COLOR="gray-800",_.DEFAULT_GRANULARITY="day",_.DEFAULT_LABEL_ALIGN="center",_.DEFAULT_LABEL_FONT_WEIGHT="normal",_.DEFAULT_LABEL_ORIENTATION="horizontal",_.DEFAULT_LINE_TYPES=["solid","dashed","dotted","dotDash","longDash","twoDash"],_.DEFAULT_LINEAR_DIMENSION="x",_.DEFAULT_LOCALE="en-US",_.DEFAULT_METRIC="value",_.DEFAULT_SECONDARY_COLOR="subSeries",_.DEFAULT_SYMBOL_SIZE=100,_.DEFAULT_SYMBOL_STROKE_WIDTH=2,_.DEFAULT_TIME_DIMENSION="datetime",_.DEFAULT_TRANSFORMED_TIME_DIMENSION=`${_.DEFAULT_TIME_DIMENSION}0`,_.DEFAULT_TITLE_FONT_WEIGHT="bold",_.DEFAULT_INTERACTION_MODE="nearest",_.TABLE="table",_.FILTERED_TABLE="filteredTable",_.GROUP_DATA="rscGroupData",_.MARK_ID="rscMarkId",_.SERIES_ID="rscSeriesId",_.STACK_ID="rscStackId",_.COMPONENT_NAME="rscComponentName",_.TRENDLINE_VALUE="rscTrendlineValue",_.HIGHLIGHTED_ITEM="highlightedItem",_.HIGHLIGHTED_GROUP="highlightedGroup",_.HIGHLIGHTED_SERIES="highlightedSeries",_.SELECTED_ITEM="selectedItem",_.SELECTED_SERIES="selectedSeries",_.SELECTED_GROUP="selectedGroup",_.COLOR_SCALE="color",_.LINE_TYPE_SCALE="lineType",_.LINEAR_COLOR_SCALE="linearColor",_.LINE_WIDTH_SCALE="lineWidth",_.OPACITY_SCALE="opacity",_.SYMBOL_SHAPE_SCALE="symbolShape",_.SYMBOL_SIZE_SCALE="symbolSize",_.SYMBOL_PATH_WIDTH_SCALE="symbolPathWidth",_.DEFAULT_OPACITY_RULE={value:1},_.CORNER_RADIUS=6,_.DISCRETE_PADDING=.5,_.PADDING_RATIO=.4,_.LINEAR_PADDING=0,_.TRELLIS_PADDING=.2,_.DONUT_RADIUS="(min(width, height) / 2 - 2)",_.DONUT_SEGMENT_LABEL_MIN_ANGLE=.3,_.DONUT_SUMMARY_MIN_FONT_SIZE=28,_.DONUT_SUMMARY_MAX_FONT_SIZE=60,_.DONUT_SUMMARY_FONT_SIZE_RATIO=.35,_.DONUT_SUMMARY_MIN_RADIUS=45,_.HIGHLIGHT_CONTRAST_RATIO=5,_.LEGEND_TOOLTIP_DELAY=350,_.BACKGROUND_COLOR="chartBackgroundColor",_.MS_PER_DAY=864e5,_.TIME="time",function(E){E.NEAREST="nearest",E.ITEM="item"}(A||(_.INTERACTION_MODE=A={})),_.HOVER_SIZE=3e3,_.HOVER_SHAPE_COUNT=3,_.HOVER_SHAPE="diamond",_.ROUNDED_SQUARE_PATH="M -0.55 -1 h 1.1 a 0.45 0.45 0 0 1 0.45 0.45 v 1.1 a 0.45 0.45 0 0 1 -0.45 0.45 h -1.1 a 0.45 0.45 0 0 1 -0.45 -0.45 v -1.1 a 0.45 0.45 0 0 1 0.45 -0.45 z",_.DATE_PATH="M 0.88 -0.66 H 0.605 V -0.825 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.385 V -0.825 A 0.055 0.055 90 0 0 -0.44 -0.88 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.88 a 0.055 0.055 90 0 0 -0.055 0.055 v 1.43 a 0.055 0.055 90 0 0 0.055 0.055 h 1.76 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.605 A 0.055 0.055 90 0 0 0.88 -0.66 Z M 0.825 0.77 H -0.825 V -0.55 H -0.605 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 A 0.055 0.055 90 0 0 -0.385 -0.495 V -0.55 h 0.77 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.55 h 0.22 Z M 0.165 0.165 v 0.33 a 0.055 0.055 90 0 0 0.055 0.055 h 0.33 a 0.055 0.055 90 0 0 0.055 -0.055 v -0.33 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.33 a 0.055 0.055 90 0 0 -0.055 0.055",_.ANNOTATION_SINGLE_ICON_SVG="M 6.86 -8.32 H -7.79 a 0.53 0.53 90 0 0 -0.53 0.53 v 14.65 a 0.53 0.53 90 0 0 0.53 0.53 H 1.72 V 2.9 a 1.06 1.06 90 0 1 1.06 -1.06 h 4.49 V -7.79 A 0.53 0.53 90 0 0 6.86 -8.32 Z M -0.4 2.9 H -5.02 V 1.72 H -0.4 Z m 4.49 -3.3 H -5.02 V -1.58 h 8.98 Z m 0 -3.3 H -5.02 V -5.02 h 8.98 Z M 2.9 7.39 V 3.43 a 0.53 0.53 90 0 1 0.53 -0.53 H 7.39 a 0.66 0.66 90 0 1 -0.13 0.53 l -3.83 3.83 A 0.66 0.66 90 0 1 2.9 7.39 Z",_.ANNOTATION_RANGED_ICON_SVG="M 3.8 7.6 V 4.3 A 0.5 0.5 90 0 1 4.3 3.8 h 3.3 a 0.6 0.6 90 0 1 -0.1 0.4 L 4.2 7.5 a 0.6 0.6 90 0 1 -0.4 0.1 Z m 3.7 -15.1 a 0.5 0.5 90 0 0 -0.4 -0.2 H -7.1 a 0.5 0.5 90 0 0 -0.5 0.5 v 14.2 a 0.5 0.5 90 0 0 0.5 0.5 H 2.5 V 3.6 a 1.1 1.1 90 0 1 1.1 -1.1 H 7.6 V -7.1 A 0.5 0.5 90 0 0 7.5 -7.5 Z M 5.7 -3.3 l -1.9 1.9 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0 -0.1 a 0.2 0.2 90 0 1 -0 -0.1 v -1 L -3.4 -2.6 l -0 1 a 0.2 0.2 90 0 1 -0.1 0.2 a 0.2 0.2 90 0 1 -0.2 0.1 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 L -5.7 -3.3 a 0.2 0.2 90 0 1 0 -0.2 L -3.8 -5.4 a 0.2 0.2 90 0 1 0.2 -0.1 a 0.2 0.2 90 0 1 0.2 0.1 a 0.2 0.2 90 0 1 0 0.1 a 0.2 0.2 90 0 1 0 0.1 l 0 1 l 6.8 0 V -5.3 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0.3 -0 l 1.9 1.9 a 0.2 0.2 90 0 1 0 0.2 Z",_.SENTIMENT_NEGATIVE_PATH="M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M 0.3421 -0.598 A 0.2149 0.2149 90 0 1 0.5296 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.1292 A 0.2149 0.2149 90 0 1 0.1546 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.598 Z M -0.3522 -0.5916 A 0.2148 0.2148 90 0 1 -0.1647 -0.3574 A 0.2149 0.2149 90 0 1 -0.3522 -0.123 A 0.2149 0.2149 90 0 1 -0.5397 -0.3574 A 0.2148 0.2148 90 0 1 -0.3522 -0.5916 Z M 0.5548 0.4151 L 0.4959 0.4449 A 0.0625 0.0625 90 0 1 0.4257 0.4354 C 0.4049 0.4166 0.3802 0.3942 0.3739 0.3898 A 0.6554 0.6554 90 0 0 0.0026 0.2813 A 0.6546 0.6546 90 0 0 -0.3724 0.3919 C -0.3802 0.3974 -0.403 0.4184 -0.4224 0.4368 A 0.0625 0.0625 90 0 1 -0.4933 0.4468 L -0.5513 0.4174 A 0.0625 0.0625 90 0 1 -0.5694 0.3197 C -0.5549 0.3036 -0.5418 0.2895 -0.5366 0.2848 A 0.813 0.813 90 0 1 0.0026 0.0938 A 0.8106 0.8106 90 0 1 0.5481 0.2906 C 0.5511 0.2933 0.5611 0.3043 0.5731 0.3176 A 0.0625 0.0625 90 0 1 0.5548 0.4151 Z",_.SENTIMENT_NEUTRAL_PATH="M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.4666 A 0.2149 0.2149 90 0 1 -0.1647 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 0.0021 A 0.2149 0.2149 90 0 1 -0.5397 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 -0.4666 Z M 0.325 0.5 H -0.325 A 0.05 0.05 90 0 1 -0.375 0.45 V 0.425 A 0.05 0.05 90 0 1 -0.325 0.375 H 0.325 A 0.05 0.05 90 0 1 0.375 0.425 V 0.45 A 0.05 0.05 90 0 1 0.325 0.5 Z M 0.3421 -0.0042 A 0.2149 0.2149 90 0 1 0.1546 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.473 A 0.2149 0.2149 90 0 1 0.5296 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.0043 Z",_.SENTIMENT_POSITIVE_PATH="M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.5916 A 0.215 0.215 90 0 1 -0.1647 -0.3572 A 0.215 0.215 90 0 1 -0.3522 -0.1229 A 0.215 0.215 90 0 1 -0.5397 -0.3572 A 0.2149 0.2149 90 0 1 -0.3522 -0.5916 Z M 0.3421 -0.598 A 0.215 0.215 90 0 1 0.5296 -0.3635 A 0.2149 0.2149 90 0 1 0.3421 -0.1291 A 0.2149 0.2149 90 0 1 0.1546 -0.3635 A 0.215 0.215 90 0 1 0.3421 -0.598 Z M 0 0.6275 A 0.6161 0.6161 90 0 1 -0.625 0.1187 H 0.625 A 0.6161 0.6161 90 0 1 0 0.6275 Z"},938:function(E,_,A){var T=this&&this.__createBinding||(Object.create?function(E,_,A,T){void 0===T&&(T=A);var I=Object.getOwnPropertyDescriptor(_,A);I&&!("get"in I?!_.__esModule:I.writable||I.configurable)||(I={enumerable:!0,get:function(){return _[A]}}),Object.defineProperty(E,T,I)}:function(E,_,A,T){void 0===T&&(T=A),E[T]=_[A]}),I=this&&this.__exportStar||function(E,_){for(var A in E)"default"===A||Object.prototype.hasOwnProperty.call(_,A)||T(_,E,A)};Object.defineProperty(_,"__esModule",{value:!0}),I(A(715),_)}},_={};return function A(T){var I=_[T];if(void 0!==I)return I.exports;var N=_[T]={exports:{}};return E[T].call(N.exports,N,N.exports,A),N.exports}(938)})()));
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! @spectrum-charts/constants@v0.0.1 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAiC,wBAAID,IAErCD,EAA8B,wBAAIC,GACnC,CATD,CASGK,MAAM,IACT,sCCsGA,IAAYC,qrDAnGC,EAAAC,qBAAuB,GACvB,EAAAC,uBAAyB,OACzB,EAAAC,mBAAqB,EACrB,EAAAC,8BAAgC,WAChC,EAAAC,+BAAiC,GACjC,EAAAC,yBAA2B,cAC3B,EAAAC,8BAAgC,WAChC,EAAAC,cAAgB,SAChB,EAAAC,qBAAuB,QACvB,EAAAC,6BAA+B,SAC/B,EAAAC,kBAAoB,GACpB,EAAAC,mBAAqB,WACrB,EAAAC,oBAAsB,MACtB,EAAAC,oBAAsB,SACtB,EAAAC,0BAA4B,SAC5B,EAAAC,0BAA4B,aAC5B,EAAAC,mBAAqB,CAAC,QAAS,SAAU,SAAU,UAAW,WAAY,WAC1E,EAAAC,yBAA2B,IAC3B,EAAAC,eAAiB,QACjB,EAAAC,eAAiB,QACjB,EAAAC,wBAA0B,YAC1B,EAAAC,oBAAsB,IACtB,EAAAC,4BAA8B,EAC9B,EAAAC,uBAAyB,WACzB,EAAAC,mCAAqC,GAAG,EAAAD,0BACxC,EAAAE,0BAA4B,OAC5B,EAAAC,yBAA2B,UAG3B,EAAAC,MAAQ,QACR,EAAAC,eAAiB,gBAGjB,EAAAC,WAAa,eACb,EAAAC,QAAU,YACV,EAAAC,UAAY,cACZ,EAAAC,SAAW,aACX,EAAAC,eAAiB,mBACjB,EAAAC,gBAAkB,oBAGlB,EAAAC,iBAAmB,kBACnB,EAAAC,kBAAoB,mBACpB,EAAAC,mBAAqB,oBACrB,EAAAC,cAAgB,eAChB,EAAAC,gBAAkB,iBAClB,EAAAC,eAAiB,gBAGjB,EAAAC,YAAc,QACd,EAAAC,gBAAkB,WAClB,EAAAC,mBAAqB,cACrB,EAAAC,iBAAmB,YACnB,EAAAC,cAAgB,UAChB,EAAAC,mBAAqB,cACrB,EAAAC,kBAAoB,aACpB,EAAAC,wBAA0B,kBAG1B,EAAAC,qBAAuB,CAAEC,MAAO,GAGhC,EAAAC,cAAgB,EAGhB,EAAAC,iBAAmB,GACnB,EAAAC,cAAgB,GAChB,EAAAC,eAAiB,EACjB,EAAAC,gBAAkB,GAIlB,EAAAC,aAAe,+BAEf,EAAAC,8BAAgC,GAEhC,EAAAC,4BAA8B,GAE9B,EAAAC,4BAA8B,GAE9B,EAAAC,8BAAgC,IAEhC,EAAAC,yBAA2B,GAG3B,EAAAC,yBAA2B,EAG3B,EAAAC,qBAAuB,IAIvB,EAAAC,iBAAmB,uBAGnB,EAAAC,WAAa,MACb,EAAAC,KAAO,OAGpB,SAAYnE,GACX,oBACA,aACA,CAHD,CAAYA,IAAgB,mBAAhBA,EAAgB,KAIf,EAAAoE,WAAa,IACb,EAAAC,kBAAoB,EACpB,EAAAC,YAAc,UAGd,EAAAC,oBACZ,6JAEY,EAAAC,UACZ,gyBAEY,EAAAC,2BACZ,8ZAEY,EAAAC,2BACZ,i2BAEY,EAAAC,wBACZ,u5BAEY,EAAAC,uBACZ,gjBAEY,EAAAC,wBACZ,i9BChID,cCXIC,EAA2B,CAAC,SAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAatF,QAGrB,IAAIC,EAASkF,EAAyBE,GAAY,CAGjDrF,QAAS,CAAC,GAOX,OAHAwF,EAAoBH,GAAUI,KAAKxF,EAAOD,QAASC,EAAQA,EAAOD,QAASoF,GAGpEnF,EAAOD,OACf,CCnB0BoF,CAAoB,MJO9C","sources":["webpack://spectrumChartsConstants/webpack/universalModuleDefinition","webpack://spectrumChartsConstants/./constants.ts","webpack://spectrumChartsConstants/./index.ts","webpack://spectrumChartsConstants/webpack/bootstrap","webpack://spectrumChartsConstants/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"spectrumChartsConstants\"] = factory();\n\telse\n\t\troot[\"spectrumChartsConstants\"] = factory();\n})(this, () => {\nreturn ","/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// prop defaults\nexport const ANNOTATION_FONT_SIZE = 12;\nexport const ANNOTATION_FONT_WEIGHT = 'bold';\nexport const ANNOTATION_PADDING = 4;\nexport const DEFAULT_AXIS_ANNOTATION_COLOR = 'gray-600';\nexport const DEFAULT_AXIS_ANNOTATION_OFFSET = 80;\nexport const DEFAULT_BACKGROUND_COLOR = 'transparent';\nexport const DEFAULT_CATEGORICAL_DIMENSION = 'category';\nexport const DEFAULT_COLOR = 'series';\nexport const DEFAULT_COLOR_SCHEME = 'light';\nexport const DEFAULT_DIMENSION_SCALE_TYPE = 'linear';\nexport const DEFAULT_FONT_SIZE = 14;\nexport const DEFAULT_FONT_COLOR = 'gray-800';\nexport const DEFAULT_GRANULARITY = 'day';\nexport const DEFAULT_LABEL_ALIGN = 'center';\nexport const DEFAULT_LABEL_FONT_WEIGHT = 'normal';\nexport const DEFAULT_LABEL_ORIENTATION = 'horizontal';\nexport const DEFAULT_LINE_TYPES = ['solid', 'dashed', 'dotted', 'dotDash', 'longDash', 'twoDash'];\nexport const DEFAULT_LINEAR_DIMENSION = 'x';\nexport const DEFAULT_LOCALE = 'en-US';\nexport const DEFAULT_METRIC = 'value';\nexport const DEFAULT_SECONDARY_COLOR = 'subSeries';\nexport const DEFAULT_SYMBOL_SIZE = 100;\nexport const DEFAULT_SYMBOL_STROKE_WIDTH = 2;\nexport const DEFAULT_TIME_DIMENSION = 'datetime';\nexport const DEFAULT_TRANSFORMED_TIME_DIMENSION = `${DEFAULT_TIME_DIMENSION}0`;\nexport const DEFAULT_TITLE_FONT_WEIGHT = 'bold';\nexport const DEFAULT_INTERACTION_MODE = 'nearest';\n\n// vega data table name\nexport const TABLE = 'table';\nexport const FILTERED_TABLE = 'filteredTable';\n\n// vega data field names\nexport const GROUP_DATA = 'rscGroupData';\nexport const MARK_ID = 'rscMarkId';\nexport const SERIES_ID = 'rscSeriesId';\nexport const STACK_ID = 'rscStackId';\nexport const COMPONENT_NAME = 'rscComponentName';\nexport const TRENDLINE_VALUE = 'rscTrendlineValue';\n\n// signal names\nexport const HIGHLIGHTED_ITEM = 'highlightedItem'; // data point\nexport const HIGHLIGHTED_GROUP = 'highlightedGroup'; // data point\nexport const HIGHLIGHTED_SERIES = 'highlightedSeries'; // series\nexport const SELECTED_ITEM = 'selectedItem'; // data point\nexport const SELECTED_SERIES = 'selectedSeries'; // series\nexport const SELECTED_GROUP = 'selectedGroup'; // data point\n\n// scale names\nexport const COLOR_SCALE = 'color';\nexport const LINE_TYPE_SCALE = 'lineType';\nexport const LINEAR_COLOR_SCALE = 'linearColor';\nexport const LINE_WIDTH_SCALE = 'lineWidth';\nexport const OPACITY_SCALE = 'opacity';\nexport const SYMBOL_SHAPE_SCALE = 'symbolShape';\nexport const SYMBOL_SIZE_SCALE = 'symbolSize';\nexport const SYMBOL_PATH_WIDTH_SCALE = 'symbolPathWidth';\n\n// encode rules\nexport const DEFAULT_OPACITY_RULE = { value: 1 };\n\n// corner radius\nexport const CORNER_RADIUS = 6;\n\n// padding constants\nexport const DISCRETE_PADDING = 0.5;\nexport const PADDING_RATIO = 0.4;\nexport const LINEAR_PADDING = 0;\nexport const TRELLIS_PADDING = 0.2;\n\n// donut constants\n/** Calculation for donut radius, subtract 2 pixels to make room for the selection ring */\nexport const DONUT_RADIUS = '(min(width, height) / 2 - 2)';\n/** Min arc angle radians to display a segment label. If the arc angle is less than this, the segment label will be hidden. */\nexport const DONUT_SEGMENT_LABEL_MIN_ANGLE = 0.3;\n/** Min font size for the donut summary metric value */\nexport const DONUT_SUMMARY_MIN_FONT_SIZE = 28;\n/** Max font size for the donut summary metric value */\nexport const DONUT_SUMMARY_MAX_FONT_SIZE = 60;\n/** Ratio of the donut summary matric value font size to the inner donut raidus */\nexport const DONUT_SUMMARY_FONT_SIZE_RATIO = 0.35;\n/** Min inner radius to display the summary metric. If the inner radius is less than this, the summary metric is hidden. */\nexport const DONUT_SUMMARY_MIN_RADIUS = 45;\n\n// ratio that each opacity is divded by when hovering or highlighting from legend\nexport const HIGHLIGHT_CONTRAST_RATIO = 5;\n\n// legend tooltips\nexport const LEGEND_TOOLTIP_DELAY = 350;\n\n// signal names\n// 'backgroundColor' is an undocumented protected signal name used by vega\nexport const BACKGROUND_COLOR = 'chartBackgroundColor';\n\n// time constants\nexport const MS_PER_DAY = 86400000;\nexport const TIME = 'time';\n\n// mark constants\nexport enum INTERACTION_MODE {\n\tNEAREST = 'nearest',\n\tITEM = 'item',\n}\nexport const HOVER_SIZE = 3000;\nexport const HOVER_SHAPE_COUNT = 3;\nexport const HOVER_SHAPE = 'diamond';\n\n//SVG Paths\nexport const ROUNDED_SQUARE_PATH =\n\t'M -0.55 -1 h 1.1 a 0.45 0.45 0 0 1 0.45 0.45 v 1.1 a 0.45 0.45 0 0 1 -0.45 0.45 h -1.1 a 0.45 0.45 0 0 1 -0.45 -0.45 v -1.1 a 0.45 0.45 0 0 1 0.45 -0.45 z';\n\nexport const DATE_PATH =\n\t'M 0.88 -0.66 H 0.605 V -0.825 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.385 V -0.825 A 0.055 0.055 90 0 0 -0.44 -0.88 h -0.11 a 0.055 0.055 90 0 0 -0.055 0.055 V -0.66 H -0.88 a 0.055 0.055 90 0 0 -0.055 0.055 v 1.43 a 0.055 0.055 90 0 0 0.055 0.055 h 1.76 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.605 A 0.055 0.055 90 0 0 0.88 -0.66 Z M 0.825 0.77 H -0.825 V -0.55 H -0.605 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 A 0.055 0.055 90 0 0 -0.385 -0.495 V -0.55 h 0.77 v 0.055 a 0.055 0.055 90 0 0 0.055 0.055 h 0.11 a 0.055 0.055 90 0 0 0.055 -0.055 V -0.55 h 0.22 Z M 0.165 0.165 v 0.33 a 0.055 0.055 90 0 0 0.055 0.055 h 0.33 a 0.055 0.055 90 0 0 0.055 -0.055 v -0.33 a 0.055 0.055 90 0 0 -0.055 -0.055 h -0.33 a 0.055 0.055 90 0 0 -0.055 0.055';\n\nexport const ANNOTATION_SINGLE_ICON_SVG =\n\t'M 6.86 -8.32 H -7.79 a 0.53 0.53 90 0 0 -0.53 0.53 v 14.65 a 0.53 0.53 90 0 0 0.53 0.53 H 1.72 V 2.9 a 1.06 1.06 90 0 1 1.06 -1.06 h 4.49 V -7.79 A 0.53 0.53 90 0 0 6.86 -8.32 Z M -0.4 2.9 H -5.02 V 1.72 H -0.4 Z m 4.49 -3.3 H -5.02 V -1.58 h 8.98 Z m 0 -3.3 H -5.02 V -5.02 h 8.98 Z M 2.9 7.39 V 3.43 a 0.53 0.53 90 0 1 0.53 -0.53 H 7.39 a 0.66 0.66 90 0 1 -0.13 0.53 l -3.83 3.83 A 0.66 0.66 90 0 1 2.9 7.39 Z';\n\nexport const ANNOTATION_RANGED_ICON_SVG =\n\t'M 3.8 7.6 V 4.3 A 0.5 0.5 90 0 1 4.3 3.8 h 3.3 a 0.6 0.6 90 0 1 -0.1 0.4 L 4.2 7.5 a 0.6 0.6 90 0 1 -0.4 0.1 Z m 3.7 -15.1 a 0.5 0.5 90 0 0 -0.4 -0.2 H -7.1 a 0.5 0.5 90 0 0 -0.5 0.5 v 14.2 a 0.5 0.5 90 0 0 0.5 0.5 H 2.5 V 3.6 a 1.1 1.1 90 0 1 1.1 -1.1 H 7.6 V -7.1 A 0.5 0.5 90 0 0 7.5 -7.5 Z M 5.7 -3.3 l -1.9 1.9 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0 -0.1 a 0.2 0.2 90 0 1 -0 -0.1 v -1 L -3.4 -2.6 l -0 1 a 0.2 0.2 90 0 1 -0.1 0.2 a 0.2 0.2 90 0 1 -0.2 0.1 a 0.2 0.2 90 0 1 -0.1 -0 a 0.2 0.2 90 0 1 -0.1 -0 L -5.7 -3.3 a 0.2 0.2 90 0 1 0 -0.2 L -3.8 -5.4 a 0.2 0.2 90 0 1 0.2 -0.1 a 0.2 0.2 90 0 1 0.2 0.1 a 0.2 0.2 90 0 1 0 0.1 a 0.2 0.2 90 0 1 0 0.1 l 0 1 l 6.8 0 V -5.3 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0 -0.1 a 0.2 0.2 90 0 1 0.3 -0 l 1.9 1.9 a 0.2 0.2 90 0 1 0 0.2 Z';\n\nexport const SENTIMENT_NEGATIVE_PATH =\n\t'M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M 0.3421 -0.598 A 0.2149 0.2149 90 0 1 0.5296 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.1292 A 0.2149 0.2149 90 0 1 0.1546 -0.3636 A 0.2149 0.2149 90 0 1 0.3421 -0.598 Z M -0.3522 -0.5916 A 0.2148 0.2148 90 0 1 -0.1647 -0.3574 A 0.2149 0.2149 90 0 1 -0.3522 -0.123 A 0.2149 0.2149 90 0 1 -0.5397 -0.3574 A 0.2148 0.2148 90 0 1 -0.3522 -0.5916 Z M 0.5548 0.4151 L 0.4959 0.4449 A 0.0625 0.0625 90 0 1 0.4257 0.4354 C 0.4049 0.4166 0.3802 0.3942 0.3739 0.3898 A 0.6554 0.6554 90 0 0 0.0026 0.2813 A 0.6546 0.6546 90 0 0 -0.3724 0.3919 C -0.3802 0.3974 -0.403 0.4184 -0.4224 0.4368 A 0.0625 0.0625 90 0 1 -0.4933 0.4468 L -0.5513 0.4174 A 0.0625 0.0625 90 0 1 -0.5694 0.3197 C -0.5549 0.3036 -0.5418 0.2895 -0.5366 0.2848 A 0.813 0.813 90 0 1 0.0026 0.0938 A 0.8106 0.8106 90 0 1 0.5481 0.2906 C 0.5511 0.2933 0.5611 0.3043 0.5731 0.3176 A 0.0625 0.0625 90 0 1 0.5548 0.4151 Z';\n\nexport const SENTIMENT_NEUTRAL_PATH =\n\t'M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.4666 A 0.2149 0.2149 90 0 1 -0.1647 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 0.0021 A 0.2149 0.2149 90 0 1 -0.5397 -0.2322 A 0.2149 0.2149 90 0 1 -0.3522 -0.4666 Z M 0.325 0.5 H -0.325 A 0.05 0.05 90 0 1 -0.375 0.45 V 0.425 A 0.05 0.05 90 0 1 -0.325 0.375 H 0.325 A 0.05 0.05 90 0 1 0.375 0.425 V 0.45 A 0.05 0.05 90 0 1 0.325 0.5 Z M 0.3421 -0.0042 A 0.2149 0.2149 90 0 1 0.1546 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.473 A 0.2149 0.2149 90 0 1 0.5296 -0.2386 A 0.2149 0.2149 90 0 1 0.3421 -0.0043 Z';\n\nexport const SENTIMENT_POSITIVE_PATH =\n\t'M 0 -1 A 1 1 90 1 0 1 0 A 1 1 90 0 0 0 -1 Z M -0.3522 -0.5916 A 0.215 0.215 90 0 1 -0.1647 -0.3572 A 0.215 0.215 90 0 1 -0.3522 -0.1229 A 0.215 0.215 90 0 1 -0.5397 -0.3572 A 0.2149 0.2149 90 0 1 -0.3522 -0.5916 Z M 0.3421 -0.598 A 0.215 0.215 90 0 1 0.5296 -0.3635 A 0.2149 0.2149 90 0 1 0.3421 -0.1291 A 0.2149 0.2149 90 0 1 0.1546 -0.3635 A 0.215 0.215 90 0 1 0.3421 -0.598 Z M 0 0.6275 A 0.6161 0.6161 90 0 1 -0.625 0.1187 H 0.625 A 0.6161 0.6161 90 0 1 0 0.6275 Z';\n","/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './constants';\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(938);\n"],"names":["root","factory","exports","module","define","amd","this","INTERACTION_MODE","ANNOTATION_FONT_SIZE","ANNOTATION_FONT_WEIGHT","ANNOTATION_PADDING","DEFAULT_AXIS_ANNOTATION_COLOR","DEFAULT_AXIS_ANNOTATION_OFFSET","DEFAULT_BACKGROUND_COLOR","DEFAULT_CATEGORICAL_DIMENSION","DEFAULT_COLOR","DEFAULT_COLOR_SCHEME","DEFAULT_DIMENSION_SCALE_TYPE","DEFAULT_FONT_SIZE","DEFAULT_FONT_COLOR","DEFAULT_GRANULARITY","DEFAULT_LABEL_ALIGN","DEFAULT_LABEL_FONT_WEIGHT","DEFAULT_LABEL_ORIENTATION","DEFAULT_LINE_TYPES","DEFAULT_LINEAR_DIMENSION","DEFAULT_LOCALE","DEFAULT_METRIC","DEFAULT_SECONDARY_COLOR","DEFAULT_SYMBOL_SIZE","DEFAULT_SYMBOL_STROKE_WIDTH","DEFAULT_TIME_DIMENSION","DEFAULT_TRANSFORMED_TIME_DIMENSION","DEFAULT_TITLE_FONT_WEIGHT","DEFAULT_INTERACTION_MODE","TABLE","FILTERED_TABLE","GROUP_DATA","MARK_ID","SERIES_ID","STACK_ID","COMPONENT_NAME","TRENDLINE_VALUE","HIGHLIGHTED_ITEM","HIGHLIGHTED_GROUP","HIGHLIGHTED_SERIES","SELECTED_ITEM","SELECTED_SERIES","SELECTED_GROUP","COLOR_SCALE","LINE_TYPE_SCALE","LINEAR_COLOR_SCALE","LINE_WIDTH_SCALE","OPACITY_SCALE","SYMBOL_SHAPE_SCALE","SYMBOL_SIZE_SCALE","SYMBOL_PATH_WIDTH_SCALE","DEFAULT_OPACITY_RULE","value","CORNER_RADIUS","DISCRETE_PADDING","PADDING_RATIO","LINEAR_PADDING","TRELLIS_PADDING","DONUT_RADIUS","DONUT_SEGMENT_LABEL_MIN_ANGLE","DONUT_SUMMARY_MIN_FONT_SIZE","DONUT_SUMMARY_MAX_FONT_SIZE","DONUT_SUMMARY_FONT_SIZE_RATIO","DONUT_SUMMARY_MIN_RADIUS","HIGHLIGHT_CONTRAST_RATIO","LEGEND_TOOLTIP_DELAY","BACKGROUND_COLOR","MS_PER_DAY","TIME","HOVER_SIZE","HOVER_SHAPE_COUNT","HOVER_SHAPE","ROUNDED_SQUARE_PATH","DATE_PATH","ANNOTATION_SINGLE_ICON_SVG","ANNOTATION_RANGED_ICON_SVG","SENTIMENT_NEGATIVE_PATH","SENTIMENT_NEUTRAL_PATH","SENTIMENT_POSITIVE_PATH","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call"],"sourceRoot":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spectrum-charts/constants",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Constants used in spectrum charts",
|
|
5
|
+
"browser": "dist/index.js",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"author": "marshallpete",
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "webpack --config ./webpack.config.js",
|
|
16
|
+
"clean": "rm -rf dist",
|
|
17
|
+
"prepack": "yarn clean && yarn build",
|
|
18
|
+
"pack-test": "cross-env NODE_ENV=development npm pack",
|
|
19
|
+
"pack": "cross-env NODE_ENV=production npm pack"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"typescript": "^5.4.5",
|
|
23
|
+
"webpack": "^5.75.0",
|
|
24
|
+
"webpack-cli": "^5.0.1",
|
|
25
|
+
"ts-loader": "^9.4.2"
|
|
26
|
+
}
|
|
27
|
+
}
|