Socket
Socket
Sign inDemoInstall

scalable

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    scalable

Makes the UI elements scalable to fit inside the container area.


Version published
Weekly downloads
30
decreased by-23.08%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Scalable

Makes the UI elements scalable to fit inside the container area.

Demo

Live examples

Demo

Install

npm install scalable --save

Usage

var scalable = new Scalable(containerEl, options);

Options

  • align: left | center | right Horizontal alignment of an element. default: left
  • verticalAlign: top | center | bottom Vertical alignment of an element. default: top
  • containerHeight: fixed | auto Behaviorur of container height property default: fixed
    • fixed - The element fits inside the container.
    • auto - Enlargement of the element increases the height of the container.
  • minWidth: Minimum width of an element.
  • maxWidth: Maximum width of an element.
  • minScale: Minimum scale of an element.
  • maxScale: Maximum width of an element.

FAQs

Last updated on 22 Mar 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc