three-render-objects
Advanced tools
Comparing version 1.33.2 to 1.34.0
@@ -70,4 +70,4 @@ import { WebGLRendererParameters, Renderer, Object3D, Light, WebGLRenderer, Scene, Camera, Intersection } from 'three'; | ||
lineHoverPrecision(precision: number): ChainableInstance; | ||
tooltipContent(): Obj3DAccessor<string>; | ||
tooltipContent(contentAccessor: Obj3DAccessor<string>): ChainableInstance; | ||
tooltipContent(): Obj3DAccessor<string | HTMLElement>; | ||
tooltipContent(contentAccessor: Obj3DAccessor<string | HTMLElement>): ChainableInstance; | ||
enablePointerInteraction(): boolean; | ||
@@ -74,0 +74,0 @@ enablePointerInteraction(enable: boolean): ChainableInstance; |
{ | ||
"name": "three-render-objects", | ||
"version": "1.33.2", | ||
"version": "1.34.0", | ||
"description": "Easy way to render ThreeJS objects with built-in interaction defaults", | ||
@@ -50,3 +50,3 @@ "license": "MIT", | ||
"accessor-fn": "1", | ||
"float-tooltip": "1", | ||
"float-tooltip": "^1.5", | ||
"kapsule": "^1.16", | ||
@@ -53,0 +53,0 @@ "polished": "4" |
@@ -89,3 +89,3 @@ three-render-objects | ||
| <b>lineHoverPrecision</b>([<i>int</i>]) | Getter/setter for the precision to use when detecting hover events over [Line](https://threejs.org/docs/#api/objects/Line) objects. | 1 | | ||
| <b>tooltipContent</b>([<i>str</i> or <i>fn</i>]) | Object accessor function or attribute for label (shown in tooltip). Supports plain text or HTML content. || | ||
| <b>tooltipContent</b>([<i>str</i> or <i>fn</i>]) | Object accessor function or attribute for label (shown in tooltip). Supports plain text, HTML string content or an [HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement). || | ||
| <b>enablePointerInteraction([<i>boolean</i>]) | Getter/setter for whether to enable the mouse tracking events. This activates an internal tracker of the canvas mouse position and enables the functionality of object hover/click and tooltip labels, at the cost of performance. If you're looking for maximum gain in your render performance it's recommended to switch off this property. | `true` | | ||
@@ -92,0 +92,0 @@ | <b>hoverDuringDrag([<i>boolean</i>]) | Getter/setter for whether to trigger hover events while using the controls via pointer dragging.| `false` | |
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
7067527
56538
+ Addedthree@0.172.0(transitive)
- Removedthree@0.173.0(transitive)
Updatedfloat-tooltip@^1.5