# @polar/lib-invisible-style

> 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

Latest version **3.0.0** (published 2025-02-04) · EUPL-1.2 license · 0 weekly downloads

## Install

```sh
npm install @polar/lib-invisible-style
pnpm add @polar/lib-invisible-style
yarn add @polar/lib-invisible-style
bun add @polar/lib-invisible-style
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-02-04 |
| First published | 2023-12-13 |
| Weekly downloads | 0 |
| License | EUPL-1.2 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Author | Dataport AöR |
| Maintainers | sende, dopenguin |
| Keywords | OpenLayers, ol, POLAR, lib, visiblity, filter |

## Links

- npm: https://www.npmjs.com/package/@polar/lib-invisible-style
- Repository: https://github.com/Dataport/polar
- Homepage: https://github.com/Dataport/polar#readme
- Issues: https://github.com/Dataport/polar/issues
- npm.io page: https://npm.io/package/@polar/lib-invisible-style

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2025-02-04
- 2.0.0 — 2024-11-25
- 1.1.0-alpha.1 — 2024-03-05
- 1.0.0 — 2023-12-13

## README

# 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)
```

---
_Source: https://npm.io/package/@polar/lib-invisible-style · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
