Skip to content

Commit

Permalink
prep for v3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 1, 2024
1 parent a452336 commit 10895d4
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Fast 3d math library for webgpu
import {
vec3,
mat4,
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.js';
} from 'https://wgpu-matrix.org/dist/3.x/wgpu-matrix.module.js';
const fov = 60 * Math.PI / 180
const aspect = width / height;
Expand Down Expand Up @@ -101,15 +101,15 @@ There is also the minified version
import {
vec3,
mat4,
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.min.js';
} from 'https://wgpu-matrix.org/dist/3.x/wgpu-matrix.module.min.js';

// ... etc ...
```

and a UMD version

```html
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.js"></script>
<script src="https://wgpu-matrix.org/dist/3.x/wgpu-matrix.js"></script>
<script>
const { mat4, vec3 } = wgpuMatrix;
const m = mat4.identity();
Expand All @@ -120,7 +120,7 @@ const m = mat4.identity();
or UDM min version

```html
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.min.js"></script>
<script src="https://wgpu-matrix.org/dist/3.x/wgpu-matrix.min.js"></script>
...
```

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "wgpu-matrix",
"version": "2.9.1",
"description": "fast matrix math library for WebGPU",
"main": "dist/2.x/wgpu-matrix.module.js",
"module": "dist/2.x/wgpu-matrix.module.js",
"types": "dist/2.x/wgpu-matrix.d.ts",
"main": "dist/3.x/wgpu-matrix.module.js",
"module": "dist/3.x/wgpu-matrix.module.js",
"types": "dist/3.x/wgpu-matrix.d.ts",
"type": "module",
"sideEffects": false,
"directories": {
Expand All @@ -28,7 +28,7 @@
"url": "git+https://github.com/greggman/wgpu-matrix.git"
},
"files": [
"dist/2.x/**"
"dist/3.x/**"
],
"keywords": [
"webgpu",
Expand Down
2 changes: 1 addition & 1 deletion test/tests/mat3-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mat3, mat3d, mat3n, mat4, quat, utils} from '../../dist/2.x/wgpu-matrix.module.js';
import {mat3, mat3d, mat3n, mat4, quat, utils} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/mat4-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mat4, mat4d, mat4n, mat3, quat, utils, vec3} from '../../dist/2.x/wgpu-matrix.module.js';
import {mat4, mat4d, mat4n, mat3, quat, utils, vec3} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/quat-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mat3, mat4, quat, quatn, quatd, utils, vec3} from '../../dist/2.x/wgpu-matrix.module.js';
import {mat3, mat4, quat, quatn, quatd, utils, vec3} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/utils-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {utils} from '../../dist/2.x/wgpu-matrix.module.js';
import {utils} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/vec2-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {vec2, vec2n, vec2d, utils} from '../../dist/2.x/wgpu-matrix.module.js';
import {vec2, vec2n, vec2d, utils} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/vec3-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {quat, vec3, vec3d, vec3n, utils} from '../../dist/2.x/wgpu-matrix.module.js';
import {quat, vec3, vec3d, vec3n, utils} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/vec4-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {vec4, vec4n, vec4d, utils} from '../../dist/2.x/wgpu-matrix.module.js';
import {vec4, vec4n, vec4d, utils} from '../../dist/3.x/wgpu-matrix.module.js';

import {
assertEqual,
Expand Down
2 changes: 1 addition & 1 deletion test/umd-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>UMD Test</title>
</head>
<body>
<script src="../dist/2.x/wgpu-matrix.js"></script>
<script src="../dist/3.x/wgpu-matrix.js"></script>
<script>
/* global wgpuMatrix */
const { mat4, vec3 } = wgpuMatrix;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"target": "ESNext",
"module": "esnext",
"outDir": "dist/2.x",
"outDir": "dist/3.x",
},
"files": [
"src/wgpu-matrix.ts",
Expand Down

0 comments on commit 10895d4

Please sign in to comment.