feat(range): basic range component

This commit is contained in:
mhartington
2017-08-30 18:35:22 -04:00
parent e0a29db3bb
commit 663deb2694
7 changed files with 835 additions and 1 deletions

View File

@ -1,5 +1,9 @@
import { StencilElement } from '..';
export function clamp(min: number, n: number, max: number) {
return Math.max(min, Math.min(n, max));
}
export function isDef(v: any): boolean { return v !== undefined && v !== null; }
export function isUndef(v: any): boolean { return v === undefined || v === null; }
@ -171,4 +175,4 @@ export function isReady(element: HTMLElement) {
/** @hidden */
export function deepCopy(obj: any) {
return JSON.parse(JSON.stringify(obj));
}
}