Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protvista-utils

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protvista-utils

Collection of utilities for ProtVista components

  • 3.2.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
215
decreased by-24.83%
Maintainers
7
Weekly downloads
 
Created
Source

protvista-utils

This is a utility package that groups several classes and method that are used by other protvista elements.

Here is the description anf reference for the utilities expose in this package.

ColorScaleParser

Region

ScrollFilter

withMargin

It's a way to extend protvista components to include the logic related with dealing with a property margin that follows the shape:

{
  top: 0,
  bottom: 0,
  left: 0,
  right: 0,
}

The embedded logic takes care of exposing the following attributes in the webcomponent:

  • margintop
  • marginbottom
  • marginleft
  • marginright

The attributes are added to the observedAttributes of the element, so a change in the dom will trigger the attributeChangedCallback method.

The element is also extended to have getters and setters for properties with the same name.

The approach of this implementations is similar to Higher order components in React.

Keywords

FAQs

Package last updated on 24 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc