Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wildpeaks/proto-tooltip
PROTO Tooltip
https://github.com/wildpeaks/proto-tooltip
vrml
Last synced: 23 days ago
JSON representation
PROTO Tooltip
- Host: GitHub
- URL: https://github.com/wildpeaks/proto-tooltip
- Owner: wildpeaks
- License: mit
- Created: 2017-11-28T14:18:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T10:26:25.000Z (about 7 years ago)
- Last Synced: 2024-11-06T03:11:47.564Z (2 months ago)
- Topics: vrml
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tooltip
VRML PROTO (based on `IndexedFaceSet`) that **generates a rounded rectangle with a tip** that visually links to an arbitrary 3D position.
The side where the tip is attached to the rectangle is **automatically deduced from the relative position** of the target.
EXTERNPROTO Tooltip [
exposedField SFVec3f center
exposedField SFVec3f tip
exposedField SFVec2f size
exposedField SFFloat radius
field SFBool solid
] "proto.Tooltip.wrl#Tooltip"-------------------------------------------------------------------------------
## Property `center`
**3D position of the center** of the rounded rectangle.
Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `0 0 0`-------------------------------------------------------------------------------
## Property `tip`
**3D position of the tip** of the triangle attached outside the rounded rectangle.
Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `0 0 0`-------------------------------------------------------------------------------
## Property `size`
**Width & height** of the inner area of the rounded rectangle.
You could use [MonospaceText.bboxSize](https://github.com/wildpeaks/proto-monospacetext#event-bboxsize)
to fit a tooltip around an arbitrary text.Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `2 2`-------------------------------------------------------------------------------
## Property `radius`
**Radius** of the rounded border of the rectangle.
Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `1`-------------------------------------------------------------------------------
## Property `solid`
Like `IndexedFaceSet.solid`, renders both sides (`FALSE`) or only the front side (`TRUE`).
Definition:
- Field Type: `field`
- Data Type: `SFBool`
- Default Value: `TRUE`-------------------------------------------------------------------------------