
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@ax-design/reveal-highlight
Advanced tools
Web component that implement Reveal Highlight of Axiom Design System.
React component that implements Reveal Highlight of Axiom Design System.
// with npm
npm install @ax-design/reveal-highlight
// with yarn
yarn add @ax-design/reveal-highlight
and import it:
//CommonJS
require('@ax-design/reveal-highlight').register();
//ESModule
import { register } from '@ax-design/reveal-highlight';
register();
To add a reveal effect on your web application, you need to wrap a ax-reveal
component with ax-reveal-provider
and ax-reveal-bound
.
ax-reveal-provider
will manage the global reveal style, and cache the rendered highlight bitmap for better performance (WIP).
ax-reveal-bound
will manage the rendering behavior of ax-reveal
components, while your mouse enters the boundary, the highlight components will get started to rendering, while your mouse leaves the boundary component, all highlight effect will disappear.
Here's an example:
<ax-reveal-provider>
<h1>Welcome to project Axiom!</h1>
<ax-reveal-bound>
<ax-reveal>
<button class="ax-reveal-button">Button 1</button>
</ax-reveal>
<ax-reveal>
<button class="ax-reveal-button">Button 2</button>
</ax-reveal>
</ax-reveal-bound>
<ax-reveal-provider>
reveal-highlight use custom properties to manage the style of highlights
Type: <color>
Default: rgb(0, 0, 0)
Description: The color of the reveal highlight.
Type: 'full' | 'half' | 'none'
Default: 'full'
Description: If full
provided, there'll be four sides of the element will have a light effect, if half
provided, only the top and bottom side will have a light effect, none
literally no border.
Type: <number>
Default: 1
Description: Border width in px
.
Type: 'relative' | 'absolute' | 'none'
Default: relative
Description: How the program calculating the radius of gradient, if relative
provided, gradient radius will be:
r(border) = min(width, height) * fillRadius
r(fill) = max(width, height) * fillRadius
If absolute
provided, gradient will be:
r(border) = fillRadius
r(fill) = illRadius
the unit is pixel.
If none
provided, nothing will happen, you won't need this option.
Type: <number>
Default: 1.5
Description: Radius of the highlight gradient.
Type: <boolean>
Default: true
Description: Control the behavior while pointer not in the reveal highlight element, if setted to false
, nothing will be rendered; if setted to true
, border will be rendered.
Type: <number>
Default: 2000
Description: The duration of the animation being played when the mouse is held down by the element.
Type: <number>
Default: 6
Description: The acceleration rate of the animation when the mouse is released.
FAQs
Web component that implement Reveal Highlight of Axiom Design System.
We found that @ax-design/reveal-highlight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.