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

sbweb-scalegorithm

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sbweb-scalegorithm - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

build/scripts/scalegorithm.js
"use strict";
/**
* Scalegorithm calculates how to property scale a child element within a parent when conventional CSS options fail.
* Scalegorithm calculates how to properly scale a child element within a parent when conventional CSS options fail.
* Useful for image scaling and cross-domain iframe situations.

@@ -6,0 +6,0 @@ * @copyright S. Derdeyn 2018

"use strict";
/**
* Scalegorithm calculates how to property scale a child element within a parent when conventional CSS options fail.
* Scalegorithm calculates how to properly scale a child element within a parent when conventional CSS options fail.
* Useful for image scaling and cross-domain iframe situations.

@@ -5,0 +5,0 @@ * @copyright S. Derdeyn 2018

{
"name": "sbweb-scalegorithm",
"version": "0.1.4",
"version": "0.1.5",
"author": "S. Derdeyn <sigged@users.noreply.github.com>",
"license": "MIT",
"description": "Scalegorithm calculates how to property scale a child element within a parent when conventional CSS options fail.",
"description": "Scalegorithm calculates how to properly scale a child element within a parent when conventional CSS options fail.",
"homepage": "https://github.com/sigged/sbweb-scalegorithm",

@@ -8,0 +8,0 @@ "bugs": "https://github.com/sigged/sbweb-scalegorithm/issues",

# Scalegorithm #
Scalegorithm calculates how to property scale a child element within a parent when conventional CSS options fail.
Scalegorithm calculates how to properly scale a child element within a parent when conventional CSS options fail.
This is useful for image scaling and cross-domain iframe situations.

@@ -12,6 +12,8 @@

Instead of directly applying the scale to DOM elements, you may also use the `calc()` function to calculate numerical results.
## Scale math ##
## Example #
Instead of directly manipulating DOM elements using `scaleChild()`, you may also use the `calc()` function to calculate numerical results.
## Example ##
Check https://codepen.io/anon/pen/qQYzOY for an example.

@@ -18,0 +20,0 @@

/**
* Scalegorithm calculates how to property scale a child element within a parent when conventional CSS options fail.
* Scalegorithm calculates how to properly scale a child element within a parent when conventional CSS options fail.
* Useful for image scaling and cross-domain iframe situations.

@@ -4,0 +4,0 @@ * @copyright S. Derdeyn 2018

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