@webreact/webreact-components
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -252,3 +252,3 @@ 'use strict'; | ||
return function (t) { | ||
return (t === 0 || t === 1) ? t : | ||
return (t === 0 || t === 1) ? t : | ||
-a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p); | ||
@@ -269,5 +269,5 @@ } | ||
eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; }; | ||
eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : | ||
eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : | ||
1 - easeIn(a, b)(t * -2 + 2) / 2; }; }; | ||
eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : | ||
eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : | ||
(easeIn(a, b)(t * 2 - 1) + 1) / 2; }; }; | ||
@@ -529,3 +529,3 @@ }); | ||
return getDistance( | ||
{x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, | ||
{x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, | ||
{x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')} | ||
@@ -1402,6 +1402,6 @@ ); | ||
componentDidLoad() { | ||
this.children = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
this.accordions = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
} | ||
async closeChildren() { | ||
this.children.forEach(child => child.closeMe()); | ||
this.accordions.forEach(child => child.closeMe()); | ||
} | ||
@@ -1412,3 +1412,3 @@ accordionOpened(e) { | ||
} | ||
this.children.forEach(el => { | ||
this.accordions.forEach(el => { | ||
if (el !== e.target) { | ||
@@ -1415,0 +1415,0 @@ el.closeMe(); |
@@ -11,6 +11,6 @@ import { Component, Element, h, Host, Listen, Method, Prop } from '@stencil/core'; | ||
componentDidLoad() { | ||
this.children = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
this.accordions = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
} | ||
async closeChildren() { | ||
this.children.forEach(child => child.closeMe()); | ||
this.accordions.forEach(child => child.closeMe()); | ||
} | ||
@@ -21,3 +21,3 @@ accordionOpened(e) { | ||
} | ||
this.children.forEach(el => { | ||
this.accordions.forEach(el => { | ||
if (el !== e.target) { | ||
@@ -24,0 +24,0 @@ el.closeMe(); |
@@ -248,3 +248,3 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baad6299.js'; | ||
return function (t) { | ||
return (t === 0 || t === 1) ? t : | ||
return (t === 0 || t === 1) ? t : | ||
-a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p); | ||
@@ -265,5 +265,5 @@ } | ||
eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; }; | ||
eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : | ||
eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : | ||
1 - easeIn(a, b)(t * -2 + 2) / 2; }; }; | ||
eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : | ||
eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : | ||
(easeIn(a, b)(t * 2 - 1) + 1) / 2; }; }; | ||
@@ -525,3 +525,3 @@ }); | ||
return getDistance( | ||
{x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, | ||
{x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, | ||
{x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')} | ||
@@ -1398,6 +1398,6 @@ ); | ||
componentDidLoad() { | ||
this.children = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
this.accordions = Array.from(this.host.querySelectorAll('wr-accordion')); | ||
} | ||
async closeChildren() { | ||
this.children.forEach(child => child.closeMe()); | ||
this.accordions.forEach(child => child.closeMe()); | ||
} | ||
@@ -1408,3 +1408,3 @@ accordionOpened(e) { | ||
} | ||
this.children.forEach(el => { | ||
this.accordions.forEach(el => { | ||
if (el !== e.target) { | ||
@@ -1411,0 +1411,0 @@ el.closeMe(); |
{ | ||
"name": "@webreact/webreact-components", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"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
933010