@chestnutlabs/gcode-renderer-2d 0.20.0 → 0.21.0

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +46 -0
  3. package/package.json +6 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017-2025 Remco Veldkamp
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/NOTICE.md ADDED
@@ -0,0 +1,46 @@
1
+ # NOTICE — Attribution & Provenance
2
+
3
+ This file summarizes attribution and provenance for **ChestnutLabs/gcode-preview**. It complements,
4
+ and does not replace, the [`LICENSE`](LICENSE) file and the full
5
+ [Upstream, Fork, License & Contribution Policy](docs/03_UPSTREAM_FORK_LICENSE_AND_CONTRIBUTION_POLICY.md).
6
+
7
+ ## Upstream origin
8
+
9
+ - **This repository is a public GitHub fork of** [`xyz-tools/gcode-preview`](https://github.com/xyz-tools/gcode-preview)
10
+ (project identity `remcoder/gcode-preview`; npm package `gcode-preview`).
11
+ - **Chestnut founding baseline:** branch `develop` at commit
12
+ `15375e56129f5a57aebc099ed7bfb5a092dcfb9e` (2026-06-08).
13
+ - The inherited Git history and the upstream fork relationship are preserved. Chestnut Labs maintains
14
+ its own roadmap, governance, release cadence, and package APIs.
15
+
16
+ ## Copyright
17
+
18
+ - Inherited code: **Copyright (c) 2017–2025 Remco Veldkamp** and the `xyz-tools/gcode-preview`
19
+ contributors, licensed under the MIT License (see [`LICENSE`](LICENSE)).
20
+ - Chestnut Labs additions and modifications: **Copyright (c) 2026 Chestnut Labs**, also under the MIT
21
+ License.
22
+
23
+ The upstream copyright notice and MIT permission notice are retained in [`LICENSE`](LICENSE) and must
24
+ not be removed. Chestnut notices are added **alongside** — never in place of — upstream notices.
25
+
26
+ ## License
27
+
28
+ MIT for both the inherited fork and Chestnut Labs additions, unless a later, explicit
29
+ legal/governance decision changes the license for an independently separable new package. See the
30
+ fork/license policy for the full rationale, including how an MIT package may be consumed by a
31
+ GPL-3.0 application (e.g., AnyBridge) without altering the package's MIT notice obligations.
32
+
33
+ ## Derived vs. independently replaced code
34
+
35
+ Chestnut Labs does **not** claim a clean-room implementation. Subsystem provenance (inherited /
36
+ modified / replaced / original) is tracked in
37
+ [`docs/UPSTREAM_PROVENANCE.md`](docs/UPSTREAM_PROVENANCE.md). Replacing every line of an inherited
38
+ file does not by itself establish clean-room status; the ledger exists for honesty, maintenance, and
39
+ license review.
40
+
41
+ ## Third-party code
42
+
43
+ Bundled and dependency notices are tracked in [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).
44
+ Reference implementations studied for behavior (Sindarius/Mainsail, Fluidd, PrusaSlicer/libvgcode,
45
+ BambuBuddy, and others) are **not** incorporated as source unless their license is compatible and the
46
+ incorporation is recorded per policy.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chestnutlabs/gcode-renderer-2d",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Low-resource Canvas 2D layer renderer for the Chestnut Labs G-code viewer (DD-014 / E8): an opt-in current/adjacent-layer 2D view over the existing ToolpathIR for low-GPU/low-memory/WebGL-blocked devices. No three, no framework.",
5
5
  "keywords": [
6
6
  "gcode",
@@ -38,7 +38,9 @@
38
38
  }
39
39
  },
40
40
  "files": [
41
- "dist"
41
+ "dist",
42
+ "LICENSE",
43
+ "NOTICE.md"
42
44
  ],
43
45
  "publishConfig": {
44
46
  "access": "public"
@@ -49,7 +51,7 @@
49
51
  "test": "vitest run"
50
52
  },
51
53
  "dependencies": {
52
- "@chestnutlabs/gcode-colors": "0.20.0",
53
- "@chestnutlabs/toolpath-core": "0.20.0"
54
+ "@chestnutlabs/gcode-colors": "0.21.0",
55
+ "@chestnutlabs/toolpath-core": "0.21.0"
54
56
  }
55
57
  }