shop-components 0.1.11 → 0.1.13

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.
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import { Application } from 'pixi.js';
3
- import { Texture as Texture3 } from 'three';
3
+ import { BufferGeometry, Texture as Texture3 } from 'three';
4
4
  import { Viewport } from 'pixi-viewport';
5
5
  export interface CropperConfigs {
6
6
  canvasWidth: number;
@@ -23,6 +23,7 @@ export declare class Cropper extends LitElement {
23
23
  width: number;
24
24
  height: number;
25
25
  };
26
+ get supports(): string[];
26
27
  private _imageUrl;
27
28
  private _canvasScale;
28
29
  texture: Texture3;
@@ -33,6 +34,7 @@ export declare class Cropper extends LitElement {
33
34
  boundRect: HTMLDivElement | undefined;
34
35
  axiosX: HTMLDivElement | undefined;
35
36
  axiosY: HTMLDivElement | undefined;
37
+ pathD: string;
36
38
  get imageScale(): {
37
39
  x: number;
38
40
  y: number;
@@ -47,6 +49,7 @@ export declare class Cropper extends LitElement {
47
49
  private _wheelEvent;
48
50
  resize(width: number, height: number): void;
49
51
  protected firstUpdated(_changedProperties: PropertyValues): void;
52
+ setUV(geometry: BufferGeometry): void;
50
53
  add(url: string, logoSize: {
51
54
  width: number;
52
55
  height: number;
@@ -3,9 +3,9 @@ import { Tween } from '@tweenjs/tween.js';
3
3
  import { Scene3D } from '../scene';
4
4
  export declare class SizeBox extends Object3D {
5
5
  private _box3;
6
- private _line1;
7
- private _line2;
8
- private _line3;
6
+ private _line11;
7
+ private _line12;
8
+ private _line13;
9
9
  private _outline;
10
10
  private _object;
11
11
  _fitAnimation: Tween<any> | undefined;
@@ -0,0 +1,11 @@
1
+ import { Object3D, Vector3 } from 'three';
2
+ export declare class SizeLine extends Object3D {
3
+ private _startWith?;
4
+ private _line;
5
+ private _text;
6
+ private _tw;
7
+ constructor(_startWith?: string | undefined);
8
+ reset(): void;
9
+ update(start: Vector3, end: Vector3): void;
10
+ updateSize(pos: Vector3): void;
11
+ }
@@ -1,4 +1,4 @@
1
- import { Box3, Mesh, Object3D, Vector2, Vector3 } from 'three';
1
+ import { Box3, Mesh, Object3D, Vector3 } from 'three';
2
2
  export declare const clearThreeObjectMesh: (object: Object3D) => void;
3
3
  export declare const uuid: () => string;
4
4
  export declare function getElementLeftPosition(element: any): {
@@ -38,4 +38,3 @@ export declare const generateLogoSize: (m: Mesh) => {
38
38
  width: number;
39
39
  height: number;
40
40
  };
41
- export declare function findPositionFromUV(mesh: Mesh, targetUV: Vector2): Vector3 | null;