sbweb-scalegorithm
Advanced tools
Comparing version 0.1.4 to 0.1.5
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124790
22