d3plus-common
Version:
Common functions and methods used across D3plus modules.
13 lines (12 loc) • 478 B
JavaScript
/**
@function prefix
@desc Returns the appropriate CSS vendor prefix, given the current browser.
*/
export default function() {
if ("-webkit-transform" in document.body.style) { return "-webkit-"; }
else if ("-moz-transform" in document.body.style) { return "-moz-"; }
else if ("-ms-transform" in document.body.style) { return "-ms-"; }
else if ("-o-transform" in document.body.style) { return "-o-"; }
else { return ""; }
}
//# sourceMappingURL=prefix.js.map