index-scrollbar
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -84,6 +84,5 @@ 'use strict'; | ||
} | ||
onOffsetSizeCheckIntervalChange(value) { | ||
onOffsetSizeCheckIntervalChange() { | ||
if (this._offsetSizeCheckIntervalTimer) | ||
clearInterval(this._offsetSizeCheckIntervalTimer); | ||
this.offsetSizeCheckInterval = value; | ||
this.offsetSizeCheckInterval && ((this._offsetSizeCheckIntervalTimer = setInterval(() => this.checkVisibleLetters())), this.offsetSizeCheckInterval); | ||
@@ -102,3 +101,2 @@ } | ||
this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseenter', () => this.focusEnd(), { passive: true }); | ||
setTimeout(() => { | ||
@@ -113,3 +111,3 @@ this.onAlphabetChange(this.alphabet); | ||
this.onLetterSpacingChange(this.letterSpacing); | ||
this.onOffsetSizeCheckIntervalChange(this.offsetSizeCheckInterval); | ||
this.onOffsetSizeCheckIntervalChange(); | ||
this.onExactXChange(); | ||
@@ -157,2 +155,7 @@ this.checkVisibleLetters(); | ||
letterSize = letterSize + letterSpacing; | ||
//Remove invalid letters (if set and necessary) | ||
if (this.prioritizeHidingInvalidLetters && !!this.validLetters && height / letterSize < newAlphabet.length) { | ||
newAlphabet = this.validLetters; | ||
} | ||
newAlphabet = 'asonteaontehanth'.split(''); | ||
//Check if there is enough free space for letters | ||
@@ -159,0 +162,0 @@ this._lettersShortened = height / letterSize < newAlphabet.length; |
@@ -74,6 +74,5 @@ import { Component, Host, h, Prop, Event, Element, State, Watch } from '@stencil/core'; | ||
} | ||
onOffsetSizeCheckIntervalChange(value) { | ||
onOffsetSizeCheckIntervalChange() { | ||
if (this._offsetSizeCheckIntervalTimer) | ||
clearInterval(this._offsetSizeCheckIntervalTimer); | ||
this.offsetSizeCheckInterval = value; | ||
this.offsetSizeCheckInterval && ((this._offsetSizeCheckIntervalTimer = setInterval(() => this.checkVisibleLetters())), this.offsetSizeCheckInterval); | ||
@@ -92,3 +91,2 @@ } | ||
this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseenter', () => this.focusEnd(), { passive: true }); | ||
setTimeout(() => { | ||
@@ -103,3 +101,3 @@ this.onAlphabetChange(this.alphabet); | ||
this.onLetterSpacingChange(this.letterSpacing); | ||
this.onOffsetSizeCheckIntervalChange(this.offsetSizeCheckInterval); | ||
this.onOffsetSizeCheckIntervalChange(); | ||
this.onExactXChange(); | ||
@@ -149,4 +147,5 @@ this.checkVisibleLetters(); | ||
if (this.prioritizeHidingInvalidLetters && !!this.validLetters && height / letterSize < newAlphabet.length) { | ||
// newAlphabet = this.validLetters; | ||
newAlphabet = this.validLetters; | ||
} | ||
newAlphabet = 'asonteaontehanth'.split(''); | ||
//Check if there is enough free space for letters | ||
@@ -153,0 +152,0 @@ this._lettersShortened = height / letterSize < newAlphabet.length; |
@@ -82,6 +82,5 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
} | ||
onOffsetSizeCheckIntervalChange(value) { | ||
onOffsetSizeCheckIntervalChange() { | ||
if (this._offsetSizeCheckIntervalTimer) | ||
clearInterval(this._offsetSizeCheckIntervalTimer); | ||
this.offsetSizeCheckInterval = value; | ||
this.offsetSizeCheckInterval && ((this._offsetSizeCheckIntervalTimer = setInterval(() => this.checkVisibleLetters())), this.offsetSizeCheckInterval); | ||
@@ -100,3 +99,2 @@ } | ||
this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseenter', () => this.focusEnd(), { passive: true }); | ||
setTimeout(() => { | ||
@@ -111,3 +109,3 @@ this.onAlphabetChange(this.alphabet); | ||
this.onLetterSpacingChange(this.letterSpacing); | ||
this.onOffsetSizeCheckIntervalChange(this.offsetSizeCheckInterval); | ||
this.onOffsetSizeCheckIntervalChange(); | ||
this.onExactXChange(); | ||
@@ -155,2 +153,7 @@ this.checkVisibleLetters(); | ||
letterSize = letterSize + letterSpacing; | ||
//Remove invalid letters (if set and necessary) | ||
if (this.prioritizeHidingInvalidLetters && !!this.validLetters && height / letterSize < newAlphabet.length) { | ||
newAlphabet = this.validLetters; | ||
} | ||
newAlphabet = 'asonteaontehanth'.split(''); | ||
//Check if there is enough free space for letters | ||
@@ -157,0 +160,0 @@ this._lettersShortened = height / letterSize < newAlphabet.length; |
@@ -80,6 +80,5 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5f889f85.js'; | ||
} | ||
onOffsetSizeCheckIntervalChange(value) { | ||
onOffsetSizeCheckIntervalChange() { | ||
if (this._offsetSizeCheckIntervalTimer) | ||
clearInterval(this._offsetSizeCheckIntervalTimer); | ||
this.offsetSizeCheckInterval = value; | ||
this.offsetSizeCheckInterval && ((this._offsetSizeCheckIntervalTimer = setInterval(() => this.checkVisibleLetters())), this.offsetSizeCheckInterval); | ||
@@ -98,3 +97,2 @@ } | ||
this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseenter', () => this.focusEnd(), { passive: true }); | ||
setTimeout(() => { | ||
@@ -109,3 +107,3 @@ this.onAlphabetChange(this.alphabet); | ||
this.onLetterSpacingChange(this.letterSpacing); | ||
this.onOffsetSizeCheckIntervalChange(this.offsetSizeCheckInterval); | ||
this.onOffsetSizeCheckIntervalChange(); | ||
this.onExactXChange(); | ||
@@ -153,2 +151,7 @@ this.checkVisibleLetters(); | ||
letterSize = letterSize + letterSpacing; | ||
//Remove invalid letters (if set and necessary) | ||
if (this.prioritizeHidingInvalidLetters && !!this.validLetters && height / letterSize < newAlphabet.length) { | ||
newAlphabet = this.validLetters; | ||
} | ||
newAlphabet = 'asonteaontehanth'.split(''); | ||
//Check if there is enough free space for letters | ||
@@ -155,0 +158,0 @@ this._lettersShortened = height / letterSize < newAlphabet.length; |
@@ -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-a83f50ac",[[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-085517c8",[[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))); |
@@ -26,3 +26,3 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
offsetSizeCheckInterval: number; | ||
onOffsetSizeCheckIntervalChange(value: number): void; | ||
onOffsetSizeCheckIntervalChange(): void; | ||
private _offsetSizeCheckIntervalTimer; | ||
@@ -29,0 +29,0 @@ letterChange: EventEmitter<string>; |
{ | ||
"name": "index-scrollbar", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"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
402533
6417