@rfkit/renderer 0.1.9 → 0.1.10

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hxgh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -22,6 +22,8 @@ pnpm check # biome 格式与检查
22
22
  pnpm add @rfkit/renderer
23
23
  ```
24
24
 
25
+ 正式版本默认走 `Release PR -> 合并 -> GitHub Actions 自动发布 npm`。仓库里的 `publish:npm` / `build:npm` 只保留为调试或应急入口,不作为日常正式发版流程。
26
+
25
27
  ## 快速上手
26
28
  HTML 容器:
27
29
 
@@ -87,3 +89,10 @@ heatmapGL.render(largeMatrix); // largeMatrix: number[][]
87
89
  - `Dial`/`Radar` 使用 `CircularData`;`Gauge` 使用 `{ value: number; limit?: number }`。
88
90
 
89
91
  常用操作:`setRange(range)` 调整量程并重绘;`resize()` 在容器尺寸变化后调用;`clear()` 清空画布及内部数据。
92
+
93
+ ## 发版约定
94
+
95
+ - 发布级改动默认需要在 PR 中携带 `.changeset/*.md`
96
+ - `patch` / `minor` / `major` 由 changeset 决定,不要手改 `package.json.version`
97
+ - PR 合并到 `main` 后会自动创建或更新 Release PR;合并 Release PR 后才会正式发布 npm
98
+ - 若 GitHub Actions 在 `npm publish` 阶段报 `E404` 或权限类错误,先检查 npm 包设置里的 Trusted Publisher 是否精确匹配 `Hxgh/rfkit-renderer`、`release.yml`、`npm-release`,并确认 `package.json.repository.url` 仍是当前 GitHub 仓库;修配置后直接重跑当前未发布版本,不要继续 bump 版本
package/package.json CHANGED
@@ -1,12 +1,28 @@
1
1
  {
2
2
  "name": "@rfkit/renderer",
3
+ "version": "0.1.10",
4
+ "type": "module",
3
5
  "description": "A high-performance canvas rendering engine for charts and visualizations, supporting Canvas 2D and WebGL rendering",
4
- "module": "index.js",
5
- "types": "index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "import": "./index.js",
10
+ "default": "./index.js"
11
+ }
12
+ },
13
+ "main": "./index.js",
14
+ "module": "./index.js",
15
+ "types": "./index.d.ts",
6
16
  "author": "Hxgh",
7
17
  "license": "MIT",
8
- "version": "0.1.9",
9
- "private": false,
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/Hxgh/rfkit-renderer.git"
21
+ },
22
+ "homepage": "https://github.com/Hxgh/rfkit-renderer#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/Hxgh/rfkit-renderer/issues"
25
+ },
10
26
  "keywords": [
11
27
  "canvas",
12
28
  "webgl",
@@ -17,5 +33,10 @@
17
33
  "fluorescence",
18
34
  "spectrum",
19
35
  "typescript"
20
- ]
36
+ ],
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "packageManager": "pnpm@10.30.3",
41
+ "private": false
21
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["../../../src/renderers/cartesian/Heatmap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,mBAAmB;AACnB,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,KAAK,IAAI,IAAI,CAAC;IACd,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,qBAAqB;AACrB,UAAU,kBAAkB;IAC1B,KAAK,KAAK,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,CAYxD;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,OAAO,EAAE,kBAEQ,CAAC;AAExB,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["../../../src/renderers/cartesian/Heatmap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,mBAAmB;AACnB,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,KAAK,IAAI,IAAI,CAAC;IACd,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,qBAAqB;AACrB,UAAU,kBAAkB;IAC1B,KAAK,KAAK,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,CAYxD;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,OAAO,EAAE,kBAIQ,CAAC;AAExB,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,CAAC"}