Skip to content

Commit f636b2d

Browse files
update to use @bitbybit-dev npmjs package namespace and v0.11.9
1 parent cc986c2 commit f636b2d

32 files changed

+315
-315
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ https://github.com/bitbybit-dev/app-examples
1616

1717
# NPM
1818
CORE
19-
https://www.npmjs.com/package/bitbybit-core
19+
https://www.npmjs.com/package/@bitbybit-dev/core
2020
OCCT
21-
https://www.npmjs.com/package/bitbybit-occt
21+
https://www.npmjs.com/package/@bitbybit-dev/occt
2222

2323
# Example Applications
2424
Laptop Holder

angular/laptop-holder/package-lock.json

+69-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular/laptop-holder/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13+
"@bitbybit-dev/core": "0.11.9",
1314
"@angular/animations": "13.3.0",
1415
"@angular/common": "13.3.0",
1516
"@angular/compiler": "13.3.0",
@@ -19,7 +20,6 @@
1920
"@angular/platform-browser": "13.3.0",
2021
"@angular/platform-browser-dynamic": "13.3.0",
2122
"@angular/router": "13.3.0",
22-
"bitbybit-core": "0.11.8",
2323
"rxjs": "7.5.5",
2424
"tslib": "2.3.1",
2525
"zone.js": "0.11.5"

angular/laptop-holder/src/app/app.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>Configurator</h2>
2424
developers
2525
platform in
2626
your own websites, configurators or webshops. We have recently released our core algorithms as an <a
27-
href="https://www.npmjs.com/package/bitbybit-core" target="_blank">npm package</a>.
27+
href="https://www.npmjs.com/package/@bitbybit-dev/core" target="_blank">npm package</a>.
2828
If you are the beginner you can use our <a href="https://bitbybit.dev" target="_blank">bitbybit.dev</a>
2929
platform to learn to use the API and construct parametric geometries.
3030
If you are professional, consider exploring our <a href="docs.bitbybit.dev" target="_blank">bitbybit.dev

angular/laptop-holder/src/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
2-
import { BitByBitBase } from 'bitbybit-core';
3-
import { OccStateEnum } from 'bitbybit-occt-worker';
2+
import { BitByBitBase } from '@bitbybit-dev/core';
3+
import { OccStateEnum } from '@bitbybit-dev/occt-worker';
44
import { Scene, Engine, Color4, Color3, HemisphericLight, Vector3, ArcRotateCamera, Light } from '@babylonjs/core';
55
import { LaptopLogic } from './laptop';
66
class Laptop {

angular/laptop-holder/src/app/jscad.worker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// <reference lib="webworker" />
22

3-
import { Workers } from 'bitbybit-core';
3+
import { Workers } from '@bitbybit-dev/core';
44

5-
import('bitbybit-core/jscad-generated')
5+
import('@bitbybit-dev/core/jscad-generated')
66
.then((s) => {
77
Workers.initializationComplete(s.default());
88
});

angular/laptop-holder/src/app/laptop.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BitByBitBase, Inputs, BabylonScene, Draw, OCCTW } from "bitbybit-core";
1+
import { BitByBitBase, Inputs, BabylonScene, Draw, OCCTW } from "@bitbybit-dev/core";
22
export class LaptopLogic {
33

44
private bitbybit: BitByBitBase;

angular/laptop-holder/src/app/occ.worker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference lib="webworker" />
2-
import initOpenCascade from 'bitbybit-occt/bitbybit-dev-occt';
3-
import { OpenCascadeInstance } from 'bitbybit-occt/bitbybit-dev-occt/bitbybit-dev-occt.js';
4-
import { initializationComplete, onMessageInput } from 'bitbybit-occt-worker';
2+
import initOpenCascade from '@bitbybit-dev/occt/bitbybit-dev-occt';
3+
import { OpenCascadeInstance } from '@bitbybit-dev/occt/bitbybit-dev-occt/bitbybit-dev-occt.js';
4+
import { initializationComplete, onMessageInput } from '@bitbybit-dev/occt-worker';
55

66
initOpenCascade().then((occ: OpenCascadeInstance) => {
77
initializationComplete(occ, undefined);

node/basic/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import initOpenCascade from "bitbybit-occt/bitbybit-dev-occt/node.js";
2-
import { OCCTWire } from "bitbybit-occt/lib/services/shapes/wire.js";
3-
import { OccHelper } from "bitbybit-occt/lib/occ-helper.js";
4-
import { VectorHelperService } from "bitbybit-occt/lib/api/vector-helper.service.js";
5-
import { ShapesHelperService } from "bitbybit-occt/lib/api/shapes-helper.service.js";
1+
import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/node.js";
2+
import { OCCTWire } from "@bitbybit-dev/occt/lib/services/shapes/wire.js";
3+
import { OccHelper } from "@bitbybit-dev/occt/lib/occ-helper.js";
4+
import { VectorHelperService } from "@bitbybit-dev/occt/lib/api/vector-helper.service.js";
5+
import { ShapesHelperService } from "@bitbybit-dev/occt/lib/api/shapes-helper.service.js";
66

77
async function run() {
88
console.log("initializing...");

node/basic/package-lock.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/basic/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "basic",
33
"version": "1.0.0",
4-
"description": "Example of how to use bitbybit-occt within node",
4+
"description": "Example of how to use @bitbybit-dev/occt within node",
55
"main": "index.js",
66
"scripts": {
77
"build": "npx tsc",
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"type": "module",
1414
"dependencies": {
15-
"bitbybit-occt": "0.11.8"
15+
"@bitbybit-dev/occt": "0.11.9"
1616
},
1717
"devDependencies": {
1818
"concurrently": "^7.6.0",

node/express-app/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import initOpenCascade from "bitbybit-occt/bitbybit-dev-occt/node.js";
2-
import { OCCTWire } from "bitbybit-occt/lib/services/shapes/wire.js";
3-
import { OccHelper } from "bitbybit-occt/lib/occ-helper.js";
4-
import { VectorHelperService } from "bitbybit-occt/lib/api/vector-helper.service.js";
5-
import { ShapesHelperService } from "bitbybit-occt/lib/api/shapes-helper.service.js";
1+
import initOpenCascade from "@bitbybit-dev/occt/bitbybit-dev-occt/node.js";
2+
import { OCCTWire } from "@bitbybit-dev/occt/lib/services/shapes/wire.js";
3+
import { OccHelper } from "@bitbybit-dev/occt/lib/occ-helper.js";
4+
import { VectorHelperService } from "@bitbybit-dev/occt/lib/api/vector-helper.service.js";
5+
import { ShapesHelperService } from "@bitbybit-dev/occt/lib/api/shapes-helper.service.js";
66

77
let wire: OCCTWire;
88

0 commit comments

Comments
 (0)