aptechka 0.4.31 → 0.4.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/lib/Damped-BJgyFENo.js +258 -0
  2. package/lib/Damped-CbWlWAbx.cjs +1 -0
  3. package/lib/animation/Animation.d.ts +42 -7
  4. package/lib/animation/AnimationLink.d.ts +13 -0
  5. package/lib/animation/Damped.d.ts +23 -28
  6. package/lib/animation/Tweened.d.ts +7 -19
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.d.ts +2 -1
  9. package/lib/animation/index.js +43 -61
  10. package/lib/canvas/index.cjs +1 -1
  11. package/lib/canvas/index.d.ts +1 -1
  12. package/lib/canvas/index.js +35 -35
  13. package/lib/class-linked-status/index.cjs +1 -1
  14. package/lib/class-linked-status/index.d.ts +3 -1
  15. package/lib/class-linked-status/index.js +36 -37
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +64 -64
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +5 -1
  20. package/lib/css-property/index.js +35 -31
  21. package/lib/en3/index.cjs +7 -7
  22. package/lib/en3/index.d.ts +0 -1
  23. package/lib/en3/index.js +268 -281
  24. package/lib/intersector/index.cjs +1 -1
  25. package/lib/intersector/index.js +8 -8
  26. package/lib/ladder/index.cjs +1 -1
  27. package/lib/ladder/index.d.ts +12 -6
  28. package/lib/ladder/index.js +119 -114
  29. package/lib/order/index.cjs +1 -1
  30. package/lib/order/index.d.ts +4 -3
  31. package/lib/order/index.js +1 -1
  32. package/lib/pointer/index.cjs +1 -1
  33. package/lib/pointer/index.js +2 -2
  34. package/lib/scroll/ScrollElement.d.ts +1 -3
  35. package/lib/scroll/ScrollSegmentElement.d.ts +6 -11
  36. package/lib/scroll/index.cjs +1 -1
  37. package/lib/scroll/index.d.ts +1 -1
  38. package/lib/scroll/index.js +497 -500
  39. package/lib/sequence/index.cjs +1 -1
  40. package/lib/sequence/index.d.ts +4 -2
  41. package/lib/sequence/index.js +129 -114
  42. package/lib/source/SourceElement.d.ts +14 -7
  43. package/lib/source/index.cjs +2 -2
  44. package/lib/source/index.d.ts +2 -2
  45. package/lib/source/index.js +66 -56
  46. package/lib/theme/index.cjs +1 -1
  47. package/lib/theme/index.d.ts +15 -0
  48. package/lib/theme/index.js +9 -6
  49. package/lib/ticker/index.cjs +1 -1
  50. package/lib/ticker/index.d.ts +3 -2
  51. package/lib/ticker/index.js +81 -71
  52. package/lib/video/index.cjs +1 -1
  53. package/lib/video/index.js +10 -10
  54. package/package.json +1 -1
  55. package/lib/Damped-B0G_t-pw.cjs +0 -1
  56. package/lib/Damped-DpaKIZqv.js +0 -150
  57. package/lib/en3/instances/en3LazyLoader.d.ts +0 -8
@@ -1 +1 @@
1
- "use strict";var y=(n,t,r)=>{if(!t.has(n))throw TypeError("Cannot "+r)};var s=(n,t,r)=>(y(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,r)},f=(n,t,r,e)=>(y(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback===t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const g=new m;exports.Intersector=m;exports.intersector=g;
1
+ "use strict";var y=(s,t,r)=>{if(!t.has(s))throw TypeError("Cannot "+r)};var n=(s,t,r)=>(y(s,t,"read from private field"),r?r.call(s):t.get(s)),b=(s,t,r)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,r)},f=(s,t,r,e)=>(y(s,t,"write to private field"),e?e.call(s,r):t.set(s,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});g.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(n(this,l)))}subscribe(t,r){const e=w.getElement(t);if(!e)return()=>{};const o=n(this,i).find(c=>c.element===e);if(!o)n(this,u).observe(e);else{const c=n(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return n(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),console.log(n(this,i)),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=n(this,i).find(e=>e.callback===t);r&&(f(this,i,n(this,i).filter(e=>e.callback===t)),n(this,i).find(e=>e.element===r.element)||n(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const d=new m;exports.Intersector=m;exports.intersector=d;
@@ -6,12 +6,12 @@ var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(
6
6
  if (t.has(n))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(n) : t.set(n, s);
9
- }, h = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
9
+ }, l = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
10
10
  import { i as y } from "../browser-0zX67oeU.js";
11
11
  import { g as p } from "../dom-0S_WDL4g.js";
12
12
  import "../path-data-polyfill-DgeDWYeI.js";
13
13
  var i, b, u;
14
- class w {
14
+ class g {
15
15
  constructor() {
16
16
  f(this, i, []);
17
17
  f(this, b, null);
@@ -23,7 +23,7 @@ class w {
23
23
  e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
24
24
  });
25
25
  });
26
- y && window.IntersectionObserver && h(this, b, new IntersectionObserver(
26
+ y && window.IntersectionObserver && l(this, b, new IntersectionObserver(
27
27
  r(this, u)
28
28
  ));
29
29
  }
@@ -39,7 +39,7 @@ class w {
39
39
  r(this, b).observe(e);
40
40
  else {
41
41
  const c = r(this, i).find(
42
- (l) => l.element === e && l.entry
42
+ (h) => h.element === e && h.entry
43
43
  );
44
44
  c != null && c.entry.isIntersecting && s(c.entry);
45
45
  }
@@ -47,7 +47,7 @@ class w {
47
47
  element: e,
48
48
  callback: s,
49
49
  entry: (o == null ? void 0 : o.entry) || null
50
- }), () => {
50
+ }), console.log(r(this, i)), () => {
51
51
  this.unsubscribe(s);
52
52
  };
53
53
  }
@@ -55,14 +55,14 @@ class w {
55
55
  const s = r(this, i).find(
56
56
  (e) => e.callback === t
57
57
  );
58
- s && (h(this, i, r(this, i).filter(
58
+ s && (l(this, i, r(this, i).filter(
59
59
  (e) => e.callback === t
60
60
  )), r(this, i).find((e) => e.element === s.element) || r(this, b).unobserve(s.element));
61
61
  }
62
62
  }
63
63
  i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
64
- const E = new w();
64
+ const E = new g();
65
65
  export {
66
- w as Intersector,
66
+ g as Intersector,
67
67
  E as intersector
68
68
  };
@@ -1 +1 @@
1
- "use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?j(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,S=(s,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(s,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&x(s,e,t[e]);return s};var q=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(q(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},c=(s,t,e,r)=>(q(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);var M=(s,t,e)=>(q(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-BQGNOHlY.cjs"),O=require("../math-GDWEqu7y.cjs"),U=require("../number-yVpzMdbQ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const m=require("../ticker/index.cjs");var v,u,p,d;class P{constructor(t){h(this,v,void 0);h(this,u,void 0);h(this,p,void 0);h(this,d,void 0);c(this,v,t.operation),c(this,u,t.value),c(this,p,i(this,u)),c(this,d,t.damping||0)}get operation(){return i(this,v)}get value(){return i(this,u)}set value(t){c(this,p,t),i(this,d)||c(this,u,t)}get damping(){return i(this,d)}set damping(t){c(this,d,t)}update(t){let e=0;for(const r in i(this,u))i(this,u)[r]=O.damp(i(this,u)[r],i(this,p)[r],this.damping,t),U.preciseNumber(i(this,u)[r],4)!==U.preciseNumber(i(this,p)[r],4)&&e++;return e===0}}v=new WeakMap,u=new WeakMap,p=new WeakMap,d=new WeakMap;var g,f,l,y,V,b;class T extends N.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,y);h(this,g,void 0);h(this,f,void 0);h(this,l,void 0);h(this,b,e=>{let r=0;for(const n of this.steps){const a=n[1].update(e.elapsed);r+=a?0:1}this.calculate(),r||m.ticker.unsubscribe(i(this,b))});c(this,g,S({},e)),c(this,f,new Map),c(this,l,new Set)}get base(){return i(this,g)}get steps(){return i(this,f)}close(){super.close(),i(this,l).clear(),i(this,f).clear(),m.ticker.unsubscribe(i(this,b))}bind(e){i(this,l).add(e)}unbind(e){i(this,l).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e).value}setStep(e,r,n,o){const a={};for(const L in this.current)a[L]=n[L]||0;let k=this.steps.get(e);k||(k=new P({operation:r,value:S({},i(this,g)),damping:o}),this.steps.set(e,k)),k.damping=o||0,k.value=a,M(this,y,V).call(this)}calculate(){const e={};for(const r in this.base)e[r]=this.base[r];for(const r of this.steps){const n=r[1];if(n.operation==="+")for(const o in this.base){const a=n.value[o];e[o]+=a}else if(n.operation==="*")for(const o in this.base){const a=n.value[o];e[o]*=a}else if(n.operation==="/")for(const o in this.base){const a=n.value[o];e[o]/=a}else if(n.operation==="-")for(const o in this.base){const a=n.value[o];e[o]-=a}}for(const r of i(this,l))for(const n in e)r[n]=e[n];this.current=e}}g=new WeakMap,f=new WeakMap,l=new WeakMap,y=new WeakSet,V=function(){let e=!1;i(this,f).forEach(r=>{r.damping&&(e=!0)}),e?m.ticker.subscribe(i(this,b)):m.ticker.unsubscribe(i(this,b))},b=new WeakMap;exports.Ladder=T;
1
+ "use strict";var B=Object.defineProperty;var x=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var M=(n,s,t)=>s in n?B(n,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[s]=t,S=(n,s)=>{for(var t in s||(s={}))C.call(s,t)&&M(n,t,s[t]);if(x)for(var t of x(s))E.call(s,t)&&M(n,t,s[t]);return n};var L=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var e=(n,s,t)=>(L(n,s,"read from private field"),t?t.call(n):s.get(n)),u=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},o=(n,s,t,r)=>(L(n,s,"write to private field"),r?r.call(n,t):s.set(n,t),t);var U=(n,s,t)=>(L(n,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("../Store-BQGNOHlY.cjs"),N=require("../math-GDWEqu7y.cjs"),V=require("../number-yVpzMdbQ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const q=require("../ticker/index.cjs");var y,c,f,d;class O{constructor(s){u(this,y,void 0);u(this,c,void 0);u(this,f,void 0);u(this,d,void 0);this.damping=0,this.mass=0,this.stiffness=0,o(this,d,0),o(this,y,s.operation),o(this,c,s.value),o(this,f,e(this,c)),this.spring=s}get operation(){return e(this,y)}get value(){return e(this,c)}set value(s){o(this,f,s),this.damping||o(this,c,s)}set spring(s){this.damping=(s==null?void 0:s.damping)||0,this.mass=(s==null?void 0:s.mass)||0,this.stiffness=(s==null?void 0:s.stiffness)||0}update(s){let t=0;const r=s/1e3;for(const i in e(this,c)){if(e(this,f)[i]!==e(this,c)[i]&&(this.mass||this.stiffness)){const h=(e(this,f)[i]-e(this,c)[i])*this.stiffness-e(this,d)*this.damping;o(this,d,e(this,d)+h/this.mass*r),e(this,c)[i]+=e(this,d)*r}else e(this,c)[i]=N.damp(e(this,c)[i],e(this,f)[i],this.damping,r);V.preciseNumber(e(this,c)[i],4)!==V.preciseNumber(e(this,f)[i],4)&&t++}return t===0}}y=new WeakMap,c=new WeakMap,f=new WeakMap,d=new WeakMap;var m,b,p,l,w,j,g;class P extends F.Store{constructor(t){super(t,{equalityCheck:()=>!1});u(this,w);u(this,m,void 0);u(this,b,void 0);u(this,p,void 0);u(this,l,!1);u(this,g,t=>{let r=0;for(const i of this.steps){const a=i[1].update(t.timeBetweenFrames);r+=a?0:1}this.calculate(),r||q.ticker.unsubscribe(e(this,g))});o(this,m,S({},t)),o(this,b,new Map),o(this,p,new Set)}get base(){return e(this,m)}get steps(){return e(this,b)}close(){super.close(),e(this,p).clear(),e(this,b).clear(),q.ticker.unsubscribe(e(this,g)),o(this,l,!1)}bind(t){e(this,p).add(t)}unbind(t){e(this,p).delete(t)}deleteStep(t){this.steps.delete(t)}getStepValue(t){return this.steps.get(t).value}setStep(t,r,i,h){const a={};for(const v in this.current)a[v]=i[v]||0;let k=this.steps.get(t);k||(k=new O(S({operation:r,value:S({},e(this,m))},h)),this.steps.set(t,k)),k.spring=h,k.value=a,U(this,w,j).call(this)}calculate(){const t={};for(const r in this.base)t[r]=this.base[r];for(const r of this.steps){const i=r[1];if(i.operation==="+")for(const h in this.base){const a=i.value[h];t[h]+=a}else if(i.operation==="*")for(const h in this.base){const a=i.value[h];t[h]*=a}else if(i.operation==="/")for(const h in this.base){const a=i.value[h];t[h]/=a}else if(i.operation==="-")for(const h in this.base){const a=i.value[h];t[h]-=a}}for(const r of e(this,p))for(const i in t)r[i]=t[i];this.current=t}}m=new WeakMap,b=new WeakMap,p=new WeakMap,l=new WeakMap,w=new WeakSet,j=function(){let t=!1;e(this,b).forEach(r=>{r.damping&&(t=!0)}),t&&!e(this,l)?(o(this,l,!0),q.ticker.subscribe(e(this,g))):!t&&e(this,l)&&(o(this,l,!1),q.ticker.unsubscribe(e(this,g)))},g=new WeakMap;exports.Ladder=P;
@@ -6,20 +6,26 @@ export type LadderSteps<K, T extends LadderDefaultValueType = LadderDefaultValue
6
6
  export type LadderDefaultValueType = {
7
7
  [key: string]: number;
8
8
  };
9
- interface LadderStepParameters<T extends LadderDefaultValueType = LadderDefaultValueType> {
9
+ interface LadderStepSpring {
10
+ damping?: number;
11
+ mass?: number;
12
+ stiffness?: number;
13
+ }
14
+ interface LadderStepParameters<T extends LadderDefaultValueType = LadderDefaultValueType> extends LadderStepSpring {
10
15
  operation: LadderOperation;
11
16
  value: T;
12
- damping?: number;
13
17
  }
14
18
  declare class LadderStep<T extends LadderDefaultValueType = LadderDefaultValueType> {
15
19
  #private;
20
+ damping: number;
21
+ mass: number;
22
+ stiffness: number;
16
23
  constructor(parameters: LadderStepParameters<T>);
17
24
  get operation(): LadderOperation;
18
25
  get value(): T;
19
26
  set value(value: T);
20
- get damping(): number;
21
- set damping(value: number);
22
- update(elapsed: number): boolean;
27
+ set spring(value: LadderStepSpring | undefined);
28
+ update(timeBetweenFrames: number): boolean;
23
29
  }
24
30
  export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
25
31
  #private;
@@ -31,7 +37,7 @@ export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValu
31
37
  unbind(sub: V): void;
32
38
  deleteStep(stepName: K): void;
33
39
  getStepValue(stepName: K): V;
34
- setStep(stepName: K, operation: LadderOperation, setValue: Partial<V>, damping?: number): void;
40
+ setStep(stepName: K, operation: LadderOperation, setValue: Partial<V>, spring?: LadderStepSpring): void;
35
41
  calculate(): void;
36
42
  }
37
43
  export {};
@@ -1,152 +1,157 @@
1
1
  var E = Object.defineProperty;
2
- var x = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
4
- var U = (s, e, t) => e in s ? E(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, S = (s, e) => {
5
- for (var t in e || (e = {}))
6
- M.call(e, t) && U(s, t, e[t]);
7
- if (x)
8
- for (var t of x(e))
9
- j.call(e, t) && U(s, t, e[t]);
10
- return s;
2
+ var U = Object.getOwnPropertySymbols;
3
+ var F = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
4
+ var V = (n, t, s) => t in n ? E(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s, S = (n, t) => {
5
+ for (var s in t || (t = {}))
6
+ F.call(t, s) && V(n, s, t[s]);
7
+ if (U)
8
+ for (var s of U(t))
9
+ M.call(t, s) && V(n, s, t[s]);
10
+ return n;
11
11
  };
12
- var w = (s, e, t) => {
13
- if (!e.has(s))
14
- throw TypeError("Cannot " + t);
12
+ var v = (n, t, s) => {
13
+ if (!t.has(n))
14
+ throw TypeError("Cannot " + s);
15
15
  };
16
- var i = (s, e, t) => (w(s, e, "read from private field"), t ? t.call(s) : e.get(s)), u = (s, e, t) => {
17
- if (e.has(s))
16
+ var e = (n, t, s) => (v(n, t, "read from private field"), s ? s.call(n) : t.get(n)), p = (n, t, s) => {
17
+ if (t.has(n))
18
18
  throw TypeError("Cannot add the same private member more than once");
19
- e instanceof WeakSet ? e.add(s) : e.set(s, t);
20
- }, h = (s, e, t, n) => (w(s, e, "write to private field"), n ? n.call(s, t) : e.set(s, t), t);
21
- var V = (s, e, t) => (w(s, e, "access private method"), t);
22
- import { S as z } from "../Store-Cd-E5W1z.js";
23
- import { d as A } from "../math-BOBiC4TN.js";
24
- import { p as q } from "../number-Bo5RdrA1.js";
19
+ t instanceof WeakSet ? t.add(n) : t.set(n, s);
20
+ }, r = (n, t, s, h) => (v(n, t, "write to private field"), h ? h.call(n, s) : t.set(n, s), s);
21
+ var q = (n, t, s) => (v(n, t, "access private method"), s);
22
+ import { S as R } from "../Store-Cd-E5W1z.js";
23
+ import { d as j } from "../math-BOBiC4TN.js";
24
+ import { p as B } from "../number-Bo5RdrA1.js";
25
25
  import "../path-data-polyfill-DgeDWYeI.js";
26
- import { ticker as k } from "../ticker/index.js";
27
- var v, c, l, d;
28
- class B {
29
- constructor(e) {
30
- u(this, v, void 0);
31
- u(this, c, void 0);
32
- u(this, l, void 0);
33
- u(this, d, void 0);
34
- h(this, v, e.operation), h(this, c, e.value), h(this, l, i(this, c)), h(this, d, e.damping || 0);
26
+ import { ticker as w } from "../ticker/index.js";
27
+ var y, a, f, d;
28
+ class z {
29
+ constructor(t) {
30
+ p(this, y, void 0);
31
+ p(this, a, void 0);
32
+ p(this, f, void 0);
33
+ p(this, d, void 0);
34
+ this.damping = 0, this.mass = 0, this.stiffness = 0, r(this, d, 0), r(this, y, t.operation), r(this, a, t.value), r(this, f, e(this, a)), this.spring = t;
35
35
  }
36
36
  get operation() {
37
- return i(this, v);
37
+ return e(this, y);
38
38
  }
39
39
  get value() {
40
- return i(this, c);
41
- }
42
- set value(e) {
43
- h(this, l, e), i(this, d) || h(this, c, e);
44
- }
45
- get damping() {
46
- return i(this, d);
47
- }
48
- set damping(e) {
49
- h(this, d, e);
50
- }
51
- update(e) {
52
- let t = 0;
53
- for (const n in i(this, c))
54
- i(this, c)[n] = A(
55
- i(this, c)[n],
56
- i(this, l)[n],
57
- this.damping,
58
- e
59
- ), q(i(this, c)[n], 4) !== q(i(this, l)[n], 4) && t++;
60
- return t === 0;
40
+ return e(this, a);
41
+ }
42
+ set value(t) {
43
+ r(this, f, t), this.damping || r(this, a, t);
44
+ }
45
+ set spring(t) {
46
+ this.damping = (t == null ? void 0 : t.damping) || 0, this.mass = (t == null ? void 0 : t.mass) || 0, this.stiffness = (t == null ? void 0 : t.stiffness) || 0;
47
+ }
48
+ update(t) {
49
+ let s = 0;
50
+ const h = t / 1e3;
51
+ for (const i in e(this, a)) {
52
+ if (e(this, f)[i] !== e(this, a)[i] && (this.mass || this.stiffness)) {
53
+ const o = (e(this, f)[i] - e(this, a)[i]) * this.stiffness - e(this, d) * this.damping;
54
+ r(this, d, e(this, d) + o / this.mass * h), e(this, a)[i] += e(this, d) * h;
55
+ } else
56
+ e(this, a)[i] = j(
57
+ e(this, a)[i],
58
+ e(this, f)[i],
59
+ this.damping,
60
+ h
61
+ );
62
+ B(e(this, a)[i], 4) !== B(e(this, f)[i], 4) && s++;
63
+ }
64
+ return s === 0;
61
65
  }
62
66
  }
63
- v = new WeakMap(), c = new WeakMap(), l = new WeakMap(), d = new WeakMap();
64
- var m, f, p, y, C, b;
65
- class K extends z {
66
- constructor(t) {
67
- super(t, {
67
+ y = new WeakMap(), a = new WeakMap(), f = new WeakMap(), d = new WeakMap();
68
+ var g, m, l, u, L, C, b;
69
+ class K extends R {
70
+ constructor(s) {
71
+ super(s, {
68
72
  equalityCheck: () => !1
69
73
  });
70
- u(this, y);
71
- u(this, m, void 0);
72
- u(this, f, void 0);
73
- u(this, p, void 0);
74
- u(this, b, (t) => {
75
- let n = 0;
76
- for (const o of this.steps) {
77
- const a = o[1].update(t.elapsed);
78
- n += a ? 0 : 1;
74
+ p(this, L);
75
+ p(this, g, void 0);
76
+ p(this, m, void 0);
77
+ p(this, l, void 0);
78
+ p(this, u, !1);
79
+ p(this, b, (s) => {
80
+ let h = 0;
81
+ for (const i of this.steps) {
82
+ const c = i[1].update(s.timeBetweenFrames);
83
+ h += c ? 0 : 1;
79
84
  }
80
- this.calculate(), n || k.unsubscribe(i(this, b));
85
+ this.calculate(), h || w.unsubscribe(e(this, b));
81
86
  });
82
- h(this, m, S({}, t)), h(this, f, /* @__PURE__ */ new Map()), h(this, p, /* @__PURE__ */ new Set());
87
+ r(this, g, S({}, s)), r(this, m, /* @__PURE__ */ new Map()), r(this, l, /* @__PURE__ */ new Set());
83
88
  }
84
89
  get base() {
85
- return i(this, m);
90
+ return e(this, g);
86
91
  }
87
92
  get steps() {
88
- return i(this, f);
93
+ return e(this, m);
89
94
  }
90
95
  close() {
91
- super.close(), i(this, p).clear(), i(this, f).clear(), k.unsubscribe(i(this, b));
96
+ super.close(), e(this, l).clear(), e(this, m).clear(), w.unsubscribe(e(this, b)), r(this, u, !1);
92
97
  }
93
- bind(t) {
94
- i(this, p).add(t);
98
+ bind(s) {
99
+ e(this, l).add(s);
95
100
  }
96
- unbind(t) {
97
- i(this, p).delete(t);
101
+ unbind(s) {
102
+ e(this, l).delete(s);
98
103
  }
99
- deleteStep(t) {
100
- this.steps.delete(t);
104
+ deleteStep(s) {
105
+ this.steps.delete(s);
101
106
  }
102
- getStepValue(t) {
103
- return this.steps.get(t).value;
107
+ getStepValue(s) {
108
+ return this.steps.get(s).value;
104
109
  }
105
- setStep(t, n, o, r) {
106
- const a = {};
107
- for (const L in this.current)
108
- a[L] = o[L] || 0;
109
- let g = this.steps.get(t);
110
- g || (g = new B({ operation: n, value: S({}, i(this, m)), damping: r }), this.steps.set(t, g)), g.damping = r || 0, g.value = a, V(this, y, C).call(this);
110
+ setStep(s, h, i, o) {
111
+ const c = {};
112
+ for (const x in this.current)
113
+ c[x] = i[x] || 0;
114
+ let k = this.steps.get(s);
115
+ k || (k = new z(S({ operation: h, value: S({}, e(this, g)) }, o)), this.steps.set(s, k)), k.spring = o, k.value = c, q(this, L, C).call(this);
111
116
  }
112
117
  calculate() {
113
- const t = {};
114
- for (const n in this.base)
115
- t[n] = this.base[n];
116
- for (const n of this.steps) {
117
- const o = n[1];
118
- if (o.operation === "+")
119
- for (const r in this.base) {
120
- const a = o.value[r];
121
- t[r] += a;
118
+ const s = {};
119
+ for (const h in this.base)
120
+ s[h] = this.base[h];
121
+ for (const h of this.steps) {
122
+ const i = h[1];
123
+ if (i.operation === "+")
124
+ for (const o in this.base) {
125
+ const c = i.value[o];
126
+ s[o] += c;
122
127
  }
123
- else if (o.operation === "*")
124
- for (const r in this.base) {
125
- const a = o.value[r];
126
- t[r] *= a;
128
+ else if (i.operation === "*")
129
+ for (const o in this.base) {
130
+ const c = i.value[o];
131
+ s[o] *= c;
127
132
  }
128
- else if (o.operation === "/")
129
- for (const r in this.base) {
130
- const a = o.value[r];
131
- t[r] /= a;
133
+ else if (i.operation === "/")
134
+ for (const o in this.base) {
135
+ const c = i.value[o];
136
+ s[o] /= c;
132
137
  }
133
- else if (o.operation === "-")
134
- for (const r in this.base) {
135
- const a = o.value[r];
136
- t[r] -= a;
138
+ else if (i.operation === "-")
139
+ for (const o in this.base) {
140
+ const c = i.value[o];
141
+ s[o] -= c;
137
142
  }
138
143
  }
139
- for (const n of i(this, p))
140
- for (const o in t)
141
- n[o] = t[o];
142
- this.current = t;
144
+ for (const h of e(this, l))
145
+ for (const i in s)
146
+ h[i] = s[i];
147
+ this.current = s;
143
148
  }
144
149
  }
145
- m = new WeakMap(), f = new WeakMap(), p = new WeakMap(), y = new WeakSet(), C = function() {
146
- let t = !1;
147
- i(this, f).forEach((n) => {
148
- n.damping && (t = !0);
149
- }), t ? k.subscribe(i(this, b)) : k.unsubscribe(i(this, b));
150
+ g = new WeakMap(), m = new WeakMap(), l = new WeakMap(), u = new WeakMap(), L = new WeakSet(), C = function() {
151
+ let s = !1;
152
+ e(this, m).forEach((h) => {
153
+ h.damping && (s = !0);
154
+ }), s && !e(this, u) ? (r(this, u, !0), w.subscribe(e(this, b))) : !s && e(this, u) && (r(this, u, !1), w.unsubscribe(e(this, b)));
150
155
  }, b = new WeakMap();
151
156
  export {
152
157
  K as Ladder
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.DEVICE=-1e5]="DEVICE",A[A.CSS_VARIABLE=-99999]="CSS_VARIABLE",A[A.MEDIA=-99998]="MEDIA",A[A.SOURCE_MANAGER=-99997]="SOURCE_MANAGER",A[A.SCROLL=-99996]="SCROLL",A[A.SEGMENT=-99995]="SEGMENT",A[A.LAYOUT_BOX=-99994]="LAYOUT_BOX",A[A.EN3=1e5]="EN3",A))(L||{}),e=(A=>(A[A.SCROLL=-1e5]="SCROLL",A[A.LAYOUT_BOX=-99999]="LAYOUT_BOX",A[A.LADDER=-99998]="LADDER",A[A.EN3=1e5]="EN3",A))(e||{});exports.RESIZE_ORDER=L;exports.TICK_ORDER=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.DEVICE=-1e5]="DEVICE",A[A.CSS_VARIABLE=-99999]="CSS_VARIABLE",A[A.MEDIA=-99998]="MEDIA",A[A.SOURCE_MANAGER=-99997]="SOURCE_MANAGER",A[A.SCROLL=-99996]="SCROLL",A[A.SEGMENT=-99995]="SEGMENT",A[A.LAYOUT_BOX=-99994]="LAYOUT_BOX",A[A.EN3=1e5]="EN3",A))(L||{}),e=(A=>(A[A.SCROLL=-1e6]="SCROLL",A[A.ANIMATION=-999999]="ANIMATION",A[A.LAYOUT_BOX=-999998]="LAYOUT_BOX",A[A.LADDER=-999997]="LADDER",A[A.EN3=1e5]="EN3",A))(e||{});exports.RESIZE_ORDER=L;exports.TICK_ORDER=e;
@@ -9,8 +9,9 @@ export declare enum RESIZE_ORDER {
9
9
  EN3 = 100000
10
10
  }
11
11
  export declare enum TICK_ORDER {
12
- SCROLL = -100000,
13
- LAYOUT_BOX = -99999,
14
- LADDER = -99998,
12
+ SCROLL = -1000000,
13
+ ANIMATION = -999999,
14
+ LAYOUT_BOX = -999998,
15
+ LADDER = -999997,
15
16
  EN3 = 100000
16
17
  }
@@ -1,4 +1,4 @@
1
- var L = /* @__PURE__ */ ((A) => (A[A.DEVICE = -1e5] = "DEVICE", A[A.CSS_VARIABLE = -99999] = "CSS_VARIABLE", A[A.MEDIA = -99998] = "MEDIA", A[A.SOURCE_MANAGER = -99997] = "SOURCE_MANAGER", A[A.SCROLL = -99996] = "SCROLL", A[A.SEGMENT = -99995] = "SEGMENT", A[A.LAYOUT_BOX = -99994] = "LAYOUT_BOX", A[A.EN3 = 1e5] = "EN3", A))(L || {}), N = /* @__PURE__ */ ((A) => (A[A.SCROLL = -1e5] = "SCROLL", A[A.LAYOUT_BOX = -99999] = "LAYOUT_BOX", A[A.LADDER = -99998] = "LADDER", A[A.EN3 = 1e5] = "EN3", A))(N || {});
1
+ var L = /* @__PURE__ */ ((A) => (A[A.DEVICE = -1e5] = "DEVICE", A[A.CSS_VARIABLE = -99999] = "CSS_VARIABLE", A[A.MEDIA = -99998] = "MEDIA", A[A.SOURCE_MANAGER = -99997] = "SOURCE_MANAGER", A[A.SCROLL = -99996] = "SCROLL", A[A.SEGMENT = -99995] = "SEGMENT", A[A.LAYOUT_BOX = -99994] = "LAYOUT_BOX", A[A.EN3 = 1e5] = "EN3", A))(L || {}), N = /* @__PURE__ */ ((A) => (A[A.SCROLL = -1e6] = "SCROLL", A[A.ANIMATION = -999999] = "ANIMATION", A[A.LAYOUT_BOX = -999998] = "LAYOUT_BOX", A[A.LADDER = -999997] = "LADDER", A[A.EN3 = 1e5] = "EN3", A))(N || {});
2
2
  export {
3
3
  L as RESIZE_ORDER,
4
4
  N as TICK_ORDER
@@ -1 +1 @@
1
- "use strict";var E=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var i=(t,e,s)=>(E(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},m=(t,e,s,h)=>(E(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../Damped-B0G_t-pw.cjs"),L=require("../coordinates-D8Np3cPD.cjs"),k=require("../dom-JBOkFLTh.cjs"),q=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../Store-BQGNOHlY.cjs");require("../ticker/index.cjs");const M=require("../custom-element/index.cjs"),v=require("../css-property/index.cjs");var a,u,d,l,_,w,x;class W{constructor(e){p(this,a,void 0);p(this,u,void 0);p(this,d,void 0);p(this,l,void 0);p(this,_,e=>{i(this,l).set(1)});p(this,w,e=>{i(this,l).set(0)});p(this,x,e=>{const s={x:e.offsetX,y:e.offsetY},h={width:this.element.offsetWidth,height:this.element.offsetHeight},o={x:s.x,y:s.y};if(this.cartesian){const c=L.screenToCartesian(o,h);o.x=c.x,o.y=c.y}if(this.normalize){const c=L.normalize(o,h);o.x=q.clamp(c.x*2,-1,1),o.y=q.clamp(c.y*2,-1,1)}i(this,u).set(o.x),i(this,d).set(o.y)});m(this,a,k.getElement(e.element)),m(this,u,new C.Damped(0,e.damped)),m(this,d,new C.Damped(0,e.damped)),m(this,l,new C.Damped(0,e.damped)),this.cartesian=e.cartesian||!1,this.normalize=e.normalize||!1}get element(){return i(this,a)}get x(){return i(this,u)}get y(){return i(this,d)}get z(){return i(this,l)}connect(){i(this,a).addEventListener("pointerenter",i(this,_)),i(this,a).addEventListener("pointerleave",i(this,w)),i(this,a).addEventListener("pointermove",i(this,x))}disconnect(){i(this,a).removeEventListener("pointerenter",i(this,_)),i(this,a).removeEventListener("pointerleave",i(this,w)),i(this,a).removeEventListener("pointermove",i(this,x)),i(this,u).reset(),i(this,d).reset(),i(this,l).reset()}}a=new WeakMap,u=new WeakMap,d=new WeakMap,l=new WeakMap,_=new WeakMap,w=new WeakMap,x=new WeakMap;var O=Object.defineProperty,T=Object.getOwnPropertyDescriptor,A=(t,e,s,h)=>{for(var o=h>1?void 0:h?T(e,s):e,c=t.length-1,b;c>=0;c--)(b=t[c])&&(o=(h?b(e,s,o):b(o))||o);return h&&o&&O(e,s,o),o},D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),y=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},G=(t,e,s,h)=>(D(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s),n,f,P,S,g,z;exports.PointerElement=class extends M.CustomElement{constructor(){super(),y(this,n,void 0),y(this,f,new v.CSSProperty(this,"--damping",20)),y(this,P,new v.CSSProperty(this,"--mass",0)),y(this,S,new v.CSSProperty(this,"--stiffness",0)),y(this,g,new v.CSSProperty(this,"--cartesian",!1)),y(this,z,new v.CSSProperty(this,"--normalize",!1)),G(this,n,new W({element:this})),r(this,f).subscribe(e=>{r(this,n).x.damping=e.current,r(this,n).y.damping=e.current,r(this,n).z.damping=e.current}),r(this,g).subscribe(e=>{r(this,n).cartesian=e.current}),r(this,z).subscribe(e=>{r(this,n).normalize=e.current}),r(this,P).subscribe(e=>{r(this,n).x.mass=e.current,r(this,n).y.mass=e.current,r(this,n).z.mass=e.current}),r(this,S).subscribe(e=>{r(this,n).x.stiffness=e.current,r(this,n).y.stiffness=e.current,r(this,n).z.stiffness=e.current}),r(this,n).x.subscribe(e=>{this.style.setProperty("--x",e.current.toString())}),r(this,n).y.subscribe(e=>{this.style.setProperty("--y",e.current.toString())}),r(this,n).z.subscribe(e=>{this.style.setProperty("--z",e.current.toString())})}connectedCallback(){r(this,n).connect(),r(this,f).observe(),r(this,P).observe(),r(this,S).observe()}disconnectedCallback(){r(this,n).disconnect(),r(this,f).unobserve(),r(this,P).unobserve(),r(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}};n=new WeakMap;f=new WeakMap;P=new WeakMap;S=new WeakMap;g=new WeakMap;z=new WeakMap;exports.PointerElement=A([M.define("e-pointer")],exports.PointerElement);exports.Pointer=W;
1
+ "use strict";var E=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var i=(t,e,s)=>(E(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},m=(t,e,s,h)=>(E(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BQGNOHlY.cjs");const L=require("../coordinates-D8Np3cPD.cjs"),k=require("../dom-JBOkFLTh.cjs"),q=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const C=require("../Damped-CbWlWAbx.cjs"),M=require("../custom-element/index.cjs"),v=require("../css-property/index.cjs");var a,u,d,l,_,w,x;class W{constructor(e){p(this,a,void 0);p(this,u,void 0);p(this,d,void 0);p(this,l,void 0);p(this,_,e=>{i(this,l).set(1)});p(this,w,e=>{i(this,l).set(0)});p(this,x,e=>{const s={x:e.offsetX,y:e.offsetY},h={width:this.element.offsetWidth,height:this.element.offsetHeight},o={x:s.x,y:s.y};if(this.cartesian){const c=L.screenToCartesian(o,h);o.x=c.x,o.y=c.y}if(this.normalize){const c=L.normalize(o,h);o.x=q.clamp(c.x*2,-1,1),o.y=q.clamp(c.y*2,-1,1)}i(this,u).set(o.x),i(this,d).set(o.y)});m(this,a,k.getElement(e.element)),m(this,u,new C.Damped(0,e.damped)),m(this,d,new C.Damped(0,e.damped)),m(this,l,new C.Damped(0,e.damped)),this.cartesian=e.cartesian||!1,this.normalize=e.normalize||!1}get element(){return i(this,a)}get x(){return i(this,u)}get y(){return i(this,d)}get z(){return i(this,l)}connect(){i(this,a).addEventListener("pointerenter",i(this,_)),i(this,a).addEventListener("pointerleave",i(this,w)),i(this,a).addEventListener("pointermove",i(this,x))}disconnect(){i(this,a).removeEventListener("pointerenter",i(this,_)),i(this,a).removeEventListener("pointerleave",i(this,w)),i(this,a).removeEventListener("pointermove",i(this,x)),i(this,u).reset(),i(this,d).reset(),i(this,l).reset()}}a=new WeakMap,u=new WeakMap,d=new WeakMap,l=new WeakMap,_=new WeakMap,w=new WeakMap,x=new WeakMap;var O=Object.defineProperty,T=Object.getOwnPropertyDescriptor,A=(t,e,s,h)=>{for(var o=h>1?void 0:h?T(e,s):e,c=t.length-1,b;c>=0;c--)(b=t[c])&&(o=(h?b(e,s,o):b(o))||o);return h&&o&&O(e,s,o),o},D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),y=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},G=(t,e,s,h)=>(D(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s),n,f,P,S,g,z;exports.PointerElement=class extends M.CustomElement{constructor(){super(),y(this,n,void 0),y(this,f,new v.CSSProperty(this,"--damping",20)),y(this,P,new v.CSSProperty(this,"--mass",0)),y(this,S,new v.CSSProperty(this,"--stiffness",0)),y(this,g,new v.CSSProperty(this,"--cartesian",!1)),y(this,z,new v.CSSProperty(this,"--normalize",!1)),G(this,n,new W({element:this})),r(this,f).subscribe(e=>{r(this,n).x.damping=e.current,r(this,n).y.damping=e.current,r(this,n).z.damping=e.current}),r(this,g).subscribe(e=>{r(this,n).cartesian=e.current}),r(this,z).subscribe(e=>{r(this,n).normalize=e.current}),r(this,P).subscribe(e=>{r(this,n).x.mass=e.current,r(this,n).y.mass=e.current,r(this,n).z.mass=e.current}),r(this,S).subscribe(e=>{r(this,n).x.stiffness=e.current,r(this,n).y.stiffness=e.current,r(this,n).z.stiffness=e.current}),r(this,n).x.subscribe(e=>{this.style.setProperty("--x",e.current.toString())}),r(this,n).y.subscribe(e=>{this.style.setProperty("--y",e.current.toString())}),r(this,n).z.subscribe(e=>{this.style.setProperty("--z",e.current.toString())})}connectedCallback(){r(this,n).connect(),r(this,f).observe(),r(this,P).observe(),r(this,S).observe()}disconnectedCallback(){r(this,n).disconnect(),r(this,f).unobserve(),r(this,P).unobserve(),r(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}};n=new WeakMap;f=new WeakMap;P=new WeakMap;S=new WeakMap;g=new WeakMap;z=new WeakMap;exports.PointerElement=A([M.define("e-pointer")],exports.PointerElement);exports.Pointer=W;
@@ -7,13 +7,13 @@ var r = (e, t, s) => (E(e, t, "read from private field"), s ? s.call(e) : t.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
9
  }, y = (e, t, s, h) => (E(e, t, "write to private field"), h ? h.call(e, s) : t.set(e, s), s);
10
- import { D as g } from "../Damped-DpaKIZqv.js";
10
+ import "../Store-Cd-E5W1z.js";
11
11
  import { s as k, n as D } from "../coordinates-CgdGoSYs.js";
12
12
  import { g as O } from "../dom-0S_WDL4g.js";
13
13
  import { c as L } from "../math-BOBiC4TN.js";
14
14
  import "../path-data-polyfill-DgeDWYeI.js";
15
- import "../Store-Cd-E5W1z.js";
16
15
  import "../ticker/index.js";
16
+ import { D as g } from "../Damped-BJgyFENo.js";
17
17
  import { CustomElement as T, define as A } from "../custom-element/index.js";
18
18
  import { CSSProperty as d } from "../css-property/index.js";
19
19
  var a, l, f, m, x, P, S;
@@ -23,6 +23,7 @@ declare class Section {
23
23
  export declare class ScrollElement extends CustomElement {
24
24
  #private;
25
25
  constructor();
26
+ get damped(): Damped;
26
27
  get axisCSSProperty(): CSSProperty<Axes2D, keyof import('../store').StoreManagers>;
27
28
  get pagesCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
28
29
  get splitCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
@@ -58,9 +59,6 @@ export declare class ScrollElement extends CustomElement {
58
59
  get vertical(): boolean;
59
60
  get currentProgress(): number;
60
61
  get targetProgress(): number;
61
- get speed(): number;
62
- get direction(): number;
63
- get isRunning(): Store<boolean, keyof import('../store').StoreManagers, import('../store').StoreEntry<boolean>>;
64
62
  get scrollWidth(): number;
65
63
  get scrollHeight(): number;
66
64
  onScroll(...parameters: Parameters<Damped['subscribe']>): () => void;
@@ -1,3 +1,4 @@
1
+ import { Damped } from '../animation';
1
2
  import { ScrollUserElement } from './ScrollUserElement';
2
3
  import { Store } from '../store';
3
4
  import { CSSProperty } from '../css-property';
@@ -7,12 +8,9 @@ export interface ScrollSegmentResizeDetail {
7
8
  distance: number;
8
9
  finish: number;
9
10
  }
10
- export interface ScrollSegmentPassDetail extends ScrollSegmentResizeDetail {
11
- passed: number;
12
- progress: number;
13
- }
14
11
  export declare class ScrollSegmentElement extends ScrollUserElement {
15
12
  #private;
13
+ constructor();
16
14
  get distanceOffsetCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
17
15
  get startOffsetCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
18
16
  get captureOnceCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
@@ -27,9 +25,10 @@ export declare class ScrollSegmentElement extends ScrollUserElement {
27
25
  get distanceVarCSSProperty(): CSSProperty<string, keyof import('../store').StoreManagers>;
28
26
  get startVarCSSProperty(): CSSProperty<string, keyof import('../store').StoreManagers>;
29
27
  get finishVarCSSProperty(): CSSProperty<string, keyof import('../store').StoreManagers>;
30
- get smoothstepCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
31
- get smootherstepCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
32
28
  get disabledCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
29
+ get dampingCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
30
+ get massCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
31
+ get stiffnessCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
33
32
  get targetCSSProperty(): CSSProperty<string, keyof import('../store').StoreManagers>;
34
33
  get isCaptured(): Store<boolean, keyof import('../store').StoreManagers, import('../store').StoreEntry<boolean>>;
35
34
  get isReleased(): Store<boolean, keyof import('../store').StoreManagers, import('../store').StoreEntry<boolean>>;
@@ -39,7 +38,7 @@ export declare class ScrollSegmentElement extends ScrollUserElement {
39
38
  get isReleasedFromFinish(): Store<boolean, keyof import('../store').StoreManagers, import('../store').StoreEntry<boolean>>;
40
39
  get directionPosition(): number;
41
40
  get directionSize(): number;
42
- get passed(): number;
41
+ get passed(): Damped;
43
42
  get progress(): number;
44
43
  get start(): number;
45
44
  get finish(): number;
@@ -54,7 +53,6 @@ export declare class ScrollSegmentElement extends ScrollUserElement {
54
53
  protected disconnectedCallback(): void;
55
54
  protected removeVar(name: string | undefined): void;
56
55
  protected setVar(name: string | undefined, value: string | number): void;
57
- protected updateValue(v: number, min?: number, max?: number): number;
58
56
  protected getDistance(): number;
59
57
  protected getStart(): number;
60
58
  }
@@ -62,7 +60,4 @@ declare global {
62
60
  interface HTMLElementTagNameMap {
63
61
  'e-scroll-segment': ScrollSegmentElement;
64
62
  }
65
- interface HTMLElementEventMap {
66
- segmentPass: CustomEvent<ScrollSegmentPassDetail>;
67
- }
68
63
  }