@zushah/wasmgpu 0.7.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.
- package/CHANGELOG.md +68 -0
- package/LICENSE.md +328 -0
- package/README.md +335 -0
- package/dist/WasmGPU.iife.min.js +20 -0
- package/dist/WasmGPU.js +17153 -0
- package/dist/WasmGPU.min.js +15 -0
- package/dist/wasm.js +300 -0
- package/dist/wasm.wasm +0 -0
- package/package.json +88 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# WasmGPU changelog
|
|
2
|
+
All release notes of WasmGPU are recorded in this file.
|
|
3
|
+
|
|
4
|
+
## [v0.7.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.7.0) - 03/30/2026
|
|
5
|
+
The eighth release of WasmGPU. Commits: [`v0.6.0...v0.7.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.6.0...v0.7.0)
|
|
6
|
+
- Added an interactive analysis stack built around GPU ID-pass picking, rectangular and lasso region selection, composable overlay layers, and an annotation toolkit, so applications can move from raw hits to typed selections, legends, triads, probes, markers, and distance or angle measurements.
|
|
7
|
+
- Added richer geometry coverage with 2D primitives plus cartesian and parametric curves/surfaces, which makes WasmGPU much more usable for analytical plotting and procedural scenes.
|
|
8
|
+
- Added a unified scale transform model shared across pointclouds, glyphfields, data materials, and compute-powered statistics, so scalar remapping, clamping, percentiles, log or symlog domains, gamma, and inversion behave consistently across programs.
|
|
9
|
+
- Changed camera interaction from separate modes into a unified navigation system with bounds-based scene/object framing, canonical inspection views, and corrected orbit behavior around the poles, which makes interaction and inspection much more coherent across camera frameworks.
|
|
10
|
+
- Changed frame and load pipelines to have greater performance by moving transform propagation hot paths, frustum culling preparation, pointcloud/glyphfield/geometry bounds computation, and glTF accessor decoding/converting into the Rust WebAssembly driver, while also optimizing the pointcloud shader, reducing JavaScript overhead on several of the frequently exercised visualization workloads.
|
|
11
|
+
- Changed renderer presentation configuration by allowing the swap chain format to be set explicitly.
|
|
12
|
+
- Fixed glyphfields appearing pitch black by making them unlit by default.
|
|
13
|
+
- Added controls, picking, scaling, overlay, fluid, graphing, and protein examples, as well as the new website.
|
|
14
|
+
|
|
15
|
+
## [v0.6.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.6.0) - 03/06/2026
|
|
16
|
+
The seventh release of WasmGPU. Commits: [`v0.5.0...v0.6.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.5.0...v0.6.0)
|
|
17
|
+
- Added first-class scientific visualization primitives with dedicated WebGPU render paths for point clouds and glyph fields, including storage-buffer-backed per-element data, engine-level scene integration, and correct participation in frustum culling and transparent sorting.
|
|
18
|
+
- Added a colormap system and a data-driven mesh material so scalar and vector fields can be mapped to color in a principled way, including built-in colormaps and custom palettes or stops, plus domain, clipping, gamma, inversion, and optional lighting blend controls for scientific rendering.
|
|
19
|
+
- Added an ndarray abstraction spanning WebAssembly memory and WebGPU storage buffers, and added Python-in-the-browser interoperability utilities so numerical arrays can be transferred with explicit dtype and shape semantics across Python, JavaScript, WebAssembly, and WebGPU compute pipelines.
|
|
20
|
+
- Added asynchronous WebGPU readback utilities based on a persistent ring of staging buffers so repeated buffer readbacks can be pipelined without creating new staging resources for every read.
|
|
21
|
+
- Changed engine ergonomics by adding high-level factories for math primitives, textures, transforms, glTF utilities, and animation objects, and added trackball camera controls as an additional navigation mode alongside orbit controls.
|
|
22
|
+
- Fixed correctness and robustness in core compute and shader paths by correcting WebGPU queue write ranges for typed array views, replacing fragile NaN handling in argreduce kernels, and improving WebAssembly allocation alignment to 16 bytes for safer high-throughput data access.
|
|
23
|
+
- Changed build output by minifying WGSL at buildtime to reduce bundled file sizes.
|
|
24
|
+
|
|
25
|
+
## [v0.5.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.5.0) - 02/23/2026
|
|
26
|
+
The sixth release of WasmGPU. Commits: [`v0.4.0...v0.5.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.4.0...v0.5.0)
|
|
27
|
+
- Added a sophisticated WebGPU compute API (pipelines, storage/uniform buffers, dispatch helpers, batching, and limit validation) so GPGPU workloads can be run alongside rendering.
|
|
28
|
+
- Added a library of GPU parallel primitives (reduce/argreduce, exclusive scan, stream compaction, radix sort, and histogram) so common data workloads don’t require rewriting core kernels per project.
|
|
29
|
+
- Added camera controls for orbit/pan/zoom navigation and a configurable HUD for FPS, CPU, GPU, memory, and culling stats.
|
|
30
|
+
- Changed core performance paths to reduce unnecessary work and CPU overhead by skipping projection dirtying when camera parameters are unchanged, adding per-index transform dirty tracking with partial updates, and optimizing frustum culling as well as renderer buffer-view hot paths.
|
|
31
|
+
- Changed the build/runtime performance envelope by enabling SIMD128 on the WebAssembly driver, optimizing it with Binaryen's wasm-opt.exe, and bumping the TypeScript target to ES2023.
|
|
32
|
+
- Fixed glTF correctness and coverage by allocating normal scratch indices as u32, adding 8-influence skinning support, supporting the specular glossiness material extension, improving the UV-set selection, and correcting skinning to use the mesh bind matrix rather than the current world inverse.
|
|
33
|
+
- Fixed robustness and shader correctness by hardening texture upload handling and correcting SMAA uniform layout alignment and fullscreen UV winding.
|
|
34
|
+
|
|
35
|
+
## [v0.4.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.4.0) - 02/15/2026
|
|
36
|
+
The fifth release of WasmGPU. Commits: [`v0.3.0...v0.4.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.3.0...v0.4.0)
|
|
37
|
+
- Added a glTF 2.0 loading & importing pipeline that constructs runtime scenes/meshes/materials from `.gltf` & `.glb` files, including PBR/unlit material translation and a real texture abstraction with mipmaps and sampler mapping.
|
|
38
|
+
- Added glTF animation and skinning support, with TRS sampling executed in WebAssembly and per-skin joint matrices generated and streamed to WebGPU storage buffers.
|
|
39
|
+
- Added frustum culling to skip submitting off-screen meshes, using world-space bounds with a WebAssembly sphere-frustum kernel and optional culling stats for visibility debugging.
|
|
40
|
+
- Added SMAA as an optional post-process anti-aliasing path (offscreen scene-color & edge/weight/neighborhood passes) to improve visual quality on single-sampled swapchains.
|
|
41
|
+
- Fixed renderer internals to eliminate per-frame WebAssembly allocations in camera/lighting/model uniform staging buffers, pipeline cache keys, uniform packing, per-mesh world matrix reads, instanced pointer allocations, material uniform arrays, and bind group layouts.
|
|
42
|
+
|
|
43
|
+
## [v0.3.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.3.0) - 02/08/2026
|
|
44
|
+
The fourth release of WasmGPU. Commits: [`v0.2.1...v0.3.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.2.1...v0.3.0)
|
|
45
|
+
- Changed the WebAssembly backend from AssemblyScript to Rust and expanded the WebAssembly integration into a pointer-first runtime layer suitable for high-performance engine subsystems.
|
|
46
|
+
- Changed renderer data flow to be WebAssembly-memory-first: uniform data is staged in WebAssembly and uploaded zero-copy to WebGPU buffers, with model matrices uploaded directly from Transform WebAssembly storage and normal matrices computed in WebAssembly.
|
|
47
|
+
- Changed Transform into a WebAssembly-owned structure-of-arrays (SoA) store with batched local/world matrix updates, enabling fewer allocations and fewer cross-boundary calls in the hot path.
|
|
48
|
+
- Added bounded per-frame scratch allocation via a WebAssembly frame arena (reset every frame) to avoid unbounded heap growth and keep transient buffers in WebAssembly memory.
|
|
49
|
+
- Changed renderer submission to reduce CPU overhead by caching global bind groups, batching opaque draw submission, and adding WebGPU instancing support for large runs of identical pipeline/material/geometry.
|
|
50
|
+
- Fixed Transform lifetime management by adding disposal and slot reuse via a free list, preventing long-running scenes from leaking Transform slots.
|
|
51
|
+
|
|
52
|
+
## [v0.2.1](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.2.1) - 02/05/2026
|
|
53
|
+
The third release of WasmGPU. Commits: [`v0.2.0...v0.2.1`](https://www.github.com/Zushah/WasmGPU/compare/v0.2.0...v0.2.1)
|
|
54
|
+
- Added base64 backup for WebAssembly embedded in `./dist/math.js` so that it can be utilized even if `./dist/math.wasm` is unavailable or inaccessible to the client.
|
|
55
|
+
- Fixed distorted cylinder and prism geometry.
|
|
56
|
+
- Fixed incorrect normal matrix calculation.
|
|
57
|
+
|
|
58
|
+
## [v0.2.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.2.0) - 02/03/2026
|
|
59
|
+
The second release of WasmGPU. Commits: [`v0.1.0...v0.2.0`](https://www.github.com/Zushah/WasmGPU/compare/v0.1.0...v0.2.0)
|
|
60
|
+
- Engine and scene graph: new engine/renderer separation with a high-level render loop, scene/mesh/transform primitives and parented transforms, built-in geometry helpers (box, plane, sphere, torus, cylinder, pyramid, prism), and perspective/orthographic camera functions with `lookAt()` and aspect handling.
|
|
61
|
+
- Materials and lighting: PBR-ish `StandardMaterial` (color, metallic, roughness, emissive) as well as `UnlitMaterial` and `CustomMaterial` support, material uniform and bind-group management, texture/sampler support, and proper model/normal matrix handling for lighting.
|
|
62
|
+
- Builds, WebAssembly, and runtime: AssemblyScript math module (`./build/math.wasm` and `./build/math.js`) with lazy initialization, both ESM and IIFE `./dist/` bundles ready for CDN use, and shader/pipeline and GPU buffer (vertex/index/uniform) management.
|
|
63
|
+
|
|
64
|
+
## [v0.1.0](https://www.github.com/Zushah/WasmGPU/releases/tag/v0.1.0) - 02/01/2026
|
|
65
|
+
The first release of WasmGPU. Commits: [`v0.0.0...v0.1.0`](https://www.github.com/Zushah/WasmGPU/compare/ae3c900860a218f8c52db1d86f9ce54163e9bb6a...v0.1.0)
|
|
66
|
+
- WebGPU renderer is up and running with a rotating cube demo.
|
|
67
|
+
- AssemblyScript → WebAssembly math module integrated and callable from TypeScript.
|
|
68
|
+
- Build outputs provided for both ESM and CDN consumers.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
Mozilla Public License, version 2.0
|
|
2
|
+
|
|
3
|
+
1. Definitions
|
|
4
|
+
|
|
5
|
+
1.1. “Contributor”
|
|
6
|
+
means each individual or legal entity that creates, contributes to the
|
|
7
|
+
creation of, or owns Covered Software.
|
|
8
|
+
|
|
9
|
+
1.2. “Contributor Version”
|
|
10
|
+
means the combination of the Contributions of others (if any) used by a
|
|
11
|
+
Contributor and that particular Contributor’s Contribution.
|
|
12
|
+
|
|
13
|
+
1.3. “Contribution”
|
|
14
|
+
means Covered Software of a particular Contributor.
|
|
15
|
+
|
|
16
|
+
1.4. “Covered Software”
|
|
17
|
+
means Source Code Form to which the initial Contributor has attached the
|
|
18
|
+
notice in Exhibit A, the Executable Form of such Source Code Form,
|
|
19
|
+
and Modifications of such Source Code Form, in each case
|
|
20
|
+
including portions thereof.
|
|
21
|
+
|
|
22
|
+
1.5. “Incompatible With Secondary Licenses”
|
|
23
|
+
means
|
|
24
|
+
|
|
25
|
+
a. that the initial Contributor has attached the notice described
|
|
26
|
+
in Exhibit B to the Covered Software; or
|
|
27
|
+
|
|
28
|
+
b. that the Covered Software was made available under the terms of
|
|
29
|
+
version 1.1 or earlier of the License, but not also under the terms
|
|
30
|
+
of a Secondary License.
|
|
31
|
+
|
|
32
|
+
1.6. “Executable Form”
|
|
33
|
+
means any form of the work other than Source Code Form.
|
|
34
|
+
|
|
35
|
+
1.7. “Larger Work”
|
|
36
|
+
means a work that combines Covered Software with other material,
|
|
37
|
+
in a separate file or files, that is not Covered Software.
|
|
38
|
+
|
|
39
|
+
1.8. “License”
|
|
40
|
+
means this document.
|
|
41
|
+
|
|
42
|
+
1.9. “Licensable”
|
|
43
|
+
means having the right to grant, to the maximum extent possible,
|
|
44
|
+
whether at the time of the initial grant or subsequently,
|
|
45
|
+
any and all of the rights conveyed by this License.
|
|
46
|
+
|
|
47
|
+
1.10. “Modifications”
|
|
48
|
+
means any of the following:
|
|
49
|
+
|
|
50
|
+
a. any file in Source Code Form that results from an addition to,
|
|
51
|
+
deletion from, or modification of the contents of Covered Software; or
|
|
52
|
+
|
|
53
|
+
b. any new file in Source Code Form that contains any Covered Software.
|
|
54
|
+
|
|
55
|
+
1.11. “Patent Claims” of a Contributor
|
|
56
|
+
means any patent claim(s), including without limitation, method, process,
|
|
57
|
+
and apparatus claims, in any patent Licensable by such Contributor that
|
|
58
|
+
would be infringed, but for the grant of the License, by the making,
|
|
59
|
+
using, selling, offering for sale, having made, import, or transfer of
|
|
60
|
+
either its Contributions or its Contributor Version.
|
|
61
|
+
|
|
62
|
+
1.12. “Secondary License”
|
|
63
|
+
means either the GNU General Public License, Version 2.0, the
|
|
64
|
+
GNU Lesser General Public License, Version 2.1, the GNU Affero General
|
|
65
|
+
Public License, Version 3.0, or any later versions of those licenses.
|
|
66
|
+
|
|
67
|
+
1.13. “Source Code Form”
|
|
68
|
+
means the form of the work preferred for making modifications.
|
|
69
|
+
|
|
70
|
+
1.14. “You” (or “Your”)
|
|
71
|
+
means an individual or a legal entity exercising rights under this License.
|
|
72
|
+
For legal entities, “You” includes any entity that controls,
|
|
73
|
+
is controlled by, or is under common control with You. For purposes of
|
|
74
|
+
this definition, “control” means (a) the power, direct or indirect,
|
|
75
|
+
to cause the direction or management of such entity, whether by contract
|
|
76
|
+
or otherwise, or (b) ownership of more than fifty percent (50%) of the
|
|
77
|
+
outstanding shares or beneficial ownership of such entity.
|
|
78
|
+
|
|
79
|
+
2. License Grants and Conditions
|
|
80
|
+
|
|
81
|
+
2.1. Grants
|
|
82
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
83
|
+
non-exclusive license:
|
|
84
|
+
|
|
85
|
+
a. under intellectual property rights (other than patent or trademark)
|
|
86
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
87
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
88
|
+
Contributions, either on an unmodified basis, with Modifications,
|
|
89
|
+
or as part of a Larger Work; and
|
|
90
|
+
|
|
91
|
+
b. under Patent Claims of such Contributor to make, use, sell,
|
|
92
|
+
offer for sale, have made, import, and otherwise transfer either
|
|
93
|
+
its Contributions or its Contributor Version.
|
|
94
|
+
|
|
95
|
+
2.2. Effective Date
|
|
96
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
|
97
|
+
become effective for each Contribution on the date the Contributor
|
|
98
|
+
first distributes such Contribution.
|
|
99
|
+
|
|
100
|
+
2.3. Limitations on Grant Scope
|
|
101
|
+
The licenses granted in this Section 2 are the only rights granted
|
|
102
|
+
under this License. No additional rights or licenses will be implied
|
|
103
|
+
from the distribution or licensing of Covered Software under this License.
|
|
104
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted
|
|
105
|
+
by a Contributor:
|
|
106
|
+
|
|
107
|
+
a. for any code that a Contributor has removed from
|
|
108
|
+
Covered Software; or
|
|
109
|
+
|
|
110
|
+
b. for infringements caused by: (i) Your and any other third party’s
|
|
111
|
+
modifications of Covered Software, or (ii) the combination of its
|
|
112
|
+
Contributions with other software (except as part of its
|
|
113
|
+
Contributor Version); or
|
|
114
|
+
|
|
115
|
+
c. under Patent Claims infringed by Covered Software in the
|
|
116
|
+
absence of its Contributions.
|
|
117
|
+
|
|
118
|
+
This License does not grant any rights in the trademarks, service marks,
|
|
119
|
+
or logos of any Contributor (except as may be necessary to comply with
|
|
120
|
+
the notice requirements in Section 3.4).
|
|
121
|
+
|
|
122
|
+
2.4. Subsequent Licenses
|
|
123
|
+
No Contributor makes additional grants as a result of Your choice to
|
|
124
|
+
distribute the Covered Software under a subsequent version of this
|
|
125
|
+
License (see Section 10.2) or under the terms of a Secondary License
|
|
126
|
+
(if permitted under the terms of Section 3.3).
|
|
127
|
+
|
|
128
|
+
2.5. Representation
|
|
129
|
+
Each Contributor represents that the Contributor believes its
|
|
130
|
+
Contributions are its original creation(s) or it has sufficient rights
|
|
131
|
+
to grant the rights to its Contributions conveyed by this License.
|
|
132
|
+
|
|
133
|
+
2.6. Fair Use
|
|
134
|
+
This License is not intended to limit any rights You have under
|
|
135
|
+
applicable copyright doctrines of fair use, fair dealing,
|
|
136
|
+
or other equivalents.
|
|
137
|
+
|
|
138
|
+
2.7. Conditions
|
|
139
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the
|
|
140
|
+
licenses granted in Section 2.1.
|
|
141
|
+
|
|
142
|
+
3. Responsibilities
|
|
143
|
+
|
|
144
|
+
3.1. Distribution of Source Form
|
|
145
|
+
All distribution of Covered Software in Source Code Form, including
|
|
146
|
+
any Modifications that You create or to which You contribute, must be
|
|
147
|
+
under the terms of this License. You must inform recipients that the
|
|
148
|
+
Source Code Form of the Covered Software is governed by the terms
|
|
149
|
+
of this License, and how they can obtain a copy of this License.
|
|
150
|
+
You may not attempt to alter or restrict the recipients’ rights
|
|
151
|
+
in the Source Code Form.
|
|
152
|
+
|
|
153
|
+
3.2. Distribution of Executable Form
|
|
154
|
+
If You distribute Covered Software in Executable Form then:
|
|
155
|
+
|
|
156
|
+
a. such Covered Software must also be made available in Source Code
|
|
157
|
+
Form, as described in Section 3.1, and You must inform recipients of
|
|
158
|
+
the Executable Form how they can obtain a copy of such Source Code
|
|
159
|
+
Form by reasonable means in a timely manner, at a charge no more than
|
|
160
|
+
the cost of distribution to the recipient; and
|
|
161
|
+
|
|
162
|
+
b. You may distribute such Executable Form under the terms of this
|
|
163
|
+
License, or sublicense it under different terms, provided that the
|
|
164
|
+
license for the Executable Form does not attempt to limit or alter
|
|
165
|
+
the recipients’ rights in the Source Code Form under this License.
|
|
166
|
+
|
|
167
|
+
3.3. Distribution of a Larger Work
|
|
168
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
|
169
|
+
provided that You also comply with the requirements of this License for
|
|
170
|
+
the Covered Software. If the Larger Work is a combination of
|
|
171
|
+
Covered Software with a work governed by one or more Secondary Licenses,
|
|
172
|
+
and the Covered Software is not Incompatible With Secondary Licenses,
|
|
173
|
+
this License permits You to additionally distribute such Covered Software
|
|
174
|
+
under the terms of such Secondary License(s), so that the recipient of
|
|
175
|
+
the Larger Work may, at their option, further distribute the
|
|
176
|
+
Covered Software under the terms of either this License or such
|
|
177
|
+
Secondary License(s).
|
|
178
|
+
|
|
179
|
+
3.4. Notices
|
|
180
|
+
You may not remove or alter the substance of any license notices
|
|
181
|
+
(including copyright notices, patent notices, disclaimers of warranty,
|
|
182
|
+
or limitations of liability) contained within the Source Code Form of
|
|
183
|
+
the Covered Software, except that You may alter any license notices to
|
|
184
|
+
the extent required to remedy known factual inaccuracies.
|
|
185
|
+
|
|
186
|
+
3.5. Application of Additional Terms
|
|
187
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
|
188
|
+
indemnity or liability obligations to one or more recipients of
|
|
189
|
+
Covered Software. However, You may do so only on Your own behalf,
|
|
190
|
+
and not on behalf of any Contributor. You must make it absolutely clear
|
|
191
|
+
that any such warranty, support, indemnity, or liability obligation is
|
|
192
|
+
offered by You alone, and You hereby agree to indemnify every Contributor
|
|
193
|
+
for any liability incurred by such Contributor as a result of warranty,
|
|
194
|
+
support, indemnity or liability terms You offer. You may include
|
|
195
|
+
additional disclaimers of warranty and limitations of liability
|
|
196
|
+
specific to any jurisdiction.
|
|
197
|
+
|
|
198
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
199
|
+
|
|
200
|
+
If it is impossible for You to comply with any of the terms of this License
|
|
201
|
+
with respect to some or all of the Covered Software due to statute,
|
|
202
|
+
judicial order, or regulation then You must: (a) comply with the terms of
|
|
203
|
+
this License to the maximum extent possible; and (b) describe the limitations
|
|
204
|
+
and the code they affect. Such description must be placed in a text file
|
|
205
|
+
included with all distributions of the Covered Software under this License.
|
|
206
|
+
Except to the extent prohibited by statute or regulation, such description
|
|
207
|
+
must be sufficiently detailed for a recipient of ordinary skill
|
|
208
|
+
to be able to understand it.
|
|
209
|
+
|
|
210
|
+
5. Termination
|
|
211
|
+
|
|
212
|
+
5.1. The rights granted under this License will terminate automatically
|
|
213
|
+
if You fail to comply with any of its terms. However, if You become
|
|
214
|
+
compliant, then the rights granted under this License from a particular
|
|
215
|
+
Contributor are reinstated (a) provisionally, unless and until such
|
|
216
|
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
217
|
+
ongoing basis, if such Contributor fails to notify You of the
|
|
218
|
+
non-compliance by some reasonable means prior to 60 days after You have
|
|
219
|
+
come back into compliance. Moreover, Your grants from a particular
|
|
220
|
+
Contributor are reinstated on an ongoing basis if such Contributor
|
|
221
|
+
notifies You of the non-compliance by some reasonable means,
|
|
222
|
+
this is the first time You have received notice of non-compliance with
|
|
223
|
+
this License from such Contributor, and You become compliant prior to
|
|
224
|
+
30 days after Your receipt of the notice.
|
|
225
|
+
|
|
226
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
|
227
|
+
infringement claim (excluding declaratory judgment actions,
|
|
228
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
229
|
+
directly or indirectly infringes any patent, then the rights granted
|
|
230
|
+
to You by any and all Contributors for the Covered Software under
|
|
231
|
+
Section 2.1 of this License shall terminate.
|
|
232
|
+
|
|
233
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
234
|
+
end user license agreements (excluding distributors and resellers) which
|
|
235
|
+
have been validly granted by You or Your distributors under this License
|
|
236
|
+
prior to termination shall survive termination.
|
|
237
|
+
|
|
238
|
+
6. Disclaimer of Warranty
|
|
239
|
+
|
|
240
|
+
Covered Software is provided under this License on an “as is” basis, without
|
|
241
|
+
warranty of any kind, either expressed, implied, or statutory, including,
|
|
242
|
+
without limitation, warranties that the Covered Software is free of defects,
|
|
243
|
+
merchantable, fit for a particular purpose or non-infringing. The entire risk
|
|
244
|
+
as to the quality and performance of the Covered Software is with You.
|
|
245
|
+
Should any Covered Software prove defective in any respect, You
|
|
246
|
+
(not any Contributor) assume the cost of any necessary servicing, repair,
|
|
247
|
+
or correction. This disclaimer of warranty constitutes an essential part of
|
|
248
|
+
this License. No use of any Covered Software is authorized under this
|
|
249
|
+
License except under this disclaimer.
|
|
250
|
+
|
|
251
|
+
7. Limitation of Liability
|
|
252
|
+
|
|
253
|
+
Under no circumstances and under no legal theory, whether tort
|
|
254
|
+
(including negligence), contract, or otherwise, shall any Contributor, or
|
|
255
|
+
anyone who distributes Covered Software as permitted above, be liable to
|
|
256
|
+
You for any direct, indirect, special, incidental, or consequential damages
|
|
257
|
+
of any character including, without limitation, damages for lost profits,
|
|
258
|
+
loss of goodwill, work stoppage, computer failure or malfunction, or any and
|
|
259
|
+
all other commercial damages or losses, even if such party shall have been
|
|
260
|
+
informed of the possibility of such damages. This limitation of liability
|
|
261
|
+
shall not apply to liability for death or personal injury resulting from
|
|
262
|
+
such party’s negligence to the extent applicable law prohibits such
|
|
263
|
+
limitation. Some jurisdictions do not allow the exclusion or limitation of
|
|
264
|
+
incidental or consequential damages, so this exclusion and limitation may
|
|
265
|
+
not apply to You.
|
|
266
|
+
|
|
267
|
+
8. Litigation
|
|
268
|
+
|
|
269
|
+
Any litigation relating to this License may be brought only in the courts of
|
|
270
|
+
a jurisdiction where the defendant maintains its principal place of business
|
|
271
|
+
and such litigation shall be governed by laws of that jurisdiction, without
|
|
272
|
+
reference to its conflict-of-law provisions. Nothing in this Section shall
|
|
273
|
+
prevent a party’s ability to bring cross-claims or counter-claims.
|
|
274
|
+
|
|
275
|
+
9. Miscellaneous
|
|
276
|
+
|
|
277
|
+
This License represents the complete agreement concerning the subject matter
|
|
278
|
+
hereof. If any provision of this License is held to be unenforceable,
|
|
279
|
+
such provision shall be reformed only to the extent necessary to make it
|
|
280
|
+
enforceable. Any law or regulation which provides that the language of a
|
|
281
|
+
contract shall be construed against the drafter shall not be used to construe
|
|
282
|
+
this License against a Contributor.
|
|
283
|
+
|
|
284
|
+
10. Versions of the License
|
|
285
|
+
|
|
286
|
+
10.1. New Versions
|
|
287
|
+
Mozilla Foundation is the license steward. Except as provided in
|
|
288
|
+
Section 10.3, no one other than the license steward has the right to
|
|
289
|
+
modify or publish new versions of this License. Each version will be
|
|
290
|
+
given a distinguishing version number.
|
|
291
|
+
|
|
292
|
+
10.2. Effect of New Versions
|
|
293
|
+
You may distribute the Covered Software under the terms of the version
|
|
294
|
+
of the License under which You originally received the Covered Software,
|
|
295
|
+
or under the terms of any subsequent version published
|
|
296
|
+
by the license steward.
|
|
297
|
+
|
|
298
|
+
10.3. Modified Versions
|
|
299
|
+
If you create software not governed by this License, and you want to
|
|
300
|
+
create a new license for such software, you may create and use a modified
|
|
301
|
+
version of this License if you rename the license and remove any
|
|
302
|
+
references to the name of the license steward (except to note that such
|
|
303
|
+
modified license differs from this License).
|
|
304
|
+
|
|
305
|
+
10.4. Distributing Source Code Form that is
|
|
306
|
+
Incompatible With Secondary Licenses
|
|
307
|
+
If You choose to distribute Source Code Form that is
|
|
308
|
+
Incompatible With Secondary Licenses under the terms of this version of
|
|
309
|
+
the License, the notice described in Exhibit B of this
|
|
310
|
+
License must be attached.
|
|
311
|
+
|
|
312
|
+
Exhibit A - Source Code Form License Notice
|
|
313
|
+
|
|
314
|
+
This Source Code Form is subject to the terms of the
|
|
315
|
+
Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
|
|
316
|
+
with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
317
|
+
|
|
318
|
+
If it is not possible or desirable to put the notice in a particular file,
|
|
319
|
+
then You may include the notice in a location (such as a LICENSE file in a
|
|
320
|
+
relevant directory) where a recipient would be likely to
|
|
321
|
+
look for such a notice.
|
|
322
|
+
|
|
323
|
+
You may add additional accurate notices of copyright ownership.
|
|
324
|
+
|
|
325
|
+
Exhibit B - “Incompatible With Secondary Licenses” Notice
|
|
326
|
+
|
|
327
|
+
This Source Code Form is “Incompatible With Secondary Licenses”,
|
|
328
|
+
as defined by the Mozilla Public License, v. 2.0.
|