StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
.. | ||
test | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
browser.js | 4 years ago | |
index.js | 4 years ago | |
package.json | 4 years ago |
README.md
to-px
Get the scale factor to convert any CSS unit to px
(logical pixel units).
Example
var toPX = require('to-px')
console.log(toPX('1em'))
console.log(toPX('.23vh'))
console.log(toPX('in'))
Install
Note that this module only works within the DOM.
npm i to-px
API
var scaleFactor = require('to-px')(unit[, element])
Computes the number of pixels in the unit
string.
unit
is a CSS unit type or a number followed by CSS unit, egvh
or2in
element
is an optional element in which the unit is computed (default isdocument.body
)
Returns The number of pixels in the unit
Note Conversions for %
are not supported since they are context dependent.
License
(c) 2015 Mikola Lysenko. MIT License