index-scrollbar
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -14,4 +14,2 @@ 'use strict'; | ||
this.endTouch = index.createEvent(this, "endTouch", 7); | ||
this.height1 = index.createEvent(this, "height1", 7); | ||
this.height2 = index.createEvent(this, "height2", 7); | ||
this.letterMagnification = true; | ||
@@ -44,8 +42,11 @@ this.exactX = false; | ||
let height = (_a = this.el.shadowRoot.querySelector('.container')) === null || _a === void 0 ? void 0 : _a.clientHeight; | ||
this.height1.emit(height); | ||
if (height && height !== this.height) { | ||
this.height2.emit(height); | ||
if (height !== this.height) { | ||
this.height = height; | ||
this.onResize(); | ||
this.rendering = false; | ||
if (height) { | ||
this.onResize(); | ||
this.rendering = false; | ||
} | ||
else { | ||
this.rendering = true; | ||
} | ||
} | ||
@@ -52,0 +53,0 @@ }, 100); |
@@ -31,8 +31,11 @@ import { Component, Host, h, Prop, Event, Element, State } from '@stencil/core'; | ||
let height = (_a = this.el.shadowRoot.querySelector('.container')) === null || _a === void 0 ? void 0 : _a.clientHeight; | ||
this.height1.emit(height); | ||
if (height && height !== this.height) { | ||
this.height2.emit(height); | ||
if (height !== this.height) { | ||
this.height = height; | ||
this.onResize(); | ||
this.rendering = false; | ||
if (height) { | ||
this.onResize(); | ||
this.rendering = false; | ||
} | ||
else { | ||
this.rendering = true; | ||
} | ||
} | ||
@@ -406,34 +409,4 @@ }, 100); | ||
} | ||
}, { | ||
"method": "height1", | ||
"name": "height1", | ||
"bubbles": true, | ||
"cancelable": true, | ||
"composed": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"complexType": { | ||
"original": "number", | ||
"resolved": "number", | ||
"references": {} | ||
} | ||
}, { | ||
"method": "height2", | ||
"name": "height2", | ||
"bubbles": true, | ||
"cancelable": true, | ||
"composed": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"complexType": { | ||
"original": "number", | ||
"resolved": "number", | ||
"references": {} | ||
} | ||
}]; } | ||
static get elementRef() { return "el"; } | ||
} |
@@ -12,4 +12,2 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
this.endTouch = createEvent(this, "endTouch", 7); | ||
this.height1 = createEvent(this, "height1", 7); | ||
this.height2 = createEvent(this, "height2", 7); | ||
this.letterMagnification = true; | ||
@@ -42,8 +40,11 @@ this.exactX = false; | ||
let height = (_a = this.el.shadowRoot.querySelector('.container')) === null || _a === void 0 ? void 0 : _a.clientHeight; | ||
this.height1.emit(height); | ||
if (height && height !== this.height) { | ||
this.height2.emit(height); | ||
if (height !== this.height) { | ||
this.height = height; | ||
this.onResize(); | ||
this.rendering = false; | ||
if (height) { | ||
this.onResize(); | ||
this.rendering = false; | ||
} | ||
else { | ||
this.rendering = true; | ||
} | ||
} | ||
@@ -50,0 +51,0 @@ }, 100); |
@@ -10,4 +10,2 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b388e836.js'; | ||
this.endTouch = createEvent(this, "endTouch", 7); | ||
this.height1 = createEvent(this, "height1", 7); | ||
this.height2 = createEvent(this, "height2", 7); | ||
this.letterMagnification = true; | ||
@@ -40,8 +38,11 @@ this.exactX = false; | ||
let height = (_a = this.el.shadowRoot.querySelector('.container')) === null || _a === void 0 ? void 0 : _a.clientHeight; | ||
this.height1.emit(height); | ||
if (height && height !== this.height) { | ||
this.height2.emit(height); | ||
if (height !== this.height) { | ||
this.height = height; | ||
this.onResize(); | ||
this.rendering = false; | ||
if (height) { | ||
this.onResize(); | ||
this.rendering = false; | ||
} | ||
else { | ||
this.rendering = true; | ||
} | ||
} | ||
@@ -48,0 +49,0 @@ }, 100); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as i}from"./p-57af5440.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-31849dfd",[[1,"index-scrollbar",{letterMagnification:[4,"letter-magnification"],exactX:[4,"exact-x"],fontSize:[2,"font-size"],magnificationSize:[2,"magnification-size"],alphabet:[16],validLetters:[16],navigateOnHover:[4,"navigate-on-hover"],visibleLetters:[32],letterIndex:[32],active:[32],rendering:[32]}]]]],e))); | ||
import{p as e,b as i}from"./p-57af5440.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-0cce4bf2",[[1,"index-scrollbar",{letterMagnification:[4,"letter-magnification"],exactX:[4,"exact-x"],fontSize:[2,"font-size"],magnificationSize:[2,"magnification-size"],alphabet:[16],validLetters:[16],navigateOnHover:[4,"navigate-on-hover"],visibleLetters:[32],letterIndex:[32],active:[32],rendering:[32]}]]]],e))); |
@@ -39,4 +39,2 @@ /* eslint-disable */ | ||
"onEndTouch"?: (event: CustomEvent<void>) => void; | ||
"onHeight1"?: (event: CustomEvent<number>) => void; | ||
"onHeight2"?: (event: CustomEvent<number>) => void; | ||
"onLetterChange"?: (event: CustomEvent<string>) => void; | ||
@@ -43,0 +41,0 @@ "validLetters"?: Array<string>; |
@@ -22,4 +22,2 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
connectedCallback(): void; | ||
height1: EventEmitter<number>; | ||
height2: EventEmitter<number>; | ||
componentDidLoad(): void; | ||
@@ -26,0 +24,0 @@ disconnectedCallback(): void; |
{ | ||
"name": "index-scrollbar", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"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
358537
5872