UNPKG

@polar/lib-invisible-style

Version:

Provides semantic styling for elements to remove visiblity from them in a detectable fashion that adds programmatic semantics, i.e. whether an element should be considered as visible or not to the user and should hence appear (or be considered) in user in

18 lines (12 loc) 496 B
# invisibleStyle Exports a style for vector layer features that results in invisibility. Plugins that work with feature visibility ought to use this package to keep them interoperable. ```js import { InvisibleStyle, isInvisible, isVisible } from '@polar/lib-invisible-style' // making feature invisible feature.setStyle(InvisibleStyle) // making feature visible feature.setStyle(undefined) // checking if a feature is (in)visible isInvisible(feature) // true or false isVisible(feature) ```