three-render-objects
Advanced tools
Comparing version 1.26.8 to 1.27.0
@@ -505,4 +505,6 @@ 'use strict'; | ||
state.toolTipElem.style.top = "".concat(state.pointerPos.y, "px"); | ||
state.toolTipElem.style.left = "".concat(state.pointerPos.x, "px"); | ||
state.toolTipElem.style.transform = "translate(-".concat(state.pointerPos.x / state.width * 100, "%, 21px)"); // adjust horizontal position to not exceed canvas boundaries | ||
state.toolTipElem.style.left = "".concat(state.pointerPos.x, "px"); // adjust horizontal position to not exceed canvas boundaries | ||
state.toolTipElem.style.transform = "translate(-".concat(state.pointerPos.x / state.width * 100, "%, ").concat( // flip to above if near bottom | ||
state.height - state.pointerPos.y < 100 ? 'calc(-100% - 8px)' : '21px', ")"); | ||
} | ||
@@ -509,0 +511,0 @@ |
@@ -497,4 +497,6 @@ import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, TextureLoader, Vector2, Vector3, Box3, Color, Mesh, SphereGeometry, MeshBasicMaterial, BackSide, EventDispatcher, MOUSE, Quaternion, Spherical, Clock } from 'three'; | ||
state.toolTipElem.style.top = "".concat(state.pointerPos.y, "px"); | ||
state.toolTipElem.style.left = "".concat(state.pointerPos.x, "px"); | ||
state.toolTipElem.style.transform = "translate(-".concat(state.pointerPos.x / state.width * 100, "%, 21px)"); // adjust horizontal position to not exceed canvas boundaries | ||
state.toolTipElem.style.left = "".concat(state.pointerPos.x, "px"); // adjust horizontal position to not exceed canvas boundaries | ||
state.toolTipElem.style.transform = "translate(-".concat(state.pointerPos.x / state.width * 100, "%, ").concat( // flip to above if near bottom | ||
state.height - state.pointerPos.y < 100 ? 'calc(-100% - 8px)' : '21px', ")"); | ||
} | ||
@@ -501,0 +503,0 @@ |
{ | ||
"name": "three-render-objects", | ||
"version": "1.26.8", | ||
"version": "1.27.0", | ||
"description": "Easy way to render ThreeJS objects with built-in interaction defaults", | ||
@@ -48,18 +48,18 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.8", | ||
"@babel/plugin-proposal-class-properties": "^7.16.7", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.17.3", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/core": "^7.18.2", | ||
"@babel/plugin-proposal-class-properties": "^7.17.12", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.18.0", | ||
"@babel/preset-env": "^7.18.2", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"postcss": "^8.4.12", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"postcss": "^8.4.14", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.70.1", | ||
"rollup-plugin-dts": "^4.2.0", | ||
"rollup": "^2.75.6", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"three": "^0.139.0", | ||
"typescript": "^4.6.3" | ||
"three": "^0.141.0", | ||
"typescript": "^4.7.3" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
731336
5455