Rendering hints that can be applied to WebGL2IconNodeStyle, WebGL2DefaultLabelStyle, and WebGL2IconLabelStyle to define how the labels and text will be rendered when zoomed in.
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2TextureRendering
Constants
Uses a cut-off value for interpolated alpha values to obtain sharp edges at icon boundaries when zoomed in.
Remarks
This works similarly to an approach known as "signed distance fields" in text rendering. This yields sharp edges and works great for vector shapes that have sharp alpha transparent edges. It is mostly recommended for high-frequent alpha images and does not work well for gradients or photos.
Static Methods
Converts the argument to WebGL2TextureRendering.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - WebGL2TextureRendering
- The value to convert to WebGL2TextureRendering.
Returns
- ↪WebGL2TextureRendering
- Either
value
if it is already a WebGL2TextureRendering or an appropriate converted value.