Closed grumpyinca closed 1 month ago
Proof of concept code has been developed and saved into the branch.
See #898.
I have attached a collection of trial images for compression spring variable name tooltips. The set is nowhere near complete. It is just one more step in the discussion. I am thinking that for rendered geometry we want to go larger than 64 pixels wide.
Tooltip_VarNameImagesDraft.zip
See below for updated prototype / proposed compression spring tooltip images. See the edit history of this comment for even older versions.
Prototype / proposed extension spring tooltip images. All 160 pixels wide by varying heights.
Ext_Tooltip_VarNameImages_160.zip
See below for updated extension spring tooltip images. See the edit history of this comment for even older versions.
To create Tooltip with HTML content you need this change in NameValueUnitsRowIndependentVariable.jsx using dangerouslySetInnerHTML as follows:
<OverlayTrigger placement="top" overlay={this.props.element.tooltip !== undefined && <Tooltip><div dangerouslySetInnerHTML={{__html: this.props.element.tooltip}}></div></Tooltip>}>
<span>{this.props.element.name}</span>
</OverlayTrigger>
This entry is duplicated in a docs/design entry centralizing multiple guidelines.
Prototype / proposed torsion spring tooltip images. All 160 pixels wide by varying heights. Tor_Tooltip_VarNameImages_160.zip
See below for updated prototype / proposed torsion spring tooltip images. See the edit history of this comment for even older versions.
Compression: VarNameTooltipImages.zip
Extension: VarNameTooltipImages.zip
Torsion: VarNameTooltipImages.zip
Compression: VarNameTooltipImages_C.zip
Extension: VarNameTooltipImages_E.zip
Torsion: VarNameTooltipImages_T.zip
Compression: VarNameTooltipImages_C.zip
Extension: VarNameTooltipImages_E.zip
Torsion: VarNameTooltipImages_T.zip
Piston-Cylinder: VarNameTooltipImages_PCyl.zip
Rectangular Solid: VarNameTooltipImages_Solid.zip
Piston-Cylinder: VarNameTooltipImages_PCyl.zip
I sent Compression Spring zip file to Katie. If she has time she might try to create one (and only one) into some"formal" art. We shall see...
Compression: VarNameTooltipImages_C.zip
Extension: VarNameTooltipImages_E.zip
Torsion: VarNameTooltipImages_T.zip
Piston Cylinder: VarNameTooltipImages_PCyl.zip
Merged to master, pushed to remote, closing.
Note: The set of tooltip images here is not complete. There are a few cases, (for example: Mean_Dia, extension spring L_1, L_2 & Extended_End_ID and torsion spring L_1, L_2 & End_Angle_Free) that could be added. This will be handled as part of a separate issue. See #925.