Comparing version 1.2.12 to 1.2.13
@@ -5,2 +5,8 @@ # Changelog | ||
## [1.2.13] 2018-04-06 | ||
### Fixed | ||
- Was exporting the wrong `createStyler`! Classic. | ||
## [1.2.12] 2018-04-04 | ||
@@ -7,0 +13,0 @@ |
@@ -36,5 +36,5 @@ "use strict"; | ||
}); | ||
exports.default = (function (element, props) { | ||
exports.default = function (element, props) { | ||
return cssStyler(__assign({ element: element, enableHardwareAcceleration: true, preparseOutput: true }, props)); | ||
}); | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
}; | ||
exports.default = (function (key, asDashCase) { | ||
exports.default = function (key, asDashCase) { | ||
if (asDashCase === void 0) { asDashCase = false; } | ||
@@ -30,3 +30,3 @@ var cache = asDashCase ? dashCache : camelCache; | ||
return cache.get(key) || key; | ||
}); | ||
}; | ||
//# sourceMappingURL=prefixer.js.map |
@@ -44,3 +44,3 @@ "use strict"; | ||
}; | ||
exports.default = (function (key) { return valueTypes[key]; }); | ||
exports.default = function (key) { return valueTypes[key]; }; | ||
//# sourceMappingURL=value-types.js.map |
import buildStyles from './css/render'; | ||
import createStyler from './styler'; | ||
import { Styler, Props } from './styler/types'; | ||
declare const createStyler: (node: Element, props: Props) => Styler; | ||
export default function (nodeOrSelector: Element | string, props: Props): Styler; | ||
export { createStyler, Styler, buildStyles }; |
@@ -6,5 +6,7 @@ "use strict"; | ||
exports.buildStyles = render_1.default; | ||
var styler_1 = require("./styler"); | ||
exports.createStyler = styler_1.default; | ||
var svg_1 = require("./svg"); | ||
var cache = new WeakMap(); | ||
var createStyler = function (node, props) { | ||
var createDOMStyler = function (node, props) { | ||
var styler = (node instanceof SVGElement) ? svg_1.default(node) : css_1.default(node, props); | ||
@@ -14,4 +16,3 @@ cache.set(node, styler); | ||
}; | ||
exports.createStyler = createStyler; | ||
var getStyler = function (node, props) { return cache.has(node) ? cache.get(node) : createStyler(node, props); }; | ||
var getStyler = function (node, props) { return cache.has(node) ? cache.get(node) : createDOMStyler(node, props); }; | ||
function default_1(nodeOrSelector, props) { | ||
@@ -18,0 +19,0 @@ var node = (typeof nodeOrSelector === 'string') |
{ | ||
"name": "stylefire", | ||
"version": "1.2.12", | ||
"version": "1.2.13", | ||
"description": "Performant, simplified stylers for CSS, SVG, path and DOM scroll.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,5 +31,5 @@ "use strict"; | ||
}); | ||
exports.default = (function (element) { return element | ||
exports.default = function (element) { return element | ||
? domScrollStyler({ element: element }) | ||
: viewportScrollStyler(); }); | ||
: viewportScrollStyler(); }; | ||
//# sourceMappingURL=index.js.map |
import { Config, Props, Styler } from './types'; | ||
declare const createStyler: ({ onRead, onRender, aliasMap, useCache }: Config) => (props?: Props) => Styler; | ||
declare const createStyler: ({onRead, onRender, aliasMap, useCache}: Config) => (props?: Props) => Styler; | ||
export default createStyler; |
@@ -29,3 +29,3 @@ "use strict"; | ||
}); | ||
exports.default = (function (element) { | ||
exports.default = function (element) { | ||
var _a = element.getBBox(), x = _a.x, y = _a.y, width = _a.width, height = _a.height; | ||
@@ -42,3 +42,3 @@ var props = { | ||
return svgStyler(props); | ||
}); | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -14,3 +14,3 @@ "use strict"; | ||
}; | ||
exports.default = (function (key) { return valueTypes[key]; }); | ||
exports.default = function (key) { return valueTypes[key]; }; | ||
//# sourceMappingURL=value-types.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
563
60157