@ccpc/canvas 0.1.25 → 0.1.27
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
|
@@ -1620,7 +1620,7 @@ const V = class V extends ie {
|
|
|
1620
1620
|
// TODO 需要重构
|
|
1621
1621
|
_onResize() {
|
|
1622
1622
|
this._width = this._container.clientWidth, this._height = this._container.clientHeight, this._renderer.setSize(this._width, this._height);
|
|
1623
|
-
const t = this._width / this._height, e =
|
|
1623
|
+
const t = this._width / this._height, e = 300, s = e * t;
|
|
1624
1624
|
this._camera.left = -s / 2, this._camera.right = s / 2, this._camera.top = e / 2, this._camera.bottom = -e / 2, this._camera.updateProjectionMatrix();
|
|
1625
1625
|
}
|
|
1626
1626
|
// TODO 补充完整
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccpc/canvas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
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.27",
|
|
11
|
+
"@ccpc/math": "^0.1.27"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"three": "^0.181.1",
|