aptechka 0.75.0 → 0.76.1

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 (42) hide show
  1. package/lib/SourceElement-DE6khDs3.cjs +5 -0
  2. package/lib/{SourceElement-Cvtgjo07.js → SourceElement-DJxX7uN5.js} +91 -92
  3. package/lib/element-linked-store/index.cjs +1 -1
  4. package/lib/element-linked-store/index.js +38 -29
  5. package/lib/en3/{en3.d.ts → En3.d.ts} +1 -5
  6. package/lib/en3/En3View.d.ts +2 -1
  7. package/lib/en3/index.cjs +2 -2
  8. package/lib/en3/index.d.ts +1 -1
  9. package/lib/en3/index.js +144 -253
  10. package/lib/en3/utils/getCurrentViewport.d.ts +2 -1
  11. package/lib/iframe/index.cjs +1 -1
  12. package/lib/iframe/index.js +1 -1
  13. package/lib/image/index.cjs +1 -1
  14. package/lib/image/index.js +1 -1
  15. package/lib/{layout-DpZo-I0y.js → layout-BSMtwCga.js} +2 -2
  16. package/lib/layout-box/index.js +1 -1
  17. package/lib/morph/index.js +1 -1
  18. package/lib/scroll/{ScrollbarElement.d.ts → ScrollScrollbarElement.d.ts} +2 -2
  19. package/lib/scroll/index.cjs +1 -1
  20. package/lib/scroll/index.d.ts +1 -1
  21. package/lib/scroll/index.js +4 -4
  22. package/lib/{scroll-DPkCFTxg.js → scroll-DNGJVxa2.js} +1 -1
  23. package/lib/scroll-kit/ScrollRegionElement.d.ts +38 -0
  24. package/lib/{custom-scrollbar/index.d.ts → scroll-kit/ScrollbarElement.d.ts} +2 -2
  25. package/lib/scroll-kit/SmoothScrollElement.d.ts +16 -0
  26. package/lib/scroll-kit/index.cjs +1 -0
  27. package/lib/scroll-kit/index.d.ts +3 -0
  28. package/lib/scroll-kit/index.js +382 -0
  29. package/lib/sequence/index.cjs +1 -1
  30. package/lib/sequence/index.js +1 -1
  31. package/lib/source/index.cjs +1 -1
  32. package/lib/source/index.js +1 -1
  33. package/lib/utils/index.js +2 -2
  34. package/lib/video/index.cjs +1 -1
  35. package/lib/video/index.js +1 -1
  36. package/lib/youtube/index.cjs +1 -1
  37. package/lib/youtube/index.js +1 -1
  38. package/package.json +9 -9
  39. package/lib/SourceElement-0vRhCW3O.cjs +0 -5
  40. package/lib/custom-scrollbar/index.cjs +0 -1
  41. package/lib/custom-scrollbar/index.js +0 -100
  42. package/lib/en3/En3Raycaster.d.ts +0 -20
@@ -1,100 +0,0 @@
1
- var v = (o) => {
2
- throw TypeError(o);
3
- };
4
- var W = (o, n, e) => n.has(o) || v("Cannot " + e);
5
- var t = (o, n, e) => (W(o, n, "read from private field"), e ? e.call(o) : n.get(o)), r = (o, n, e) => n.has(o) ? v("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, e), a = (o, n, e, s) => (W(o, n, "write to private field"), s ? s.call(o, e) : n.set(o, e), e);
6
- import { i as k, a as w } from "../index-Bv9zgfdb.js";
7
- import { f as P } from "../dom-CVWzyXPH.js";
8
- import { s as C } from "../gestures-CcXV6fCp.js";
9
- import "construct-style-sheets-polyfill";
10
- import { ticker as x } from "../ticker/index.js";
11
- var i, h, b, u, l, p, c, H, z, T, E, L, g, f, y;
12
- class q extends HTMLElement {
13
- constructor() {
14
- super(...arguments);
15
- r(this, c);
16
- r(this, i, null);
17
- r(this, h, null);
18
- r(this, b, 0);
19
- r(this, u, 0);
20
- r(this, l, !1);
21
- r(this, p);
22
- r(this, E, () => {
23
- this.classList.add("active"), clearTimeout(t(this, p));
24
- const s = t(this, c, H) / t(this, u) * t(this, b);
25
- t(this, l) ? t(this, h).style.transform = `translate3d(${s}px, 0px, 0px)` : t(this, h).style.transform = `translate3d(0px, ${s}px, 0px)`, a(this, p, setTimeout(() => {
26
- this.classList.remove("active");
27
- }, 1e3));
28
- });
29
- r(this, L, () => {
30
- const e = t(this, l) ? this.offsetWidth : this.offsetHeight, s = t(this, c, z), m = t(this, c, T);
31
- a(this, u, s - m);
32
- let d = e * e / (t(this, u) + e);
33
- d = Math.max(d, 30), t(this, l) ? (t(this, h).style.width = d + "px", t(this, h).style.height = "100%") : (t(this, h).style.width = "100%", t(this, h).style.height = d + "px"), a(this, b, e - d), s <= m ? this.style.display = "none" : this.style.display = "block";
34
- });
35
- r(this, g, (e) => {
36
- document.documentElement.classList.add("grabbing");
37
- const s = t(this, c, H), m = t(this, l) ? e.x : e.y;
38
- C(
39
- (d) => {
40
- const M = t(this, u) / t(this, b), S = (t(this, l) ? d.x - m : d.y - m) * M;
41
- t(this, l) ? t(this, i).scroll({
42
- left: s + S,
43
- behavior: "instant"
44
- }) : t(this, i).scroll({
45
- top: s + S,
46
- behavior: "instant"
47
- });
48
- },
49
- () => {
50
- document.documentElement.classList.remove("grabbing");
51
- }
52
- );
53
- });
54
- r(this, f, () => {
55
- t(this, L).call(this);
56
- });
57
- r(this, y, (e) => {
58
- e.isIntersecting ? (x.subscribe(t(this, f), { maxFPS: 5 }), t(this, f).call(this)) : x.unsubscribe(t(this, f));
59
- });
60
- }
61
- connectedCallback() {
62
- const e = this.getAttribute("data-scroll");
63
- a(this, l, this.hasAttribute("horisontal"));
64
- let s = null;
65
- e && (e === "parent" ? s = this.parentElement : s = document.querySelector(e)), s || (s = P(this), s === document.body && (s = window));
66
- const m = this.querySelector("[data-thumb]");
67
- s && m && (a(this, i, s), a(this, h, m), t(this, i).addEventListener("scroll", t(this, E)), t(this, h).addEventListener("pointerdown", t(this, g)), w.subscribe(
68
- this.parentElement === document.body ? this : this.parentElement,
69
- t(this, y)
70
- ));
71
- }
72
- disconnectedCallback() {
73
- t(this, i).removeEventListener("scroll", t(this, E)), t(this, h).removeEventListener("pointerdown", t(this, g)), clearTimeout(t(this, p)), w.unsubscribe(t(this, y)), x.unsubscribe(t(this, f));
74
- }
75
- }
76
- i = new WeakMap(), h = new WeakMap(), b = new WeakMap(), u = new WeakMap(), l = new WeakMap(), p = new WeakMap(), c = new WeakSet(), H = function() {
77
- return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).scrollLeft : t(this, i).scrollTop : t(this, l) ? t(this, i).scrollX : t(this, i).scrollY;
78
- }, z = function() {
79
- return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).scrollWidth : t(this, i).scrollHeight : t(this, l) ? Math.max(
80
- document.body.scrollWidth,
81
- document.documentElement.scrollWidth,
82
- document.body.offsetWidth,
83
- document.documentElement.offsetWidth,
84
- document.body.clientWidth,
85
- document.documentElement.clientWidth
86
- ) : Math.max(
87
- document.body.scrollHeight,
88
- document.documentElement.scrollHeight,
89
- document.body.offsetHeight,
90
- document.documentElement.offsetHeight,
91
- document.body.clientHeight,
92
- document.documentElement.clientHeight
93
- );
94
- }, T = function() {
95
- return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).offsetWidth : t(this, i).offsetHeight : t(this, l) ? innerWidth : innerHeight;
96
- }, E = new WeakMap(), L = new WeakMap(), g = new WeakMap(), f = new WeakMap(), y = new WeakMap();
97
- k && !customElements.get("e-custom-scrollbar") && customElements.define("e-custom-scrollbar", q);
98
- export {
99
- q as CustomScrollbarElement
100
- };
@@ -1,20 +0,0 @@
1
- import { Intersection, Object3D } from 'three';
2
- export type En3RaycasterEventType = 'pointerDown' | 'pointerUp' | 'pointerMove' | 'pointerLeave' | 'pointerEnter' | 'pointerMove';
3
- export type En3RaycasterEvent = {
4
- type: En3RaycasterEventType;
5
- originalEvent: PointerEvent;
6
- target: Object3D;
7
- } & Intersection<Object3D>;
8
- export interface En3RaycasterOptions {
9
- targetName?: string;
10
- eventDispatcher?: Object3D;
11
- propagation?: boolean;
12
- }
13
- export type En3RaycasterCallback = (event: En3RaycasterEvent) => void;
14
- export declare class En3Raycaster {
15
- #private;
16
- constructor();
17
- destroy(): void;
18
- add(object3D: Object3D, options?: En3RaycasterOptions): void;
19
- remove(object3D: Object3D): void;
20
- }