@crysound/crychart 0.0.0-stage → 1.0.2
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.md +288 -0
- package/LICENSE.zh-CN.md +290 -0
- package/README.md +82 -2
- package/README.zh-CN.md +79 -0
- package/dist/crychart.cjs +25234 -0
- package/dist/crychart.global.js +25236 -0
- package/dist/crychart.js +25211 -0
- package/dist/themes.js +357 -0
- package/dist/types/adapters/opentest.d.ts +69 -0
- package/dist/types/annotation-interaction.d.ts +36 -0
- package/dist/types/axis-canvas.d.ts +78 -0
- package/dist/types/axis-layout.d.ts +10 -0
- package/dist/types/axis-scroll-animation.d.ts +16 -0
- package/dist/types/axis.d.ts +532 -0
- package/dist/types/axis3d-label-layout.d.ts +45 -0
- package/dist/types/chart-events.d.ts +89 -0
- package/dist/types/chart.d.ts +674 -0
- package/dist/types/compatibility-types.d.ts +55 -0
- package/dist/types/component-highlight.d.ts +21 -0
- package/dist/types/contracts.d.ts +88 -0
- package/dist/types/core/data.d.ts +204 -0
- package/dist/types/core/events.d.ts +16 -0
- package/dist/types/core/line-delta-certificate.d.ts +70 -0
- package/dist/types/core/paged-columns.d.ts +180 -0
- package/dist/types/core/styles.d.ts +350 -0
- package/dist/types/css-text-fonts.d.ts +13 -0
- package/dist/types/cursor-api.d.ts +47 -0
- package/dist/types/custom-icon.d.ts +46 -0
- package/dist/types/data-bounds.d.ts +28 -0
- package/dist/types/data-order.d.ts +49 -0
- package/dist/types/data-runs.d.ts +15 -0
- package/dist/types/date-time-formatting.d.ts +32 -0
- package/dist/types/date-time-grid.d.ts +56 -0
- package/dist/types/formatting-functions.d.ts +16 -0
- package/dist/types/geometry.d.ts +378 -0
- package/dist/types/gradients.d.ts +37 -0
- package/dist/types/grid-layout.d.ts +10 -0
- package/dist/types/heatmap-stream.d.ts +38 -0
- package/dist/types/hierarchy.d.ts +191 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/interaction-policy.d.ts +56 -0
- package/dist/types/line-block-cache.d.ts +146 -0
- package/dist/types/line-coverage-geometry.d.ts +28 -0
- package/dist/types/line-display-arena.d.ts +64 -0
- package/dist/types/line-display-cache.d.ts +144 -0
- package/dist/types/line-display-packets.d.ts +43 -0
- package/dist/types/line-extrema-pair-proof.d.ts +23 -0
- package/dist/types/line-palette-3d.d.ts +6 -0
- package/dist/types/line-selection-ledger.d.ts +143 -0
- package/dist/types/map.d.ts +219 -0
- package/dist/types/mesh3d.d.ts +306 -0
- package/dist/types/native-legend.d.ts +208 -0
- package/dist/types/point-fill.d.ts +14 -0
- package/dist/types/point-stroke-geometry.d.ts +12 -0
- package/dist/types/polar-heatmap.d.ts +68 -0
- package/dist/types/polar-layout.d.ts +100 -0
- package/dist/types/polar-series.d.ts +79 -0
- package/dist/types/raster-clip.d.ts +37 -0
- package/dist/types/render-heatmap.d.ts +117 -0
- package/dist/types/render-line-coverage.d.ts +95 -0
- package/dist/types/render-line-direction.d.ts +27 -0
- package/dist/types/render-line-offsets.d.ts +61 -0
- package/dist/types/render-line-strip.d.ts +102 -0
- package/dist/types/render-line-texture.d.ts +30 -0
- package/dist/types/render.d.ts +66 -0
- package/dist/types/render3d.d.ts +137 -0
- package/dist/types/result-table-layout.d.ts +39 -0
- package/dist/types/series-attributes.d.ts +7 -0
- package/dist/types/series.d.ts +404 -0
- package/dist/types/specialty.d.ts +551 -0
- package/dist/types/streaming-line-policy.d.ts +11 -0
- package/dist/types/stroke-geometry.d.ts +5 -0
- package/dist/types/themes.d.ts +32 -0
- package/dist/types/time-formatting.d.ts +23 -0
- package/dist/types/time-grid.d.ts +26 -0
- package/dist/types/ui.d.ts +207 -0
- package/dist/types/viewport.d.ts +18 -0
- package/dist/types/world-axis.d.ts +21 -0
- package/dist/types/world-camera.d.ts +88 -0
- package/dist/types/zoom-clock.d.ts +36 -0
- package/docs/npm-usage.md +31 -0
- package/package.json +66 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
# CRYChart Community License 1.0
|
|
2
|
+
|
|
3
|
+
[简体中文](LICENSE.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Machine-readable license identifier: LicenseRef-CRYChart-Community-1.0
|
|
6
|
+
|
|
7
|
+
Copyright 2026 CRYSOUND. All Rights Reserved.
|
|
8
|
+
|
|
9
|
+
## 1. Scope of the License
|
|
10
|
+
|
|
11
|
+
This License applies to the CRYChart frontend rendering library customized by CRYSOUND (the "Licensor") for OpenTest, and to related components released by CRYSOUND and expressly made subject to this License, including:
|
|
12
|
+
|
|
13
|
+
- CRYChart source code and rendering components;
|
|
14
|
+
- JavaScript and TypeScript SDKs and public APIs;
|
|
15
|
+
- Data visualization and interaction components;
|
|
16
|
+
- Example code and documentation;
|
|
17
|
+
- Compiled or bundled JavaScript, ES modules, CommonJS modules, browser scripts, type declarations, and related build artifacts;
|
|
18
|
+
- Other components owned by CRYSOUND and expressly released as part of CRYChart under this License.
|
|
19
|
+
|
|
20
|
+
Some CRYChart source code is made publicly available to facilitate inspection, learning, modification, extension, and participation in project development.
|
|
21
|
+
|
|
22
|
+
Third-party software included in or relied upon by CRYChart must be used under its respective licenses. This License does not change the licenses applicable to other independent software.
|
|
23
|
+
|
|
24
|
+
By copying, modifying, compiling, running, or distributing CRYChart, or otherwise exercising the rights granted under this License, you agree to comply with this License.
|
|
25
|
+
|
|
26
|
+
## 2. Rights Granted to Users
|
|
27
|
+
|
|
28
|
+
Subject to compliance with this License, individuals, enterprises, schools, research institutions, and other organizations may:
|
|
29
|
+
|
|
30
|
+
- Inspect, study, download, and copy CRYChart source code;
|
|
31
|
+
- Fork the CRYChart project;
|
|
32
|
+
- Modify the source code;
|
|
33
|
+
- Compile and run original or modified versions;
|
|
34
|
+
- Develop plugins, algorithms, device drivers, and extensions;
|
|
35
|
+
- Integrate with other software and hardware systems;
|
|
36
|
+
- Redistribute source code and modified versions in accordance with this License;
|
|
37
|
+
- Submit code contributions to the CRYChart project.
|
|
38
|
+
|
|
39
|
+
## 3. Permitted Uses Under the Free License
|
|
40
|
+
|
|
41
|
+
The free CRYChart license may be used for:
|
|
42
|
+
|
|
43
|
+
- Personal use, learning, and education;
|
|
44
|
+
- Scientific research, software development, and product research and development;
|
|
45
|
+
- Testing (including automated testing), measurement, and data acquisition;
|
|
46
|
+
- Internal enterprise use, including research and development and production environments;
|
|
47
|
+
- Internal use in commercial projects.
|
|
48
|
+
|
|
49
|
+
You may also use CRYChart to provide customers with testing, measurement, engineering, research and development, data analysis, or other technical services, provided that all of the following conditions are met:
|
|
50
|
+
|
|
51
|
+
- CRYChart itself is not delivered to customers as a software product, software supplied with equipment, or an online software service;
|
|
52
|
+
- Customers do not acquire an independent right to use the CRYChart software.
|
|
53
|
+
|
|
54
|
+
## 4. Free License
|
|
55
|
+
|
|
56
|
+
The free CRYChart license does not impose a numerical limit on physical input or output channels, plotted data series, curves, data points, or views.
|
|
57
|
+
|
|
58
|
+
This absence of a licensing count limit does not remove technical or resource limits of the software, and does not waive the Commercial License requirements for the use scenarios described in Section 7.
|
|
59
|
+
|
|
60
|
+
## 5. Plugins, Drivers, and Extensions
|
|
61
|
+
|
|
62
|
+
CRYChart encourages developers to create their own plugins, device drivers, algorithms, data processing modules, UI extensions, automation tools, and software integration components.
|
|
63
|
+
|
|
64
|
+
Developers may decide for themselves whether these independent extension components:
|
|
65
|
+
|
|
66
|
+
- Have publicly available source code;
|
|
67
|
+
- Use a particular license of their choice;
|
|
68
|
+
- Are released free of charge;
|
|
69
|
+
- Or are sold commercially.
|
|
70
|
+
|
|
71
|
+
Developing and selling independent CRYChart plugins or extensions does not, in itself, require an CRYChart Commercial License.
|
|
72
|
+
|
|
73
|
+
Such extensions must comply with the following principles:
|
|
74
|
+
|
|
75
|
+
- They must not contain CRYChart code copied without authorization;
|
|
76
|
+
- They must not alter or circumvent the scope of authorization granted for CRYChart;
|
|
77
|
+
- They must not redistribute CRYChart itself or its main code as an extension component;
|
|
78
|
+
- Use of the CRYChart software itself must continue to comply with this License.
|
|
79
|
+
|
|
80
|
+
## 6. Source Code Modification, Forking, and Community Distribution
|
|
81
|
+
|
|
82
|
+
You may fork, modify, and publish CRYChart source code for learning, research, bug fixes, feature development, technical exchange, community collaboration, code review, or contributions to the official CRYChart project.
|
|
83
|
+
|
|
84
|
+
You may redistribute CRYChart source code or modified versions in accordance with this License. Where the commercial scenarios described in Section 7 are involved, the corresponding Commercial License applies. When redistributing, you must:
|
|
85
|
+
|
|
86
|
+
- Retain this License;
|
|
87
|
+
- Retain the original copyright notices;
|
|
88
|
+
- Provide a reasonable description of significant modifications;
|
|
89
|
+
- Avoid misleading recipients into believing that a modified version is an official CRYChart release;
|
|
90
|
+
- Keep the original CRYChart code and modifications to that code subject to this License.
|
|
91
|
+
|
|
92
|
+
## 7. Scenarios Requiring a Commercial License
|
|
93
|
+
|
|
94
|
+
If any of the following use scenarios apply, obtain a valid CRYChart Commercial License covering that use before engaging in it. The specific scope of authorization is governed by the applicable commercial license or commercial agreement.
|
|
95
|
+
|
|
96
|
+
### 7.1 OEM, ODM, White-Label, and Delivery with Equipment
|
|
97
|
+
|
|
98
|
+
The corresponding Commercial License applies to the following forms of delivery:
|
|
99
|
+
|
|
100
|
+
- Preinstalling CRYChart on equipment sold or delivered to third parties;
|
|
101
|
+
- Integrating CRYChart into test instruments sold or delivered to third parties;
|
|
102
|
+
- Integrating CRYChart into automated test systems sold or delivered to third parties;
|
|
103
|
+
- Providing CRYChart as part of an OEM, ODM, or white-label product;
|
|
104
|
+
- Providing CRYChart to third parties as accompanying software for other commercial products.
|
|
105
|
+
|
|
106
|
+
Whether or not CRYChart is priced separately, delivery of CRYChart to third parties with a commercial product is subject to the Commercial License described in this section.
|
|
107
|
+
|
|
108
|
+
### 7.2 Commercial Software Distribution
|
|
109
|
+
|
|
110
|
+
The corresponding Commercial License applies to the following forms of commercial software distribution:
|
|
111
|
+
|
|
112
|
+
- Selling, renting, or licensing CRYChart itself as a commercial software product;
|
|
113
|
+
- Charging software license fees for CRYChart or a software product based on CRYChart;
|
|
114
|
+
- Distributing CRYChart or a substantially modified version of it to third parties as commercial software;
|
|
115
|
+
- Renaming or repackaging CRYChart and providing it to third parties as a commercial software product;
|
|
116
|
+
- Distributing CRYChart to third parties as a substantial component of another paid software product.
|
|
117
|
+
|
|
118
|
+
### 7.3 SaaS, Cloud Services, and Hosted Services
|
|
119
|
+
|
|
120
|
+
If third-party users are given direct access to or use of CRYChart's main software functions over a network for a fee or as part of a paid service, the corresponding Commercial License applies, including for:
|
|
121
|
+
|
|
122
|
+
- SaaS;
|
|
123
|
+
- Cloud services;
|
|
124
|
+
- Hosted services;
|
|
125
|
+
- Online testing platforms;
|
|
126
|
+
- Other online commercial services that are substantially equivalent.
|
|
127
|
+
|
|
128
|
+
Internal enterprise remote access, deployment on internal enterprise servers, and network access limited to users within the same organization do not fall within the scenarios described in this section.
|
|
129
|
+
|
|
130
|
+
### 7.4 Priority of the Commercial License
|
|
131
|
+
|
|
132
|
+
A Commercial License may separately specify terms for OEM use, commercial distribution, hosted services, technical support, or other commercial rights.
|
|
133
|
+
|
|
134
|
+
For matters expressly authorized by a Commercial License, the terms of the corresponding Commercial License or commercial agreement prevail; other provisions of this License that are not expressly superseded continue to apply.
|
|
135
|
+
|
|
136
|
+
## 8. Build Artifacts and Binary Components
|
|
137
|
+
|
|
138
|
+
CRYChart and its related components may be provided as compiled or bundled JavaScript, modules, type declarations, static assets, or related binary components.
|
|
139
|
+
|
|
140
|
+
Within the scope authorized by this License, you may:
|
|
141
|
+
|
|
142
|
+
- Install or integrate the build artifacts;
|
|
143
|
+
- Run the build artifacts;
|
|
144
|
+
- Copy the build artifacts for normal deployment;
|
|
145
|
+
- Retain copies of the build artifacts for backup purposes;
|
|
146
|
+
- Include official CRYChart build artifacts, or build artifacts compiled from modifications permitted under Section 6, in noncommercial distributions that comply with this License.
|
|
147
|
+
|
|
148
|
+
The corresponding Commercial License must be obtained for OEM use, delivery of commercial products, or other scenarios listed in Section 7.
|
|
149
|
+
|
|
150
|
+
## 9. Licensing Integrity
|
|
151
|
+
|
|
152
|
+
Normal software debugging, plugin development, interface development, and compatibility testing are not affected by this section, provided that their purpose is not to alter or circumvent the scope of authorization already obtained.
|
|
153
|
+
|
|
154
|
+
CRYChart may implement authorized capabilities through software, license files, License Keys, accounts, hardware, or other mechanisms.
|
|
155
|
+
|
|
156
|
+
Users must use CRYChart within the scope of authorization they have obtained.
|
|
157
|
+
|
|
158
|
+
To obtain additional licensed capabilities, authorization covering those capabilities must be obtained. Existing authorization does not include independently changing the scope of authorization through technical means, such as:
|
|
159
|
+
|
|
160
|
+
- Modifying license verification logic in a licensed component;
|
|
161
|
+
- Modifying build artifacts or runtime data to alter the scope of authorization;
|
|
162
|
+
- Forging, copying, or generating License Keys, license files, or authorization information without permission;
|
|
163
|
+
- Deliberately disabling, interfering with, or bypassing license verification.
|
|
164
|
+
|
|
165
|
+
For components provided only in binary form, their undisclosed implementations and licensing mechanisms must remain intact, except as otherwise expressly provided by applicable law.
|
|
166
|
+
|
|
167
|
+
## 10. Independent Software and Compatibility Development
|
|
168
|
+
|
|
169
|
+
This License does not affect developers' ability to:
|
|
170
|
+
|
|
171
|
+
- Study CRYChart's publicly disclosed designs;
|
|
172
|
+
- Develop their own independent software;
|
|
173
|
+
- Develop products compatible with CRYChart;
|
|
174
|
+
- Use public CRYChart APIs;
|
|
175
|
+
- Develop plugins;
|
|
176
|
+
- Develop hardware drivers;
|
|
177
|
+
- Develop independent testing, measurement, or automation software.
|
|
178
|
+
|
|
179
|
+
Software developed entirely independently, without copying CRYChart's copyright-protected code, is not subject to this License.
|
|
180
|
+
|
|
181
|
+
If a software product contains CRYChart code or a substantially modified version of CRYChart and is provided to third parties as commercial software, Section 7 applies.
|
|
182
|
+
|
|
183
|
+
## 11. Community Contributions
|
|
184
|
+
|
|
185
|
+
CRYChart welcomes community contributions.
|
|
186
|
+
|
|
187
|
+
Contributors retain the copyright they legally hold in their original contributions and may continue to use or license their own original content independently.
|
|
188
|
+
|
|
189
|
+
When you submit code, documentation, tests, examples, or other content expressly submitted as a contribution to the official CRYChart project, you confirm that you hold the rights necessary to submit that contribution or have obtained the consent of other rights holders, and you grant CRYSOUND a perpetual, worldwide, nonexclusive, royalty-free, sublicensable license.
|
|
190
|
+
|
|
191
|
+
This grant permits CRYSOUND to use, copy, modify, and merge the contribution, create derivative content, provide, distribute, and publish it in source or binary form, and use it commercially. Contributions may also be used in free and commercial editions of CRYChart and in related products and services.
|
|
192
|
+
|
|
193
|
+
If a contribution involves patents that you have the right to license, and CRYChart's use of the contribution requires practicing the relevant patent rights, the above grant also includes the patent license necessary to implement, use, and distribute the contribution.
|
|
194
|
+
|
|
195
|
+
## 12. Trademarks and Branding
|
|
196
|
+
|
|
197
|
+
This License primarily grants rights to use the CRYChart software and does not automatically grant rights to use CRYChart trademarks or branding.
|
|
198
|
+
|
|
199
|
+
Reasonable factual descriptions are permitted, for example:
|
|
200
|
+
|
|
201
|
+
- Compatible with CRYChart
|
|
202
|
+
- Plugin for CRYChart
|
|
203
|
+
- Works with CRYChart
|
|
204
|
+
- Based on CRYChart
|
|
205
|
+
|
|
206
|
+
Use of the CRYChart name, Logo, or other brand assets must not mislead third parties into believing that a product is an official CRYChart version, has received official CRYChart certification, was developed directly by the Licensor, or has an unconfirmed partnership with the Licensor.
|
|
207
|
+
|
|
208
|
+
## 13. Intellectual Property
|
|
209
|
+
|
|
210
|
+
Making CRYChart source code publicly available does not affect ownership of the relevant intellectual property rights.
|
|
211
|
+
|
|
212
|
+
Except for rights expressly granted under this License, the copyrights, trademark rights, patent rights, build artifacts, proprietary implementations, brand assets, and other legally protected rights relating to CRYChart remain with their respective rights holders.
|
|
213
|
+
|
|
214
|
+
## 14. Third-Party Components
|
|
215
|
+
|
|
216
|
+
CRYChart may use third-party software libraries, frameworks, drivers, tools, SDKs, or other components.
|
|
217
|
+
|
|
218
|
+
These third-party components are governed by their respective licenses.
|
|
219
|
+
|
|
220
|
+
This License does not change rights already granted to users under third-party licenses, nor does it expand the Licensor's rights in third-party components.
|
|
221
|
+
|
|
222
|
+
## 15. Continuity and Adjustment of Authorization
|
|
223
|
+
|
|
224
|
+
The rights to use CRYChart obtained under this License remain valid as long as the user complies with this License.
|
|
225
|
+
|
|
226
|
+
If use inconsistent with this License occurs, the Licensor may notify the user to make adjustments. Where the situation can reasonably be corrected, the relevant authorization may remain valid if the user completes the adjustments within thirty (30) days after receiving notice.
|
|
227
|
+
|
|
228
|
+
For ongoing use beyond the scope of authorization, including use inconsistent with the commercial licensing requirements in Section 7 or the licensing integrity provisions in Section 9, the Licensor may suspend or terminate the authorization related to that use scenario.
|
|
229
|
+
|
|
230
|
+
Termination does not affect rights independently granted for third-party components under their respective licenses.
|
|
231
|
+
|
|
232
|
+
## 16. Basis on Which the Software Is Provided
|
|
233
|
+
|
|
234
|
+
CRYChart is provided AS IS.
|
|
235
|
+
|
|
236
|
+
To the extent permitted by applicable law, the Licensor does not warrant that CRYChart is entirely free of errors, will always operate continuously, is suitable for all hardware or all use scenarios, or meets all of the user's specific business needs.
|
|
237
|
+
|
|
238
|
+
Users should confirm the suitability of CRYChart for their own testing, measurement, research and development, and production environments.
|
|
239
|
+
|
|
240
|
+
## 17. Scope of Liability
|
|
241
|
+
|
|
242
|
+
To the extent permitted by applicable law, the Licensor is not liable for indirect, incidental, special, or consequential losses arising from the use of or inability to use CRYChart, including but not limited to loss of data, loss of test results, production interruptions, loss of profits, product damage, or loss of business opportunities.
|
|
243
|
+
|
|
244
|
+
Liability that applicable law expressly prohibits excluding or limiting is not affected by this section.
|
|
245
|
+
|
|
246
|
+
## 18. License Version and Machine-Readable Identifier
|
|
247
|
+
|
|
248
|
+
The name of this License is:
|
|
249
|
+
|
|
250
|
+
```text
|
|
251
|
+
CRYChart Community License 1.0
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
The custom license identifier recommended for software bills of materials, source files, and automated tools is:
|
|
255
|
+
|
|
256
|
+
```text
|
|
257
|
+
LicenseRef-CRYChart-Community-1.0
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Source files that need to declare this License may use:
|
|
261
|
+
|
|
262
|
+
```text
|
|
263
|
+
SPDX-License-Identifier: LicenseRef-CRYChart-Community-1.0
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
The corresponding official license text must be provided with the project.
|
|
267
|
+
|
|
268
|
+
The Licensor may adopt an updated license for future software releases.
|
|
269
|
+
|
|
270
|
+
In principle, a specific version lawfully obtained under this License continues to be governed by the license applicable when that version was obtained.
|
|
271
|
+
|
|
272
|
+
## 19. Language
|
|
273
|
+
|
|
274
|
+
This License may be provided in Chinese and English.
|
|
275
|
+
|
|
276
|
+
Both versions are intended to express the same licensing terms.
|
|
277
|
+
|
|
278
|
+
In the event of any inconsistency in interpretation between language versions, the Chinese version prevails.
|
|
279
|
+
|
|
280
|
+
CRYChart Community License 1.0
|
|
281
|
+
|
|
282
|
+
LicenseRef-CRYChart-Community-1.0
|
|
283
|
+
|
|
284
|
+
Copyright 2026 CRYSOUND. All Rights Reserved.
|
|
285
|
+
|
|
286
|
+
## 20. Governing Law and Dispute Resolution
|
|
287
|
+
|
|
288
|
+
This License is governed by the laws of mainland China (the People's Republic of China). Any dispute arising from this License shall be brought before the people's court with jurisdiction at the Licensor's domicile.
|
package/LICENSE.zh-CN.md
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# CRYChart Community License 1.0
|
|
2
|
+
|
|
3
|
+
## CRYChart 社区许可协议 1.0
|
|
4
|
+
|
|
5
|
+
[English version](LICENSE.md)
|
|
6
|
+
|
|
7
|
+
机器可读许可证标识:LicenseRef-CRYChart-Community-1.0
|
|
8
|
+
|
|
9
|
+
Copyright 2026 CRYSOUND. All Rights Reserved.
|
|
10
|
+
|
|
11
|
+
## 1. 协议范围
|
|
12
|
+
|
|
13
|
+
本协议适用于由 CRYSOUND(以下简称许可方)为 OpenTest 定制并明确采用本协议的 CRYChart 前端渲染库,以及由 CRYSOUND 发布并明确纳入本协议的相关组件,包括:
|
|
14
|
+
|
|
15
|
+
- CRYChart 源代码及渲染组件;
|
|
16
|
+
- JavaScript、TypeScript SDK 和公开 API;
|
|
17
|
+
- 数据可视化与交互组件;
|
|
18
|
+
- 示例代码和文档;
|
|
19
|
+
- 编译或打包后的 JavaScript、ES 模块、CommonJS 模块、浏览器脚本、类型声明及相关构建产物;
|
|
20
|
+
- CRYSOUND 自有且明确作为 CRYChart 的一部分按本协议发布的其他组件。
|
|
21
|
+
|
|
22
|
+
CRYChart 的部分源代码公开提供,以方便用户查看、学习、修改、扩展以及参与项目开发。
|
|
23
|
+
|
|
24
|
+
CRYChart 中包含或依赖的第三方软件,应按照其各自的许可证使用。本协议不改变其他独立软件适用的许可证。
|
|
25
|
+
|
|
26
|
+
通过复制、修改、编译、运行、分发 CRYChart,或以其他方式行使本协议授予的权利,即表示您同意遵守本协议。
|
|
27
|
+
|
|
28
|
+
## 2. 用户获得的权利
|
|
29
|
+
|
|
30
|
+
在遵守本协议的前提下,个人、企业、学校、科研机构及其他组织均可以:
|
|
31
|
+
|
|
32
|
+
- 查看、学习、下载和复制 CRYChart 源代码;
|
|
33
|
+
- Fork CRYChart 项目;
|
|
34
|
+
- 修改源代码;
|
|
35
|
+
- 编译和运行原始版本或修改版本;
|
|
36
|
+
- 开发插件、算法、设备驱动和扩展;
|
|
37
|
+
- 与其他软件和硬件系统集成;
|
|
38
|
+
- 按照本协议重新分发源代码及修改版本;
|
|
39
|
+
- 向 CRYChart 项目提交代码贡献。
|
|
40
|
+
|
|
41
|
+
## 3. 免费使用场景
|
|
42
|
+
|
|
43
|
+
CRYChart 免费授权可以用于:
|
|
44
|
+
|
|
45
|
+
- 个人用途、学习和教育;
|
|
46
|
+
- 科学研究、软件开发和产品研发;
|
|
47
|
+
- 测试(包括自动化测试)、测量和数据采集;
|
|
48
|
+
- 企业内部使用,包括研发及正式生产环境;
|
|
49
|
+
- 商业项目内部使用。
|
|
50
|
+
|
|
51
|
+
您也可以使用 CRYChart 为客户提供测试、测量、工程、研发、数据分析或其他技术服务,但应同时满足:
|
|
52
|
+
|
|
53
|
+
- CRYChart 本身不作为软件产品、设备配套软件或在线软件服务向客户交付;
|
|
54
|
+
- 客户不取得 CRYChart 软件的独立使用权。
|
|
55
|
+
|
|
56
|
+
## 4. 免费许可
|
|
57
|
+
|
|
58
|
+
CRYChart 免费许可不对物理输入或输出通道、数据系列、曲线、数据点或视图设置数量上限。
|
|
59
|
+
|
|
60
|
+
本条不代表软件不存在技术或资源限制,也不免除第 7 条所述使用场景适用的 Commercial License 要求。
|
|
61
|
+
|
|
62
|
+
## 5. 插件、驱动和扩展
|
|
63
|
+
|
|
64
|
+
CRYChart 鼓励开发者创建自己的插件、设备驱动、算法、数据处理模块、UI 扩展、自动化工具和软件集成组件。
|
|
65
|
+
|
|
66
|
+
开发者可以自行决定这些独立扩展组件:
|
|
67
|
+
|
|
68
|
+
- 是否公开源代码;
|
|
69
|
+
- 采用何种许可证;
|
|
70
|
+
- 免费发布;
|
|
71
|
+
- 或商业销售。
|
|
72
|
+
|
|
73
|
+
开发和销售独立的 CRYChart 插件或扩展,本身不需要 CRYChart Commercial License。
|
|
74
|
+
|
|
75
|
+
前述扩展应遵守以下原则:
|
|
76
|
+
|
|
77
|
+
- 不包含未经授权复制的 CRYChart 代码;
|
|
78
|
+
- 不改变或规避 CRYChart 已授予的授权范围;
|
|
79
|
+
- 不将 CRYChart 本身或其主要代码作为扩展组件重新分发;
|
|
80
|
+
- 对 CRYChart 软件本身的使用继续遵守本协议。
|
|
81
|
+
|
|
82
|
+
## 6. 源代码修改、Fork 与社区分发
|
|
83
|
+
|
|
84
|
+
您可以为了学习、研究、Bug 修复、功能开发、技术交流、社区协作、代码评审或向 CRYChart 官方项目贡献代码而 Fork、修改和公开 CRYChart 源代码。
|
|
85
|
+
|
|
86
|
+
您可以按照本协议重新分发 CRYChart 源代码或修改版本。涉及第 7 条所述商业场景时,适用相应的 Commercial License。重新分发时应:
|
|
87
|
+
|
|
88
|
+
- 保留本协议;
|
|
89
|
+
- 保留原有版权声明;
|
|
90
|
+
- 对重要修改进行合理说明;
|
|
91
|
+
- 不使接收者误认为修改版本属于 CRYChart 官方发行版本;
|
|
92
|
+
- 使 CRYChart 原有代码及其修改部分继续适用本协议。
|
|
93
|
+
|
|
94
|
+
## 7. Commercial License 适用场景
|
|
95
|
+
|
|
96
|
+
如涉及以下使用场景,请在开展相应使用前取得覆盖该使用方式的有效 CRYChart Commercial License。具体授权内容以相应商业许可证或商业合同为准。
|
|
97
|
+
|
|
98
|
+
### 7.1 OEM、ODM、白牌及设备配套交付
|
|
99
|
+
|
|
100
|
+
以下交付方式适用相应的 Commercial License:
|
|
101
|
+
|
|
102
|
+
- 将 CRYChart 预装到向第三方销售或交付的设备中;
|
|
103
|
+
- 将 CRYChart 集成到向第三方销售或交付的测试仪器中;
|
|
104
|
+
- 将 CRYChart 集成到向第三方销售或交付的自动化测试系统中;
|
|
105
|
+
- 作为 OEM、ODM 或白牌产品的一部分提供;
|
|
106
|
+
- 作为其他商业产品的配套软件向第三方提供。
|
|
107
|
+
|
|
108
|
+
无论 CRYChart 是否单独计价,只要其随商业产品向第三方交付,均适用本条所述的 Commercial License。
|
|
109
|
+
|
|
110
|
+
### 7.2 商业软件分发
|
|
111
|
+
|
|
112
|
+
以下商业软件分发方式适用相应的 Commercial License:
|
|
113
|
+
|
|
114
|
+
- 将 CRYChart 本身作为商业软件产品销售、出租或许可;
|
|
115
|
+
- 对 CRYChart 或基于 CRYChart 形成的软件产品收取软件授权费用;
|
|
116
|
+
- 将 CRYChart 或其实质性修改版本作为商业软件向第三方分发;
|
|
117
|
+
- 将 CRYChart 重新命名、重新包装后作为商业软件产品向第三方提供;
|
|
118
|
+
- 将 CRYChart 作为其他收费软件产品的实质组成部分向第三方分发。
|
|
119
|
+
|
|
120
|
+
### 7.3 SaaS、云服务和托管服务
|
|
121
|
+
|
|
122
|
+
如以收费方式或作为收费服务的一部分,使第三方用户通过网络直接访问或使用 CRYChart 的主要软件功能,则适用相应的 Commercial License,包括:
|
|
123
|
+
|
|
124
|
+
- SaaS;
|
|
125
|
+
- 云服务;
|
|
126
|
+
- 托管服务;
|
|
127
|
+
- 在线测试平台;
|
|
128
|
+
- 其他实质相同的在线商业服务。
|
|
129
|
+
|
|
130
|
+
企业内部远程访问、企业内部服务器部署以及仅供同一组织内部用户使用的网络访问,不属于本条所述场景。
|
|
131
|
+
|
|
132
|
+
### 7.4 Commercial License 的优先适用
|
|
133
|
+
|
|
134
|
+
Commercial License 可以对 OEM、商业分发、托管服务、技术支持或其他商业权利作出单独约定。
|
|
135
|
+
|
|
136
|
+
对于 Commercial License 已明确授权的事项,以相应 Commercial License 或商业合同的约定为准;本协议未被明确替代的其他条款继续适用。
|
|
137
|
+
|
|
138
|
+
## 8. 构建产物与二进制组件
|
|
139
|
+
|
|
140
|
+
CRYChart 及相关组件可以以编译或打包后的 JavaScript、模块、类型声明、静态资源或相关二进制组件形式提供。
|
|
141
|
+
|
|
142
|
+
在本协议授权范围内,您可以:
|
|
143
|
+
|
|
144
|
+
- 安装或集成构建产物;
|
|
145
|
+
- 运行构建产物;
|
|
146
|
+
- 为正常部署复制构建产物;
|
|
147
|
+
- 为备份目的保留构建产物副本;
|
|
148
|
+
- 在符合本协议的非商业分发中,包含官方 CRYChart 构建产物,或由第 6 条允许的修改编译形成的构建产物。
|
|
149
|
+
|
|
150
|
+
涉及 OEM、商业产品交付或其他第 7 条所列场景时,应取得相应 Commercial License。
|
|
151
|
+
|
|
152
|
+
## 9. 授权完整性
|
|
153
|
+
|
|
154
|
+
正常的软件调试、插件开发、接口开发和兼容性测试不受本条影响,只要其目的不是改变或规避已经取得的授权范围。
|
|
155
|
+
|
|
156
|
+
CRYChart 可以通过软件、许可证文件、License Key、账户、硬件或其他机制实现相应的授权能力。
|
|
157
|
+
|
|
158
|
+
用户应在已经取得的授权范围内使用 CRYChart。
|
|
159
|
+
|
|
160
|
+
如需取得额外的许可能力,应取得覆盖相应能力的授权。现有授权范围不包含通过技术方式自行改变授权范围,例如:
|
|
161
|
+
|
|
162
|
+
- 修改受许可组件的授权验证逻辑;
|
|
163
|
+
- 修改构建产物或运行时数据以改变授权范围;
|
|
164
|
+
- 伪造、复制或生成未经许可的 License Key、许可证文件或授权信息;
|
|
165
|
+
- 人为关闭、干扰或绕过许可证验证。
|
|
166
|
+
|
|
167
|
+
对于仅提供二进制形式的组件,其未公开实现和授权机制应保持完整;适用法律另有明确规定的,从其规定。
|
|
168
|
+
|
|
169
|
+
## 10. 独立软件和兼容开发
|
|
170
|
+
|
|
171
|
+
本协议不影响开发者:
|
|
172
|
+
|
|
173
|
+
- 学习 CRYChart 已公开的设计;
|
|
174
|
+
- 开发自己的独立软件;
|
|
175
|
+
- 开发兼容 CRYChart 的产品;
|
|
176
|
+
- 使用公开的 CRYChart API;
|
|
177
|
+
- 开发插件;
|
|
178
|
+
- 开发硬件驱动;
|
|
179
|
+
- 开发独立的测试、测量或自动化软件。
|
|
180
|
+
|
|
181
|
+
完全独立开发、且没有复制 CRYChart 受版权保护代码的软件,不适用本协议。
|
|
182
|
+
|
|
183
|
+
如果软件产品包含 CRYChart 代码或 CRYChart 的实质性修改版本,并作为商业软件向第三方提供,则适用第 7 条。
|
|
184
|
+
|
|
185
|
+
## 11. 社区贡献
|
|
186
|
+
|
|
187
|
+
CRYChart 欢迎社区贡献。
|
|
188
|
+
|
|
189
|
+
贡献者保留其原创贡献依法享有的著作权,并可以继续自行使用或授权自己的原创内容。
|
|
190
|
+
|
|
191
|
+
当您向 CRYChart 官方项目提交代码、文档、测试、示例或其他明确作为贡献提交的内容时,即表示您确认自己拥有提交该贡献所需要的权利或已获得其他权利人同意,并授予 CRYSOUND 一项永久的、全球范围的、非独占的、免许可费的、可再许可的授权。
|
|
192
|
+
|
|
193
|
+
该授权允许 CRYSOUND 使用、复制、修改、合并贡献内容,创建衍生内容,以源代码或二进制形式提供、分发和发布,并进行商业化使用。贡献内容也可用于 CRYChart 的免费版本、商业版本及相关产品和服务。
|
|
194
|
+
|
|
195
|
+
如果贡献涉及您有权许可的专利,并且 CRYChart 使用该贡献需要实施相关专利权利,则上述授权同时包含实现、使用和分发该贡献所必需的专利许可。
|
|
196
|
+
|
|
197
|
+
## 12. 商标与品牌
|
|
198
|
+
|
|
199
|
+
本协议主要授予 CRYChart 软件使用权,不自动授予 CRYChart 商标和品牌授权。
|
|
200
|
+
|
|
201
|
+
允许合理的事实性描述,例如:
|
|
202
|
+
|
|
203
|
+
- Compatible with CRYChart
|
|
204
|
+
- Plugin for CRYChart
|
|
205
|
+
- Works with CRYChart
|
|
206
|
+
- Based on CRYChart
|
|
207
|
+
|
|
208
|
+
使用 CRYChart 名称、Logo 或其他品牌资产时,不应使第三方误认为相关产品属于 CRYChart 官方版本、已经获得 CRYChart 官方认证、由许可方直接开发,或与许可方存在未经确认的合作关系。
|
|
209
|
+
|
|
210
|
+
## 13. 知识产权
|
|
211
|
+
|
|
212
|
+
CRYChart 源代码公开提供不影响相关知识产权归属。
|
|
213
|
+
|
|
214
|
+
除本协议明确授予的权利外,CRYChart 相关的著作权、商标权、专利权、构建产物、专有实现、品牌资产以及其他依法受到保护的权利,仍属于其各自权利人。
|
|
215
|
+
|
|
216
|
+
## 14. 第三方组件
|
|
217
|
+
|
|
218
|
+
CRYChart 可能使用第三方软件库、框架、驱动、工具、SDK 或其他组件。
|
|
219
|
+
|
|
220
|
+
这些第三方组件按照其各自的许可证执行。
|
|
221
|
+
|
|
222
|
+
本协议不会改变第三方许可证已经授予用户的权利,也不会扩大许可方对第三方组件拥有的权利。
|
|
223
|
+
|
|
224
|
+
## 15. 授权持续性与调整
|
|
225
|
+
|
|
226
|
+
只要用户遵守本协议,根据本协议获得的 CRYChart 使用权持续有效。
|
|
227
|
+
|
|
228
|
+
如出现与本协议不一致的使用情况,许可方可以通知用户进行调整。对于可以合理调整的情况,用户在收到通知后三十(30)日内完成调整后,相关授权可以继续有效。
|
|
229
|
+
|
|
230
|
+
对于持续超出授权范围的使用,包括与第 7 条商业许可要求或第 9 条授权完整性约定不符的情形,许可方可以暂停或终止与该使用场景相关的授权。
|
|
231
|
+
|
|
232
|
+
终止不影响第三方组件依据其各自许可证独立授予的权利。
|
|
233
|
+
|
|
234
|
+
## 16. 软件提供方式
|
|
235
|
+
|
|
236
|
+
CRYChart 按 AS IS(现状)提供。
|
|
237
|
+
|
|
238
|
+
在适用法律允许的范围内,许可方不保证 CRYChart 完全没有错误、始终连续运行、适用于所有硬件或所有使用场景,或满足用户的所有特定业务需求。
|
|
239
|
+
|
|
240
|
+
用户应根据自己的测试、测量、研发和生产环境,对 CRYChart 的适用性进行确认。
|
|
241
|
+
|
|
242
|
+
## 17. 责任范围
|
|
243
|
+
|
|
244
|
+
在适用法律允许的范围内,许可方不对因使用或无法使用 CRYChart 导致的间接、附带、特殊或后果性损失承担责任,包括但不限于数据损失、测试结果损失、生产中断、利润损失、产品损坏或商业机会损失。
|
|
245
|
+
|
|
246
|
+
适用法律明确规定不能排除或限制的责任,不受本条影响。
|
|
247
|
+
|
|
248
|
+
## 18. 协议版本与机器标识
|
|
249
|
+
|
|
250
|
+
本协议名称为:
|
|
251
|
+
|
|
252
|
+
```text
|
|
253
|
+
CRYChart Community License 1.0
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
建议用于软件物料清单、源文件和自动化工具的自定义许可证标识为:
|
|
257
|
+
|
|
258
|
+
```text
|
|
259
|
+
LicenseRef-CRYChart-Community-1.0
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
源代码文件如需声明本许可证,可以使用:
|
|
263
|
+
|
|
264
|
+
```text
|
|
265
|
+
SPDX-License-Identifier: LicenseRef-CRYChart-Community-1.0
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
对应的正式许可证文本应随项目一同提供。
|
|
269
|
+
|
|
270
|
+
许可方可以对未来发布的软件版本采用更新后的许可证。
|
|
271
|
+
|
|
272
|
+
已经依据本协议合法取得的特定版本,原则上继续按照取得该版本时适用的许可证执行。
|
|
273
|
+
|
|
274
|
+
## 19. 语言
|
|
275
|
+
|
|
276
|
+
本协议可以提供中文和英文版本。
|
|
277
|
+
|
|
278
|
+
两个版本用于表达相同的授权条件。
|
|
279
|
+
|
|
280
|
+
如不同语言版本存在解释上的不一致,以中文版本为准。
|
|
281
|
+
|
|
282
|
+
CRYChart Community License 1.0
|
|
283
|
+
|
|
284
|
+
LicenseRef-CRYChart-Community-1.0
|
|
285
|
+
|
|
286
|
+
Copyright 2026 CRYSOUND. All Rights Reserved.
|
|
287
|
+
|
|
288
|
+
## 20. 法律适用与争议解决
|
|
289
|
+
|
|
290
|
+
本协议适用中华人民共和国大陆地区法律。因本协议产生的争议,向许可方住所地有管辖权的人民法院提起诉讼。
|
package/README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CRYChart
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**English** | [简体中文](README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
CRYChart is a **frontend rendering library built by CRYSOUND for OpenTest**, written in TypeScript.
|
|
6
|
+
|
|
7
|
+
Designed for OpenTest's data visualization needs, CRYChart provides streaming data rendering, interactive axes, cursors, and 2D and 3D charts. It uses WebGL2 for rendering, with a Canvas fallback.
|
|
8
|
+
|
|
9
|
+
Version `1.0.2` fixes the viewport size limit for high precision waveform axes.
|
|
10
|
+
|
|
11
|
+
## Install in an application
|
|
12
|
+
|
|
13
|
+
```powershell
|
|
14
|
+
pnpm add --save-exact @crysound/crychart@1.0.2 --registry=https://registry.npmjs.org/
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Commit the application's lockfile and use `pnpm install --frozen-lockfile` for repeatable installs. See the [npm usage guide](docs/npm-usage.md) for package entry points and migration from the old `crychart` name.
|
|
18
|
+
|
|
19
|
+
## Install and build
|
|
20
|
+
|
|
21
|
+
From the repository root:
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
npm ci
|
|
25
|
+
npm run build
|
|
26
|
+
npm run dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Open the local examples at <http://127.0.0.1:4178/>. Chart containers must have an explicit width and height.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { cryChart, ColorRGBA, SolidFill, SolidLine } from '@crysound/crychart'
|
|
35
|
+
import type { CRYChart, CRYChartOptions } from '@crysound/crychart'
|
|
36
|
+
|
|
37
|
+
const options: CRYChartOptions = {}
|
|
38
|
+
const context: CRYChart = cryChart(options)
|
|
39
|
+
const chart = context.ChartXY({ container: document.getElementById('chart')! })
|
|
40
|
+
const line = chart.addLineSeries({ schema: { x: { auto: true }, y: {} } })
|
|
41
|
+
line.setMaxSampleCount(100_000)
|
|
42
|
+
line.setStrokeStyle(new SolidLine({
|
|
43
|
+
thickness: 2,
|
|
44
|
+
fillStyle: new SolidFill({ color: ColorRGBA(60, 210, 180) }),
|
|
45
|
+
}))
|
|
46
|
+
line.appendSamples({ y: new Float32Array([1, 2, 3]) }, { start: 0, step: 0.001 })
|
|
47
|
+
|
|
48
|
+
// Dispose of charts and rendering resources when the component unmounts.
|
|
49
|
+
context.dispose()
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The package provides ES modules, CommonJS, a browser script, and TypeScript declarations. The browser script exposes the `CRYChart` global. Themes are available through `@crysound/crychart/themes`.
|
|
53
|
+
|
|
54
|
+
## Validation
|
|
55
|
+
|
|
56
|
+
```powershell
|
|
57
|
+
npm run typecheck
|
|
58
|
+
npm test
|
|
59
|
+
npm run test:opentest-contract
|
|
60
|
+
npm run build
|
|
61
|
+
npm run test:browser
|
|
62
|
+
npm run test:gallery
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Browser tests use an installed, visible Chrome browser. Data and API tests do not replace visual, interaction, or performance tests. Performance results apply only to the recorded data volume, plot area, device pixel ratio, and machine configuration.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
CRYChart is licensed under the [CRYChart Community License 1.0](LICENSE.md). A [Chinese version](LICENSE.zh-CN.md) is also available.
|
|
70
|
+
|
|
71
|
+
The free license imposes no limits on the number of channels, data series, curves, data points, or views. See Section 7 for the licensing conditions for commercial distribution, OEM use, delivery bundled with equipment, and paid hosting. If the English and Chinese versions differ in interpretation, the Chinese version prevails.
|
|
72
|
+
|
|
73
|
+
## Documentation
|
|
74
|
+
|
|
75
|
+
- [npm usage guide](docs/npm-usage.md)
|
|
76
|
+
- [User guide](https://github.com/crysound/CRYChart/blob/main/docs/使用手册.md)
|
|
77
|
+
- [Performance notes](https://github.com/crysound/CRYChart/blob/main/docs/性能说明.md)
|
|
78
|
+
- [Architecture](https://github.com/crysound/CRYChart/blob/main/docs/architecture.md)
|
|
79
|
+
- [Product specification](https://github.com/crysound/CRYChart/blob/main/SPEC.md)
|
|
80
|
+
|
|
81
|
+
Some documentation is currently available only in Chinese.
|
|
82
|
+
|
|
83
|
+
Synthetic data in the examples is intended for demonstrations and testing only. External data, models, and assets retain their respective source attributions and license notices.
|