index-scrollbar
Advanced tools
Comparing version 0.0.14-beta.1 to 0.0.14-beta.2
@@ -173,18 +173,18 @@ 'use strict'; | ||
} | ||
//insert dots between letters | ||
alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
if (this.alphabet.length % 2 === 0) | ||
// //insert dots between letters | ||
// alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
// alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
if (this.alphabet.length % 2 === 0 && this.overflowDivider) | ||
alphabet1.push(this.overflowDivider); | ||
@@ -191,0 +191,0 @@ newAlphabet = alphabet1.concat(alphabet2.reverse()); |
@@ -163,18 +163,18 @@ import { Component, Host, h, Prop, Event, Element, State, Watch } from '@stencil/core'; | ||
} | ||
//insert dots between letters | ||
alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
if (this.alphabet.length % 2 === 0) | ||
// //insert dots between letters | ||
// alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
// alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
if (this.alphabet.length % 2 === 0 && this.overflowDivider) | ||
alphabet1.push(this.overflowDivider); | ||
@@ -181,0 +181,0 @@ newAlphabet = alphabet1.concat(alphabet2.reverse()); |
@@ -171,18 +171,18 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
} | ||
//insert dots between letters | ||
alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
if (this.alphabet.length % 2 === 0) | ||
// //insert dots between letters | ||
// alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
// alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
if (this.alphabet.length % 2 === 0 && this.overflowDivider) | ||
alphabet1.push(this.overflowDivider); | ||
@@ -189,0 +189,0 @@ newAlphabet = alphabet1.concat(alphabet2.reverse()); |
@@ -169,18 +169,18 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5f889f85.js'; | ||
} | ||
//insert dots between letters | ||
alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
if (i > 0) { | ||
prev.push(this.overflowDivider); | ||
} | ||
prev.push(curr); | ||
return prev; | ||
}, []); | ||
if (this.alphabet.length % 2 === 0) | ||
// //insert dots between letters | ||
// alphabet1 = alphabet1.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
// alphabet2 = alphabet2.reduce((prev, curr, i) => { | ||
// if (i > 0) { | ||
// if (this.overflowDivider) prev.push(this.overflowDivider); | ||
// } | ||
// prev.push(curr); | ||
// return prev; | ||
// }, []); | ||
if (this.alphabet.length % 2 === 0 && this.overflowDivider) | ||
alphabet1.push(this.overflowDivider); | ||
@@ -187,0 +187,0 @@ newAlphabet = alphabet1.concat(alphabet2.reverse()); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as i}from"./p-d4d31fe4.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-e97f0891",[[1,"index-scrollbar",{alphabet:[16],overflowDivider:[1,"overflow-divider"],validLetters:[16],disableInvalidLetters:[4,"disable-invalid-letters"],prioritizeHidingInvalidLetters:[4,"prioritize-hiding-invalid-letters"],letterMagnification:[4,"letter-magnification"],magnifyDividers:[4,"magnify-dividers"],magnificationMultiplier:[2,"magnification-multiplier"],magnificationCurve:[16],exactX:[4,"exact-x"],navigateOnHover:[4,"navigate-on-hover"],letterSpacing:[8,"letter-spacing"],offsetSizeCheckInterval:[2,"offset-size-check-interval"],_isComponentActive:[32],visibleLetters:[32],rendering:[32],_lastEmittedLetter:[32],magIndex:[32],_isInBounds:[32],visualLetterIndex:[32],letterSelected:[32]}]]]],e))); | ||
import{p as e,b as i}from"./p-d4d31fe4.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-c5c8bb9d",[[1,"index-scrollbar",{alphabet:[16],overflowDivider:[1,"overflow-divider"],validLetters:[16],disableInvalidLetters:[4,"disable-invalid-letters"],prioritizeHidingInvalidLetters:[4,"prioritize-hiding-invalid-letters"],letterMagnification:[4,"letter-magnification"],magnifyDividers:[4,"magnify-dividers"],magnificationMultiplier:[2,"magnification-multiplier"],magnificationCurve:[16],exactX:[4,"exact-x"],navigateOnHover:[4,"navigate-on-hover"],letterSpacing:[8,"letter-spacing"],offsetSizeCheckInterval:[2,"offset-size-check-interval"],_isComponentActive:[32],visibleLetters:[32],rendering:[32],_lastEmittedLetter:[32],magIndex:[32],_isInBounds:[32],visualLetterIndex:[32],letterSelected:[32]}]]]],e))); |
{ | ||
"name": "index-scrollbar", | ||
"version": "0.0.14-beta.1", | ||
"version": "0.0.14-beta.2", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
402495
2