three-render-objects
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -81,6 +81,12 @@ 'use strict'; | ||
triggerUpdate: false }, | ||
enablePointerInteraction: { default: true, onChange: function onChange(_, state) { | ||
enablePointerInteraction: { | ||
default: true, | ||
onChange: function onChange(_, state) { | ||
// Reset hover state | ||
state.hoverObj = null; | ||
if (state.toolTipElem) state.toolTipElem.innerHTML = ''; | ||
}, | ||
triggerUpdate: false }, | ||
triggerUpdate: false | ||
}, | ||
lineHoverPrecision: { default: 1, triggerUpdate: false }, | ||
@@ -87,0 +93,0 @@ hoverOrderComparator: { default: function _default() { |
@@ -77,6 +77,12 @@ import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, Vector2, Vector3, Color } from 'three'; | ||
triggerUpdate: false }, | ||
enablePointerInteraction: { default: true, onChange: function onChange(_, state) { | ||
enablePointerInteraction: { | ||
default: true, | ||
onChange: function onChange(_, state) { | ||
// Reset hover state | ||
state.hoverObj = null; | ||
if (state.toolTipElem) state.toolTipElem.innerHTML = ''; | ||
}, | ||
triggerUpdate: false }, | ||
triggerUpdate: false | ||
}, | ||
lineHoverPrecision: { default: 1, triggerUpdate: false }, | ||
@@ -83,0 +89,0 @@ hoverOrderComparator: { default: function _default() { |
{ | ||
"name": "three-render-objects", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Easy way to render ThreeJS objects with built-in interaction defaults", | ||
@@ -54,4 +54,4 @@ "unpkg": "dist/three-render-objects.min.js", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.59.4", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup": "^0.63.2", | ||
"rollup-plugin-babel": "^3.0.7", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
@@ -61,4 +61,4 @@ "rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-watch": "^4.3.1", | ||
"uglify-js": "^3.3.28" | ||
"uglify-js": "^3.4.5" | ||
} | ||
} |
@@ -51,3 +51,11 @@ import { | ||
}, triggerUpdate: false }, | ||
enablePointerInteraction: { default: true, onChange(_, state) { state.hoverObj = null; }, triggerUpdate: false }, | ||
enablePointerInteraction: { | ||
default: true, | ||
onChange(_, state) { | ||
// Reset hover state | ||
state.hoverObj = null; | ||
if (state.toolTipElem) state.toolTipElem.innerHTML = ''; | ||
}, | ||
triggerUpdate: false | ||
}, | ||
lineHoverPrecision: { default: 1, triggerUpdate: false }, | ||
@@ -54,0 +62,0 @@ hoverOrderComparator: { default: () => -1, triggerUpdate: false }, // keep existing order by default |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
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
1754349
10207