Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
export declare function depx(value: string | number): number; | ||
export declare function pxfy(value: string): string; | ||
export declare function pxfy(value: string | number): string; |
@@ -11,3 +11,7 @@ export function depx(value) { | ||
export function pxfy(value) { | ||
if (typeof value === 'number') | ||
return `${value}px`; | ||
if (value.endsWith('px')) | ||
return value; | ||
return `${value}px`; | ||
} |
export { nextFrameOnce } from './animation/next-frame-once'; | ||
export { nextFrame } from './animation/next-frame'; | ||
export { getScrollParent } from './dom/get-scroll-parent'; | ||
export { unwrapElement } from './dom/unwrap-element'; | ||
export { depx, pxfy } from './css/index'; | ||
export { changeColor, rgba, composite } from './color'; | ||
export { createId } from './misc/index'; |
export { nextFrameOnce } from './animation/next-frame-once'; | ||
export { nextFrame } from './animation/next-frame'; | ||
export { getScrollParent } from './dom/get-scroll-parent'; | ||
export { unwrapElement } from './dom/unwrap-element'; | ||
export { depx, pxfy } from './css/index'; | ||
export { changeColor, rgba, composite } from './color'; | ||
export { createId } from './misc/index'; |
export declare function depx(value: string | number): number; | ||
export declare function pxfy(value: string): string; | ||
export declare function pxfy(value: string | number): string; |
@@ -15,4 +15,8 @@ "use strict"; | ||
function pxfy(value) { | ||
if (typeof value === 'number') | ||
return `${value}px`; | ||
if (value.endsWith('px')) | ||
return value; | ||
return `${value}px`; | ||
} | ||
exports.pxfy = pxfy; |
export { nextFrameOnce } from './animation/next-frame-once'; | ||
export { nextFrame } from './animation/next-frame'; | ||
export { getScrollParent } from './dom/get-scroll-parent'; | ||
export { unwrapElement } from './dom/unwrap-element'; | ||
export { depx, pxfy } from './css/index'; | ||
export { changeColor, rgba, composite } from './color'; | ||
export { createId } from './misc/index'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.composite = exports.rgba = exports.changeColor = exports.pxfy = exports.depx = exports.getScrollParent = exports.nextFrame = exports.nextFrameOnce = void 0; | ||
exports.createId = exports.composite = exports.rgba = exports.changeColor = exports.pxfy = exports.depx = exports.unwrapElement = exports.getScrollParent = exports.nextFrame = exports.nextFrameOnce = void 0; | ||
var next_frame_once_1 = require("./animation/next-frame-once"); | ||
@@ -10,2 +10,4 @@ Object.defineProperty(exports, "nextFrameOnce", { enumerable: true, get: function () { return next_frame_once_1.nextFrameOnce; } }); | ||
Object.defineProperty(exports, "getScrollParent", { enumerable: true, get: function () { return get_scroll_parent_1.getScrollParent; } }); | ||
var unwrap_element_1 = require("./dom/unwrap-element"); | ||
Object.defineProperty(exports, "unwrapElement", { enumerable: true, get: function () { return unwrap_element_1.unwrapElement; } }); | ||
var index_1 = require("./css/index"); | ||
@@ -18,1 +20,3 @@ Object.defineProperty(exports, "depx", { enumerable: true, get: function () { return index_1.depx; } }); | ||
Object.defineProperty(exports, "composite", { enumerable: true, get: function () { return color_1.composite; } }); | ||
var index_2 = require("./misc/index"); | ||
Object.defineProperty(exports, "createId", { enumerable: true, get: function () { return index_2.createId; } }); |
{ | ||
"name": "seemly", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"description": "Utils for user interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
17650
37
468