@crysound/crychart 1.0.1 → 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 -288
- package/LICENSE.zh-CN.md +290 -290
- package/README.md +83 -83
- package/README.zh-CN.md +79 -79
- package/dist/crychart.cjs +2 -2
- package/dist/crychart.global.js +2 -2
- package/dist/crychart.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/docs/npm-usage.md +1 -1
- package/package.json +68 -68
package/README.md
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
# CRYChart
|
|
2
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
## Install in an application
|
|
12
|
-
|
|
13
|
-
```powershell
|
|
14
|
-
pnpm add --save-exact @crysound/crychart@1.0.
|
|
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.
|
|
1
|
+
# CRYChart
|
|
2
|
+
|
|
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.
|
package/README.zh-CN.md
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
# CRYChart
|
|
2
|
-
|
|
3
|
-
[English](README.md) | **简体中文**
|
|
4
|
-
|
|
5
|
-
CRYChart 是 **CRYSOUND 为 OpenTest 定制的前端渲染库**,基于 TypeScript 开发。
|
|
6
|
-
|
|
7
|
-
CRYChart 面向 OpenTest 的数据可视化场景,提供流式数据绘制、交互坐标轴、游标、二维和三维图表。绘图使用 WebGL2,并提供 Canvas 回退。
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## 在应用中安装
|
|
12
|
-
|
|
13
|
-
```powershell
|
|
14
|
-
pnpm add --save-exact @crysound/crychart@1.0.
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
提交应用的锁文件,后续执行 `pnpm install --frozen-lockfile`。包入口和旧 `crychart` 包名的迁移方式见 [npm 使用说明](docs/npm-usage.md)。
|
|
18
|
-
|
|
19
|
-
## 安装与构建
|
|
20
|
-
|
|
21
|
-
```powershell
|
|
22
|
-
npm ci
|
|
23
|
-
npm run build
|
|
24
|
-
npm run dev
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
本地示例地址为 <http://127.0.0.1:4178/>。图表容器需要明确的宽度和高度。
|
|
28
|
-
|
|
29
|
-
## 使用
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
import { cryChart, ColorRGBA, SolidFill, SolidLine } from '@crysound/crychart'
|
|
33
|
-
import type { CRYChart, CRYChartOptions } from '@crysound/crychart'
|
|
34
|
-
|
|
35
|
-
const options: CRYChartOptions = {}
|
|
36
|
-
const context: CRYChart = cryChart(options)
|
|
37
|
-
const chart = context.ChartXY({ container: document.getElementById('chart')! })
|
|
38
|
-
const line = chart.addLineSeries({ schema: { x: { auto: true }, y: {} } })
|
|
39
|
-
line.setMaxSampleCount(100_000)
|
|
40
|
-
line.setStrokeStyle(new SolidLine({
|
|
41
|
-
thickness: 2,
|
|
42
|
-
fillStyle: new SolidFill({ color: ColorRGBA(60, 210, 180) }),
|
|
43
|
-
}))
|
|
44
|
-
line.appendSamples({ y: new Float32Array([1, 2, 3]) }, { start: 0, step: 0.001 })
|
|
45
|
-
|
|
46
|
-
// 组件卸载时释放图表和绘图资源。
|
|
47
|
-
context.dispose()
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
包提供 ES 模块、CommonJS、浏览器脚本和 TypeScript 类型声明。浏览器脚本的全局对象为 `CRYChart`。主题入口为 `@crysound/crychart/themes`。
|
|
51
|
-
|
|
52
|
-
## 验证
|
|
53
|
-
|
|
54
|
-
```powershell
|
|
55
|
-
npm run typecheck
|
|
56
|
-
npm test
|
|
57
|
-
npm run test:opentest-contract
|
|
58
|
-
npm run build
|
|
59
|
-
npm run test:browser
|
|
60
|
-
npm run test:gallery
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
浏览器测试使用已安装的可见 Chrome。数据和接口测试不能替代图像、交互及性能测试。性能结果只适用于记录中的数据量、绘图区、设备像素比和机器配置。
|
|
64
|
-
|
|
65
|
-
## 许可协议
|
|
66
|
-
|
|
67
|
-
CRYChart 采用 [CRYChart 社区许可协议 1.0](LICENSE.zh-CN.md),并提供 [English version](LICENSE.md)。
|
|
68
|
-
|
|
69
|
-
免费许可不设置通道、数据系列、曲线、数据点或视图数量上限。商业分发、OEM、设备配套交付和收费托管的授权条件见协议第 7 条。中英文解释不一致时,以中文版为准。
|
|
70
|
-
|
|
71
|
-
## 文档
|
|
72
|
-
|
|
73
|
-
- [npm 使用说明](docs/npm-usage.md)
|
|
74
|
-
- [使用手册](https://github.com/crysound/CRYChart/blob/main/docs/使用手册.md)
|
|
75
|
-
- [性能说明](https://github.com/crysound/CRYChart/blob/main/docs/性能说明.md)
|
|
76
|
-
- [架构说明](https://github.com/crysound/CRYChart/blob/main/docs/architecture.md)
|
|
77
|
-
- [产品规格](https://github.com/crysound/CRYChart/blob/main/SPEC.md)
|
|
78
|
-
|
|
79
|
-
示例中的合成数据仅用于演示和测试。继续使用的外部数据、模型和素材保留各自的来源及授权说明。
|
|
1
|
+
# CRYChart
|
|
2
|
+
|
|
3
|
+
[English](README.md) | **简体中文**
|
|
4
|
+
|
|
5
|
+
CRYChart 是 **CRYSOUND 为 OpenTest 定制的前端渲染库**,基于 TypeScript 开发。
|
|
6
|
+
|
|
7
|
+
CRYChart 面向 OpenTest 的数据可视化场景,提供流式数据绘制、交互坐标轴、游标、二维和三维图表。绘图使用 WebGL2,并提供 Canvas 回退。
|
|
8
|
+
|
|
9
|
+
`1.0.2` 修复了高精度波形轴的视口跨度限制。
|
|
10
|
+
|
|
11
|
+
## 在应用中安装
|
|
12
|
+
|
|
13
|
+
```powershell
|
|
14
|
+
pnpm add --save-exact @crysound/crychart@1.0.2 --registry=https://registry.npmjs.org/
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
提交应用的锁文件,后续执行 `pnpm install --frozen-lockfile`。包入口和旧 `crychart` 包名的迁移方式见 [npm 使用说明](docs/npm-usage.md)。
|
|
18
|
+
|
|
19
|
+
## 安装与构建
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
npm ci
|
|
23
|
+
npm run build
|
|
24
|
+
npm run dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
本地示例地址为 <http://127.0.0.1:4178/>。图表容器需要明确的宽度和高度。
|
|
28
|
+
|
|
29
|
+
## 使用
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { cryChart, ColorRGBA, SolidFill, SolidLine } from '@crysound/crychart'
|
|
33
|
+
import type { CRYChart, CRYChartOptions } from '@crysound/crychart'
|
|
34
|
+
|
|
35
|
+
const options: CRYChartOptions = {}
|
|
36
|
+
const context: CRYChart = cryChart(options)
|
|
37
|
+
const chart = context.ChartXY({ container: document.getElementById('chart')! })
|
|
38
|
+
const line = chart.addLineSeries({ schema: { x: { auto: true }, y: {} } })
|
|
39
|
+
line.setMaxSampleCount(100_000)
|
|
40
|
+
line.setStrokeStyle(new SolidLine({
|
|
41
|
+
thickness: 2,
|
|
42
|
+
fillStyle: new SolidFill({ color: ColorRGBA(60, 210, 180) }),
|
|
43
|
+
}))
|
|
44
|
+
line.appendSamples({ y: new Float32Array([1, 2, 3]) }, { start: 0, step: 0.001 })
|
|
45
|
+
|
|
46
|
+
// 组件卸载时释放图表和绘图资源。
|
|
47
|
+
context.dispose()
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
包提供 ES 模块、CommonJS、浏览器脚本和 TypeScript 类型声明。浏览器脚本的全局对象为 `CRYChart`。主题入口为 `@crysound/crychart/themes`。
|
|
51
|
+
|
|
52
|
+
## 验证
|
|
53
|
+
|
|
54
|
+
```powershell
|
|
55
|
+
npm run typecheck
|
|
56
|
+
npm test
|
|
57
|
+
npm run test:opentest-contract
|
|
58
|
+
npm run build
|
|
59
|
+
npm run test:browser
|
|
60
|
+
npm run test:gallery
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
浏览器测试使用已安装的可见 Chrome。数据和接口测试不能替代图像、交互及性能测试。性能结果只适用于记录中的数据量、绘图区、设备像素比和机器配置。
|
|
64
|
+
|
|
65
|
+
## 许可协议
|
|
66
|
+
|
|
67
|
+
CRYChart 采用 [CRYChart 社区许可协议 1.0](LICENSE.zh-CN.md),并提供 [English version](LICENSE.md)。
|
|
68
|
+
|
|
69
|
+
免费许可不设置通道、数据系列、曲线、数据点或视图数量上限。商业分发、OEM、设备配套交付和收费托管的授权条件见协议第 7 条。中英文解释不一致时,以中文版为准。
|
|
70
|
+
|
|
71
|
+
## 文档
|
|
72
|
+
|
|
73
|
+
- [npm 使用说明](docs/npm-usage.md)
|
|
74
|
+
- [使用手册](https://github.com/crysound/CRYChart/blob/main/docs/使用手册.md)
|
|
75
|
+
- [性能说明](https://github.com/crysound/CRYChart/blob/main/docs/性能说明.md)
|
|
76
|
+
- [架构说明](https://github.com/crysound/CRYChart/blob/main/docs/architecture.md)
|
|
77
|
+
- [产品规格](https://github.com/crysound/CRYChart/blob/main/SPEC.md)
|
|
78
|
+
|
|
79
|
+
示例中的合成数据仅用于演示和测试。继续使用的外部数据、模型和素材保留各自的来源及授权说明。
|
package/dist/crychart.cjs
CHANGED
|
@@ -3927,7 +3927,7 @@ var Axis = class {
|
|
|
3927
3927
|
/** Only the finite positive constant object maximum used by Preview is enforced.
|
|
3928
3928
|
* Other restriction fields and callback enforcement retain their existing behavior. */
|
|
3929
3929
|
supportedIntervalMax() {
|
|
3930
|
-
if (this.type !== "linear" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3930
|
+
if (this.type !== "linear" && this.type !== "linear-highPrecision" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3931
3931
|
const value = this.intervalRestriction;
|
|
3932
3932
|
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
3933
3933
|
const maximum = value.intervalMax;
|
|
@@ -25139,7 +25139,7 @@ function cryChart(_options = {}) {
|
|
|
25139
25139
|
getChartCount: () => owned2.size
|
|
25140
25140
|
};
|
|
25141
25141
|
}
|
|
25142
|
-
var version = "1.0.
|
|
25142
|
+
var version = "1.0.2";
|
|
25143
25143
|
var Dashboard = class {
|
|
25144
25144
|
root;
|
|
25145
25145
|
cells = /* @__PURE__ */ new Map();
|
package/dist/crychart.global.js
CHANGED
|
@@ -3927,7 +3927,7 @@ var CRYChart = (() => {
|
|
|
3927
3927
|
/** Only the finite positive constant object maximum used by Preview is enforced.
|
|
3928
3928
|
* Other restriction fields and callback enforcement retain their existing behavior. */
|
|
3929
3929
|
supportedIntervalMax() {
|
|
3930
|
-
if (this.type !== "linear" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3930
|
+
if (this.type !== "linear" && this.type !== "linear-highPrecision" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3931
3931
|
const value = this.intervalRestriction;
|
|
3932
3932
|
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
3933
3933
|
const maximum = value.intervalMax;
|
|
@@ -25139,7 +25139,7 @@ ${sample.position[0].toFixed(4)}, ${sample.position[1].toFixed(4)}`, contains: (
|
|
|
25139
25139
|
getChartCount: () => owned2.size
|
|
25140
25140
|
};
|
|
25141
25141
|
}
|
|
25142
|
-
var version = "1.0.
|
|
25142
|
+
var version = "1.0.2";
|
|
25143
25143
|
var Dashboard = class {
|
|
25144
25144
|
root;
|
|
25145
25145
|
cells = /* @__PURE__ */ new Map();
|
package/dist/crychart.js
CHANGED
|
@@ -3743,7 +3743,7 @@ var Axis = class {
|
|
|
3743
3743
|
/** Only the finite positive constant object maximum used by Preview is enforced.
|
|
3744
3744
|
* Other restriction fields and callback enforcement retain their existing behavior. */
|
|
3745
3745
|
supportedIntervalMax() {
|
|
3746
|
-
if (this.type !== "linear" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3746
|
+
if (this.type !== "linear" && this.type !== "linear-highPrecision" || this.chart.supportsAxisIntervalMaxRestrictions?.() !== true) return void 0;
|
|
3747
3747
|
const value = this.intervalRestriction;
|
|
3748
3748
|
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
3749
3749
|
const maximum = value.intervalMax;
|
|
@@ -24955,7 +24955,7 @@ function cryChart(_options = {}) {
|
|
|
24955
24955
|
getChartCount: () => owned2.size
|
|
24956
24956
|
};
|
|
24957
24957
|
}
|
|
24958
|
-
var version = "1.0.
|
|
24958
|
+
var version = "1.0.2";
|
|
24959
24959
|
var Dashboard = class {
|
|
24960
24960
|
root;
|
|
24961
24961
|
cells = /* @__PURE__ */ new Map();
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare function cryChart(_options?: Record<string, unknown>): {
|
|
|
51
51
|
/** Live charts owned by this context; disposed charts are released immediately. */
|
|
52
52
|
getChartCount: () => number;
|
|
53
53
|
};
|
|
54
|
-
export declare const version = "1.0.
|
|
54
|
+
export declare const version = "1.0.2";
|
|
55
55
|
export declare class Dashboard {
|
|
56
56
|
readonly root: HTMLDivElement;
|
|
57
57
|
private cells;
|
package/docs/npm-usage.md
CHANGED
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@crysound/crychart",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "CRYChart chart engine with streaming data, interactive axes and WebGL rendering",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/crychart.cjs",
|
|
7
|
-
"module": "./dist/crychart.js",
|
|
8
|
-
"types": "./dist/types/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/types/index.d.ts",
|
|
12
|
-
"import": "./dist/crychart.js",
|
|
13
|
-
"require": "./dist/crychart.cjs"
|
|
14
|
-
},
|
|
15
|
-
"./themes": {
|
|
16
|
-
"types": "./dist/types/themes.d.ts",
|
|
17
|
-
"import": "./dist/themes.js"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"LICENSE.md",
|
|
22
|
-
"LICENSE.zh-CN.md",
|
|
23
|
-
"dist/crychart.js",
|
|
24
|
-
"dist/crychart.cjs",
|
|
25
|
-
"dist/crychart.global.js",
|
|
26
|
-
"dist/themes.js",
|
|
27
|
-
"dist/types",
|
|
28
|
-
"README.md",
|
|
29
|
-
"README.zh-CN.md",
|
|
30
|
-
"docs/npm-usage.md"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"prepack": "npm run build && node scripts/check-package.mjs",
|
|
34
|
-
"prepublishOnly": "npm run typecheck && npm test && npm run test:opentest-contract",
|
|
35
|
-
"build": "node scripts/build.mjs",
|
|
36
|
-
"typecheck": "tsc --noEmit",
|
|
37
|
-
"test": "node scripts/test.mjs",
|
|
38
|
-
"test:browser": "node scripts/browser-test.mjs",
|
|
39
|
-
"test:gallery": "node scripts/test-gallery.mjs",
|
|
40
|
-
"test:opentest-contract": "node scripts/test.mjs --opentest",
|
|
41
|
-
"benchmark": "node scripts/benchmark.mjs",
|
|
42
|
-
"dev": "node scripts/serve.mjs",
|
|
43
|
-
"verify": "npm run typecheck && npm test && npm run build && npm run test:browser && npm run test:gallery"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@types/node": "24.10.0",
|
|
47
|
-
"esbuild": "0.25.12",
|
|
48
|
-
"playwright": "1.58.2",
|
|
49
|
-
"prettier": "3.6.2",
|
|
50
|
-
"typescript": "5.9.3"
|
|
51
|
-
},
|
|
52
|
-
"engines": {
|
|
53
|
-
"node": ">=20"
|
|
54
|
-
},
|
|
55
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
56
|
-
"publishConfig": {
|
|
57
|
-
"access": "public",
|
|
58
|
-
"registry": "https://registry.npmjs.org/"
|
|
59
|
-
},
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/crysound/CRYChart.git"
|
|
63
|
-
},
|
|
64
|
-
"homepage": "https://github.com/crysound/CRYChart#readme",
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://github.com/crysound/CRYChart/issues"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@crysound/crychart",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "CRYChart chart engine with streaming data, interactive axes and WebGL rendering",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/crychart.cjs",
|
|
7
|
+
"module": "./dist/crychart.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/crychart.js",
|
|
13
|
+
"require": "./dist/crychart.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./themes": {
|
|
16
|
+
"types": "./dist/types/themes.d.ts",
|
|
17
|
+
"import": "./dist/themes.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"LICENSE.md",
|
|
22
|
+
"LICENSE.zh-CN.md",
|
|
23
|
+
"dist/crychart.js",
|
|
24
|
+
"dist/crychart.cjs",
|
|
25
|
+
"dist/crychart.global.js",
|
|
26
|
+
"dist/themes.js",
|
|
27
|
+
"dist/types",
|
|
28
|
+
"README.md",
|
|
29
|
+
"README.zh-CN.md",
|
|
30
|
+
"docs/npm-usage.md"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"prepack": "npm run build && node scripts/check-package.mjs",
|
|
34
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run test:opentest-contract",
|
|
35
|
+
"build": "node scripts/build.mjs",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "node scripts/test.mjs",
|
|
38
|
+
"test:browser": "node scripts/browser-test.mjs",
|
|
39
|
+
"test:gallery": "node scripts/test-gallery.mjs",
|
|
40
|
+
"test:opentest-contract": "node scripts/test.mjs --opentest",
|
|
41
|
+
"benchmark": "node scripts/benchmark.mjs",
|
|
42
|
+
"dev": "node scripts/serve.mjs",
|
|
43
|
+
"verify": "npm run typecheck && npm test && npm run build && npm run test:browser && npm run test:gallery"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "24.10.0",
|
|
47
|
+
"esbuild": "0.25.12",
|
|
48
|
+
"playwright": "1.58.2",
|
|
49
|
+
"prettier": "3.6.2",
|
|
50
|
+
"typescript": "5.9.3"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=20"
|
|
54
|
+
},
|
|
55
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public",
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/crysound/CRYChart.git"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/crysound/CRYChart#readme",
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/crysound/CRYChart/issues"
|
|
67
|
+
}
|
|
68
|
+
}
|