@buerli.io/headless 0.0.35-beta.0 → 0.0.35-beta.1

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.
@@ -204,7 +204,7 @@ const createRecursiveScene = async (object, drawingId, root, options) => {
204
204
  meshes = [...meshes, ...cachedSolid.meshes.map(m => m)];
205
205
  }
206
206
  if (meshes.length > 0) {
207
- if (options?.meshPerFace) {
207
+ if (options === null || options === void 0 ? void 0 : options.meshPerFace) {
208
208
  const part = new Group();
209
209
  part.matrix = MathUtils.convertToMatrix4(object.coordinateSystem);
210
210
  part.matrixAutoUpdate = false;
@@ -142,7 +142,7 @@ export function createPolyline(fPts) {
142
142
  lineEnds: [fPts[j].point, fPts[k].point],
143
143
  };
144
144
  const touchPts = getTouchPoints(filletInfo, fPts[i].radius); // returns two points
145
- if (touchPts != undefined && touchPts?.length > 0) {
145
+ if (touchPts != undefined && (touchPts === null || touchPts === void 0 ? void 0 : touchPts.length) > 0) {
146
146
  const angle = getIncludingBulgeAngle(filletInfo);
147
147
  const bulge = Math.tan(angle / 4);
148
148
  newVertices.push(...touchPts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/headless",
3
- "version": "0.0.35-beta.0",
3
+ "version": "0.0.35-beta.1",
4
4
  "description": "A non-manifold CAD workflow for the web",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf ./build",
15
15
  "build": "npm run build:esm -- --sourceMap true --declaration true --declarationDir ./build/types",
16
16
  "build:dist": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && echo DONE",
17
- "build:esm": "tsc --target es2020 --module esNext --declaration false --declarationDir null --sourceMap false --outDir ./build/esm",
17
+ "build:esm": "tsc --target es2017 --module esNext --declaration false --declarationDir null --sourceMap false --outDir ./build/esm",
18
18
  "build:cjs": "tsc --target es2017 --module commonjs --declaration false --declarationDir null --sourceMap false --outDir ./build/cjs",
19
19
  "build:types": "tsc --declaration --emitDeclarationOnly --outDir ./build/types",
20
20
  "test": "echo no tests yet",
@@ -53,6 +53,6 @@
53
53
  "three": ">=0.128"
54
54
  },
55
55
  "dependencies": {
56
- "@buerli.io/classcad": "0.0.35-beta.0"
56
+ "@buerli.io/classcad": "0.0.35-beta.1"
57
57
  }
58
58
  }