Skip to content

Commit

Permalink
fix: tree-shake chevrotain (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Sep 23, 2023
1 parent ac8b8b8 commit 7bf780c
Show file tree
Hide file tree
Showing 12 changed files with 13,758 additions and 71 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
},
"sideEffects": false,
"devDependencies": {
"@babel/core": "^7.22.20",
"@types/babel__core": "^7.20.2",
"@types/node": "^20.6.3",
"@types/three": "^0.128.0",
"chevrotain": "^11.0.3",
"copyfiles": "^2.4.1",
"json": "^11.0.0",
"prettier": "^2.2.1",
Expand Down
6 changes: 6 additions & 0 deletions src/_polyfill/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { REVISION } from 'three'

let _version: any = /* @__PURE__ */ REVISION.replace(/\D+/g, '')
_version = /* @__PURE__ */ parseInt(_version)

export const version = _version as number
3 changes: 1 addition & 2 deletions src/controls/OrbitControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ import {
Vector3,
Ray,
Plane,
MathUtils,
} from 'three'

const _ray = /* @__PURE__ */ new Ray()
const _plane = /* @__PURE__ */ new Plane()
const TILT_LIMIT = Math.cos(70 * MathUtils.DEG2RAD)
const TILT_LIMIT = Math.cos(70 * (Math.PI / 180))

// This set of controls performs orbiting, dollying (zooming), and panning.
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
Expand Down
Loading

0 comments on commit 7bf780c

Please sign in to comment.