@ccpc/canvas 0.1.24 → 0.1.25
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/index.js +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1520,7 +1520,7 @@ const V = class V extends ie {
|
|
|
1520
1520
|
}), this._renderer.autoClear = !1, this._renderer.setPixelRatio(window.devicePixelRatio), this._renderer.setClearColor(U.common.color_background), this._renderer.outputColorSpace = $t, this._renderer.setSize(this._width, this._height), this._container.appendChild(this._renderer.domElement), this._resizeObserver = new ResizeObserver(() => {
|
|
1521
1521
|
this._onResize();
|
|
1522
1522
|
}), this._resizeObserver.observe(this._container), this._scene = new dt(), this._activeScene = new dt();
|
|
1523
|
-
const e = this._width / this._height, s =
|
|
1523
|
+
const e = this._width / this._height, s = 300, i = s * e;
|
|
1524
1524
|
this._camera = new Jt(-i / 2, i / 2, s / 2, -s / 2, 0.1, 100), this._camera.position.set(0, 0, 20), this._cameraControls = new ae(this._camera, this._renderer.domElement), this._cameraControls.enableRotate = !1, this._cameraControls.enablePan = !0, this._renderHub = new Me(), this._activeSelectionOp = new ve(this._activeScene), this.render();
|
|
1525
1525
|
}
|
|
1526
1526
|
/**
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccpc/canvas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Canvas rendering layer for editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@ccpc/core": "^0.1.
|
|
11
|
-
"@ccpc/math": "^0.1.
|
|
10
|
+
"@ccpc/core": "^0.1.25",
|
|
11
|
+
"@ccpc/math": "^0.1.25"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"three": "^0.181.1",
|