@blazediff/ui 1.6.2 → 1.6.4
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.
- package/package.json +3 -2
- package/dist/base-element.d.mts +0 -6
- package/dist/difference-mode.d.mts +0 -16
- package/dist/index.d.mts +0 -5
- package/dist/onion-skin-mode.d.mts +0 -19
- package/dist/swipe-mode.d.mts +0 -26
- package/dist/two-up-mode.d.mts +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Unstyled web components for displaying image differences",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"homepage": "https://blazediff.dev",
|
|
58
58
|
"license": "MIT",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@blazediff/core": "1.
|
|
60
|
+
"@blazediff/core": "1.9.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@storybook/addon-essentials": "9.0.0-alpha.12",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"vite": "^7.1.7"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
76
77
|
"build": "tsup",
|
|
77
78
|
"dev": "tsup --watch",
|
|
78
79
|
"clean": "rm -rf dist",
|
package/dist/base-element.d.mts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseElement } from './base-element.mjs';
|
|
2
|
-
|
|
3
|
-
declare class DifferenceMode extends BaseElement {
|
|
4
|
-
private container;
|
|
5
|
-
private canvas;
|
|
6
|
-
private ctx;
|
|
7
|
-
static get observedAttributes(): string[];
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
10
|
-
private render;
|
|
11
|
-
private loadAndCompare;
|
|
12
|
-
private loadImage;
|
|
13
|
-
private getImageData;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { DifferenceMode };
|
package/dist/index.d.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseElement } from './base-element.mjs';
|
|
2
|
-
|
|
3
|
-
declare class OnionSkinMode extends BaseElement {
|
|
4
|
-
private container;
|
|
5
|
-
private imageContainer;
|
|
6
|
-
private img1;
|
|
7
|
-
private img2;
|
|
8
|
-
private sliderContainer;
|
|
9
|
-
private slider;
|
|
10
|
-
private sliderLabel;
|
|
11
|
-
static get observedAttributes(): string[];
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
14
|
-
private render;
|
|
15
|
-
private updateOpacity;
|
|
16
|
-
private loadImages;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { OnionSkinMode };
|
package/dist/swipe-mode.d.mts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseElement } from './base-element.mjs';
|
|
2
|
-
|
|
3
|
-
declare class SwipeMode extends BaseElement {
|
|
4
|
-
private container;
|
|
5
|
-
private image1;
|
|
6
|
-
private image2;
|
|
7
|
-
private divider;
|
|
8
|
-
private isDragging;
|
|
9
|
-
private currentPosition;
|
|
10
|
-
static get observedAttributes(): string[];
|
|
11
|
-
connectedCallback(): void;
|
|
12
|
-
disconnectedCallback(): void;
|
|
13
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
14
|
-
private render;
|
|
15
|
-
private setupEventListeners;
|
|
16
|
-
private removeEventListeners;
|
|
17
|
-
private handleMouseDown;
|
|
18
|
-
private handleMouseMove;
|
|
19
|
-
private handleMouseUp;
|
|
20
|
-
private handleTouchStart;
|
|
21
|
-
private handleTouchMove;
|
|
22
|
-
private handleTouchEnd;
|
|
23
|
-
private updatePosition;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { SwipeMode };
|
package/dist/two-up-mode.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseElement } from './base-element.mjs';
|
|
2
|
-
|
|
3
|
-
declare class TwoUpMode extends BaseElement {
|
|
4
|
-
private container;
|
|
5
|
-
private containerInner;
|
|
6
|
-
private leftPanel;
|
|
7
|
-
private rightPanel;
|
|
8
|
-
private img1;
|
|
9
|
-
private img2;
|
|
10
|
-
private dimensionInfo;
|
|
11
|
-
static get observedAttributes(): string[];
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
14
|
-
private render;
|
|
15
|
-
private loadImages;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { TwoUpMode };
|