@lafougere/pie-chart-3d 1.0.0 → 1.0.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.
- package/README.md +3 -0
- package/dist/PieChart3d.d.ts +10 -0
- package/dist/PieSlice.d.ts +4 -0
- package/dist/pie-chart-3d.js +1765 -1721
- package/package.json +1 -1
package/README.md
ADDED
package/dist/PieChart3d.d.ts
CHANGED
|
@@ -46,10 +46,20 @@ export declare class PieChart3d extends LitElement {
|
|
|
46
46
|
private labelRenderer;
|
|
47
47
|
private composer;
|
|
48
48
|
private outlinePass;
|
|
49
|
+
private shaderPass;
|
|
49
50
|
light: DirectionalLight;
|
|
51
|
+
private resizeObserver;
|
|
50
52
|
private initialAnimation;
|
|
53
|
+
private actualWidth;
|
|
54
|
+
private actualHeight;
|
|
55
|
+
private resizeTween;
|
|
56
|
+
private lightTween;
|
|
51
57
|
firstUpdated(): void;
|
|
58
|
+
private onResize;
|
|
59
|
+
private updateSize;
|
|
52
60
|
private setupSlices;
|
|
61
|
+
private cnt;
|
|
62
|
+
private fixOverlaps;
|
|
53
63
|
protected updated(_changedProperties: PropertyValues): void;
|
|
54
64
|
private updateColors;
|
|
55
65
|
private onPointerMove;
|
package/dist/PieSlice.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare class PieSlice extends Object3D {
|
|
|
10
10
|
get thickness(): number;
|
|
11
11
|
set labelMargin(value: number);
|
|
12
12
|
get labelMargin(): number;
|
|
13
|
+
set percentMargin(value: number);
|
|
14
|
+
get percentMargin(): number;
|
|
13
15
|
set needsUpdate(value: boolean);
|
|
14
16
|
get needsUpdate(): boolean;
|
|
15
17
|
private _sizeInRadians;
|
|
@@ -25,8 +27,10 @@ export declare class PieSlice extends Object3D {
|
|
|
25
27
|
labelSpan: HTMLSpanElement;
|
|
26
28
|
private label;
|
|
27
29
|
private percentDiv;
|
|
30
|
+
private percentSpan;
|
|
28
31
|
private percentIndicator;
|
|
29
32
|
material: MeshBasicMaterial | MeshLambertMaterial;
|
|
33
|
+
_percentMargin: number;
|
|
30
34
|
constructor(color: number, materialType?: 'basic' | 'lambert');
|
|
31
35
|
update(): void;
|
|
32
36
|
setLabelText(txt: string): void;
|