Skip to content

Commit 3a50306

Browse files
Merge pull request #97 from mm-rnd/sine-test
Update sine test
2 parents a5e73eb + 79623d1 commit 3a50306

File tree

13 files changed

+1264
-1196
lines changed

13 files changed

+1264
-1196
lines changed

package-lock.json

Lines changed: 411 additions & 342 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"ci-manifold-worker": "cd packages/dev/manifold-worker && npm ci",
1616
"ci-manifold": "cd packages/dev/manifold && npm ci",
1717
"ci-packages": "npm run ci-base && npm run ci-core && npm run ci-threejs && npm run ci-babylonjs && npm run ci-occt-worker && npm run ci-occt && npm run ci-jscad-worker && npm run ci-jscad && npm run ci-manifold-worker && npm run ci-manifold",
18-
"rm-dist-base-if-exists": "rimraf packages/dev/base/dist",
19-
"rm-dist-core-if-exists": "rimraf packages/dev/core/dist",
20-
"rm-dist-threejs-if-exists": "rimraf packages/dev/threejs/dist",
21-
"rm-dist-babylonjs-if-exists": "rimraf packages/dev/babylonjs/dist",
22-
"rm-dist-occt-worker-if-exists": "rimraf packages/dev/occt-worker/dist",
23-
"rm-dist-occt-if-exists": "rimraf packages/dev/occt/dist",
24-
"rm-dist-jscad-worker-if-exists": "rimraf packages/dev/jscad-worker/dist",
25-
"rm-dist-jscad-if-exists": "rimraf packages/dev/jscad/dist",
26-
"rm-dist-manifold-worker-if-exists": "rimraf packages/dev/manifold-worker/dist",
27-
"rm-dist-manifold-if-exists": "rimraf packages/dev/manifold/dist",
18+
"rm-dist-base-if-exists": "shx rm -rf packages/dev/base/dist",
19+
"rm-dist-core-if-exists": "shx rm -rf packages/dev/core/dist",
20+
"rm-dist-threejs-if-exists": "shx rm -rf packages/dev/threejs/dist",
21+
"rm-dist-babylonjs-if-exists": "shx rm -rf packages/dev/babylonjs/dist",
22+
"rm-dist-occt-worker-if-exists": "shx rm -rf packages/dev/occt-worker/dist",
23+
"rm-dist-occt-if-exists": "shx rm -rf packages/dev/occt/dist",
24+
"rm-dist-jscad-worker-if-exists": "shx rm -rf packages/dev/jscad-worker/dist",
25+
"rm-dist-jscad-if-exists": "shx rm -rf packages/dev/jscad/dist",
26+
"rm-dist-manifold-worker-if-exists": "shx rm -rf packages/dev/manifold-worker/dist",
27+
"rm-dist-manifold-if-exists": "shx rm -rf packages/dev/manifold/dist",
2828
"rm-dist-packages": "npm run rm-dist-base-if-exists && npm run rm-dist-core-if-exists && npm run rm-dist-threejs-if-exists && npm run rm-dist-babylonjs-if-exists && npm run rm-dist-occt-worker-if-exists && npm run rm-dist-occt-if-exists && npm run rm-dist-jscad-worker-if-exists && npm run rm-dist-jscad-if-exists && npm run rm-dist-manifold-worker-if-exists && npm run rm-dist-manifold-if-exists",
2929
"build-base": "cd packages/dev/base && npm run build-p",
3030
"build-core": "cd packages/dev/core && npm run build-p",
@@ -37,7 +37,7 @@
3737
"build-manifold-worker": "cd packages/dev/manifold-worker && npm run build-p",
3838
"build-manifold": "cd packages/dev/manifold && npm run build-p",
3939
"build-packages": "npm run build-base && npm run build-occt && npm run build-jscad && npm run build-manifold && npm run build-occt-worker && npm run build-jscad-worker && npm run build-manifold-worker && npm run build-core && npm run build-babylonjs && npm run build-threejs",
40-
"rebuild-all-packages": "npm run rm-dist-packages && npm run build-packages",
40+
"rebuild-all-packages": "npm run rm-dist-packages && npm run build-packages",
4141
"install-rebuild-all-packages": "npm run ci-packages && npm run rebuild-all-packages",
4242
"test-base": "cd packages/dev/base && npm run test-c",
4343
"test-occt": "cd packages/dev/occt && npm run test-c",
@@ -73,7 +73,7 @@
7373
},
7474
"homepage": "https://bitbybit.dev",
7575
"devDependencies": {
76-
"typescript": "^4.3.5",
77-
"rimraf": "^5.0.5"
76+
"shx": "^0.4.0",
77+
"typescript": "^4.3.5"
7878
}
79-
}
79+
}
Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
{
2-
"name": "@bitbybit-dev/babylonjs",
3-
"version": "0.20.7",
4-
"description": "Bit By Bit Developers BABYLONJS CAD Library to Program Geometry",
5-
"main": "index.js",
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/bitbybit-dev/bitbybit"
2+
"name": "@bitbybit-dev/babylonjs",
3+
"version": "0.20.7",
4+
"description": "Bit By Bit Developers BABYLONJS CAD Library to Program Geometry",
5+
"main": "index.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/bitbybit-dev/bitbybit"
9+
},
10+
"keywords": [
11+
"Bit By Bit Developers",
12+
"bitbybit",
13+
"bitbybit.dev",
14+
"Geometry",
15+
"CAD",
16+
"3D",
17+
"JSCAD",
18+
"OCCT",
19+
"OpenCascade",
20+
"Creative coding",
21+
"BabylonJS",
22+
"WebGL",
23+
"WebGPU",
24+
"Parametric",
25+
"Modeling",
26+
"Browser CAD",
27+
"3D algorithms",
28+
"3D modeling",
29+
"3D printing",
30+
"3D printing algorithms",
31+
"3D software",
32+
"OpenCascade Technology",
33+
"AEC",
34+
"Automotive",
35+
"Engineering",
36+
"CAE",
37+
"CAM"
38+
],
39+
"directories": {
40+
"lib": "lib"
41+
},
42+
"scripts": {
43+
"build": "tsc -p tsconfig.bitbybit.json",
44+
"build-p": "npm run build && npm run copy-package && npm run copy-readme && npm run delete-coverage",
45+
"copy-package": "shx cp -R ./package.json ./dist",
46+
"copy-readme": "shx cp -R ./README.md ./dist && shx cp -R ./LICENSE ./dist",
47+
"delete-coverage": "shx rm -rf ./dist/coverage || true",
48+
"test": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --watchAll=true",
49+
"test-c": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=false",
50+
"test-c-l": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=true"
51+
},
52+
"author": "Bit by bit developers",
53+
"license": "MIT",
54+
"types": "./index.d.ts",
55+
"type": "module",
56+
"dependencies": {
57+
"@babylonjs/core": "8.29.1",
58+
"@babylonjs/gui": "8.29.1",
59+
"@babylonjs/loaders": "8.29.1",
60+
"@babylonjs/materials": "8.29.1",
61+
"@babylonjs/serializers": "8.29.1",
62+
"@babylonjs/havok": "1.3.10",
63+
"@bitbybit-dev/core": "0.20.7",
64+
"earcut": "2.2.3"
65+
},
66+
"devDependencies": {
67+
"sass": "1.57.1",
68+
"@testing-library/jest-dom": "5.14.1",
69+
"mvdir": "1.0.21",
70+
"jest": "29.4.1",
71+
"ts-node": "10.9.1",
72+
"ts-jest": "29.0.0",
73+
"typescript": "4.8.2",
74+
"@types/jest": "29.0.0",
75+
"babel-jest": "29.0.0",
76+
"@babel/core": "7.16.0",
77+
"@babel/preset-env": "7.16.0",
78+
"@babel/preset-typescript": "7.16.0",
79+
"jest-html-reporters": "3.0.11"
80+
},
81+
"jest": {
82+
"preset": "ts-jest",
83+
"transform": {
84+
"\\.[jt]sx?$": "babel-jest"
985
},
10-
"keywords": [
11-
"Bit By Bit Developers",
12-
"bitbybit",
13-
"bitbybit.dev",
14-
"Geometry",
15-
"CAD",
16-
"3D",
17-
"JSCAD",
18-
"OCCT",
19-
"OpenCascade",
20-
"Creative coding",
21-
"BabylonJS",
22-
"WebGL",
23-
"WebGPU",
24-
"Parametric",
25-
"Modeling",
26-
"Browser CAD",
27-
"3D algorithms",
28-
"3D modeling",
29-
"3D printing",
30-
"3D printing algorithms",
31-
"3D software",
32-
"OpenCascade Technology",
33-
"AEC",
34-
"Automotive",
35-
"Engineering",
36-
"CAE",
37-
"CAM"
86+
"extensionsToTreatAsEsm": [
87+
".ts"
3888
],
39-
"directories": {
40-
"lib": "lib"
41-
},
42-
"scripts": {
43-
"build": "tsc -p tsconfig.bitbybit.json",
44-
"build-p": "npm run build && npm run copy-package && npm run copy-readme && npm run delete-coverage",
45-
"copy-package": "cp -R ./package.json ./dist",
46-
"copy-readme": "cp -R ./README.md ./dist && cp -R ./LICENSE ./dist",
47-
"delete-coverage": "rm -rf ./dist/coverage || true",
48-
"test": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --watchAll=true",
49-
"test-c": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=false",
50-
"test-c-l": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=true"
51-
},
52-
"author": "Bit by bit developers",
53-
"license": "MIT",
54-
"types": "./index.d.ts",
55-
"type": "module",
56-
"dependencies": {
57-
"@babylonjs/core": "8.29.1",
58-
"@babylonjs/gui": "8.29.1",
59-
"@babylonjs/loaders": "8.29.1",
60-
"@babylonjs/materials": "8.29.1",
61-
"@babylonjs/serializers": "8.29.1",
62-
"@babylonjs/havok": "1.3.10",
63-
"@bitbybit-dev/core": "0.20.7",
64-
"earcut": "2.2.3"
65-
},
66-
"devDependencies": {
67-
"sass": "1.57.1",
68-
"@testing-library/jest-dom": "5.14.1",
69-
"mvdir": "1.0.21",
70-
"jest": "29.4.1",
71-
"ts-node": "10.9.1",
72-
"ts-jest": "29.0.0",
73-
"typescript": "4.8.2",
74-
"@types/jest": "29.0.0",
75-
"babel-jest": "29.0.0",
76-
"@babel/core": "7.16.0",
77-
"@babel/preset-env": "7.16.0",
78-
"@babel/preset-typescript": "7.16.0",
79-
"jest-html-reporters": "3.0.11"
80-
},
81-
"jest": {
82-
"preset": "ts-jest",
83-
"transform": {
84-
"\\.[jt]sx?$": "babel-jest"
85-
},
86-
"extensionsToTreatAsEsm": [
87-
".ts"
88-
],
89-
"transformIgnorePatterns": [
90-
"node_modules/(?!@babylonjs|@bitbybit-dev)"
91-
],
92-
"collectCoverageFrom": [
93-
"lib/workers/**/*",
94-
"lib/api/bitbybit/**/*"
95-
]
96-
}
97-
}
89+
"transformIgnorePatterns": [
90+
"node_modules/(?!@babylonjs|@bitbybit-dev)"
91+
],
92+
"collectCoverageFrom": [
93+
"lib/workers/**/*",
94+
"lib/api/bitbybit/**/*"
95+
]
96+
}
97+
}

packages/dev/base/lib/api/services/math.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ describe("Math unit tests", () => {
326326

327327
it("should compute ease out sine", () => {
328328
const result = math.ease({ x: 0.3, min: 0, max: 1, ease: Inputs.Math.easeEnum.easeOutSine });
329-
expect(result).toEqual(0.4539904997395468);
329+
expect(result).toBeCloseTo(0.4539904997395468);
330330
});
331331

332332
it("should compute ease out sine", () => {

0 commit comments

Comments
 (0)