@tetacom/ng-threejs-chart 1.0.1 → 1.2.0
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/.eslintrc.json +3 -5
- package/component/three/custom-series/custom-series.component.d.ts +1 -3
- package/component/three/three-chart/area-3d/area-3d.component.d.ts +5 -4
- package/component/three/three-chart/axes-3d/axes-3d.component.d.ts +0 -1
- package/component/three/three-chart/base-3d-series/base3d-series.component.d.ts +2 -3
- package/component/three/three-chart/block-3d/block-3d.component.d.ts +3 -5
- package/component/three/three-chart/canvas/canvas.component.d.ts +2 -2
- package/component/three/three-chart/line-3d/line-3d.component.d.ts +1 -3
- package/component/three/three-chart/scene/scene.component.d.ts +1 -2
- package/component/three/three-chart/three-chart.component.d.ts +0 -2
- package/fesm2022/tetacom-ng-threejs-chart.mjs +91 -114
- package/fesm2022/tetacom-ng-threejs-chart.mjs.map +1 -1
- package/package.json +3 -5
- package/esm2022/common/model/base-3d-point.mjs +0 -2
- package/esm2022/component/three/custom-series/custom-series.component.mjs +0 -32
- package/esm2022/component/three/public-api.mjs +0 -12
- package/esm2022/component/three/three-chart/area-3d/area-3d.component.mjs +0 -54
- package/esm2022/component/three/three-chart/axes-3d/axes-3d.component.mjs +0 -59
- package/esm2022/component/three/three-chart/base-3d-series/base3d-series.component.mjs +0 -28
- package/esm2022/component/three/three-chart/block-3d/block-3d.component.mjs +0 -74
- package/esm2022/component/three/three-chart/canvas/canvas.component.mjs +0 -22
- package/esm2022/component/three/three-chart/directive/canvas-3d-host.mjs +0 -45
- package/esm2022/component/three/three-chart/directive/public-api.mjs +0 -3
- package/esm2022/component/three/three-chart/directive/series-3d-host.mjs +0 -45
- package/esm2022/component/three/three-chart/line-3d/line-3d.component.mjs +0 -40
- package/esm2022/component/three/three-chart/model/axes-3d-min-max.mjs +0 -2
- package/esm2022/component/three/three-chart/model/axis-3d-point.mjs +0 -2
- package/esm2022/component/three/three-chart/model/base-3d-series.mjs +0 -2
- package/esm2022/component/three/three-chart/model/base-3d-three-point.mjs +0 -2
- package/esm2022/component/three/three-chart/model/block-3d-series.mjs +0 -2
- package/esm2022/component/three/three-chart/model/block3d-point.mjs +0 -2
- package/esm2022/component/three/three-chart/model/enum/public-api.mjs +0 -2
- package/esm2022/component/three/three-chart/model/enum/series-3d-type.mjs +0 -6
- package/esm2022/component/three/three-chart/model/i-3d-chart-config.mjs +0 -2
- package/esm2022/component/three/three-chart/model/line-3d-point.mjs +0 -2
- package/esm2022/component/three/three-chart/model/line-3d-series.mjs +0 -2
- package/esm2022/component/three/three-chart/model/public-api.mjs +0 -11
- package/esm2022/component/three/three-chart/scene/scene.component.mjs +0 -45
- package/esm2022/component/three/three-chart/service/chart-3d.service.mjs +0 -83
- package/esm2022/component/three/three-chart/three-chart.component.mjs +0 -45
- package/esm2022/index.mjs +0 -2
- package/esm2022/tetacom-ng-threejs-chart.mjs +0 -5
package/.eslintrc.json
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
"overrides": [
|
|
5
5
|
{
|
|
6
6
|
"files": ["*.ts"],
|
|
7
|
-
"extends": [
|
|
8
|
-
"plugin:@nx/angular",
|
|
9
|
-
"plugin:@angular-eslint/template/process-inline-templates"
|
|
10
|
-
],
|
|
7
|
+
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
|
|
11
8
|
"rules": {
|
|
12
9
|
"@angular-eslint/directive-selector": [
|
|
13
10
|
"error",
|
|
@@ -24,7 +21,8 @@
|
|
|
24
21
|
"prefix": "ng-components",
|
|
25
22
|
"style": "kebab-case"
|
|
26
23
|
}
|
|
27
|
-
]
|
|
24
|
+
],
|
|
25
|
+
"@angular-eslint/prefer-standalone": "off"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
{
|
|
@@ -2,18 +2,16 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Base3dSeriesComponent } from '../three-chart/base-3d-series/base3d-series.component';
|
|
3
3
|
import { Base3dPoint } from '../../../common/model/base-3d-point';
|
|
4
4
|
import { Chart3dService } from '../three-chart/service/chart-3d.service';
|
|
5
|
-
import { NgtStore } from 'angular-three';
|
|
6
5
|
import { Observable } from 'rxjs';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class CustomSeriesComponent extends Base3dSeriesComponent<Base3dPoint> implements OnInit {
|
|
9
8
|
svc: Chart3dService;
|
|
10
|
-
ngtStore: NgtStore;
|
|
11
9
|
scales: Observable<{
|
|
12
10
|
x: any;
|
|
13
11
|
y: any;
|
|
14
12
|
z: any;
|
|
15
13
|
}>;
|
|
16
|
-
constructor(svc: Chart3dService
|
|
14
|
+
constructor(svc: Chart3dService);
|
|
17
15
|
ngOnInit(): void;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomSeriesComponent, never>;
|
|
19
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomSeriesComponent, "teta-custom-series", never, {}, {}, never, never, true, never>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
import { GridHelper } from 'three';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class Area3dComponent implements OnInit {
|
|
5
6
|
area: GridHelper[];
|
|
6
|
-
protected readonly THREE:
|
|
7
|
-
createArea(): GridHelper[];
|
|
8
|
-
getMainGrid():
|
|
9
|
-
createGrid(gridsCount: number, gridSize: number, rectsInGrid: number, direction: 'vertical' | 'horizontal'): GridHelper[];
|
|
7
|
+
protected readonly THREE: typeof THREE;
|
|
8
|
+
createArea(): THREE.GridHelper[];
|
|
9
|
+
getMainGrid(): THREE.GridHelper;
|
|
10
|
+
createGrid(gridsCount: number, gridSize: number, rectsInGrid: number, direction: 'vertical' | 'horizontal'): THREE.GridHelper[];
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<Area3dComponent, never>;
|
|
12
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<Area3dComponent, "teta-area-3d", never, {}, {}, never, never, true, never>;
|
|
@@ -21,7 +21,6 @@ export declare class Axes3dComponent implements OnDestroy {
|
|
|
21
21
|
x: any;
|
|
22
22
|
};
|
|
23
23
|
generateTicks(extremes: number[], count?: number): any;
|
|
24
|
-
trackBy(i: any): any;
|
|
25
24
|
ngOnDestroy(): void;
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<Axes3dComponent, never>;
|
|
27
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<Axes3dComponent, "teta-axes-3d", never, { "rotation": { "alias": "rotation"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Chart3dService } from '../service/chart-3d.service';
|
|
2
2
|
import { Base3dThreePoint } from '../model/base-3d-three-point';
|
|
3
3
|
import { Base3dSeries } from '../model/base-3d-series';
|
|
4
|
-
import { NgtStore } from 'angular-three';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class Base3dSeriesComponent<T extends Base3dThreePoint> {
|
|
7
6
|
protected svc: Chart3dService;
|
|
8
|
-
protected ngtStore:
|
|
7
|
+
protected ngtStore: import("angular-three").NgtSignalStore<import("angular-three").NgtState>;
|
|
9
8
|
set series(series: Base3dSeries<T>);
|
|
10
9
|
get series(): Base3dSeries<T>;
|
|
11
10
|
protected _series: Base3dSeries<T>;
|
|
12
|
-
constructor(svc: Chart3dService
|
|
11
|
+
constructor(svc: Chart3dService);
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<Base3dSeriesComponent<any>, never>;
|
|
14
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<Base3dSeriesComponent<any>, "teta-base3d-series", never, { "series": { "alias": "series"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
14
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { NgtStore } from 'angular-three';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import * as THREE from 'three';
|
|
5
4
|
import { Texture } from 'three';
|
|
@@ -9,19 +8,18 @@ import { Chart3dService } from '../service/chart-3d.service';
|
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class Block3dComponent<T extends Block3dPoint> extends Base3dSeriesComponent<T> implements OnDestroy {
|
|
11
10
|
svc: Chart3dService;
|
|
12
|
-
ngtStore: NgtStore;
|
|
13
11
|
blocks: Observable<{
|
|
14
12
|
component: THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial>;
|
|
15
13
|
position: number;
|
|
16
14
|
}[][]>;
|
|
17
15
|
private _alive;
|
|
18
16
|
protected readonly Math: Math;
|
|
19
|
-
constructor(svc: Chart3dService
|
|
17
|
+
constructor(svc: Chart3dService);
|
|
20
18
|
createSVGTexture(y: number, y1: number, iconId: number): {
|
|
21
|
-
component:
|
|
19
|
+
component: THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial, THREE.Object3DEventMap>;
|
|
22
20
|
position: number;
|
|
23
21
|
}[];
|
|
24
|
-
createTexturedPlane(texture: Texture, width: number, height: number, visible: boolean):
|
|
22
|
+
createTexturedPlane(texture: Texture, width: number, height: number, visible: boolean): THREE.Mesh<THREE.PlaneGeometry, THREE.MeshBasicMaterial, THREE.Object3DEventMap>;
|
|
25
23
|
ngOnDestroy(): void;
|
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<Block3dComponent<any>, never>;
|
|
27
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<Block3dComponent<any>, "teta-block-3d", never, {}, {}, never, never, true, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { NgtCamera } from 'angular-three';
|
|
1
2
|
import { SceneComponent } from '../scene/scene.component';
|
|
2
3
|
import { I3dChartConfig } from '../model/i-3d-chart-config';
|
|
3
|
-
import { Camera } from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CanvasComponent {
|
|
6
6
|
scene: typeof SceneComponent;
|
|
7
|
-
camera:
|
|
7
|
+
camera: NgtCamera;
|
|
8
8
|
data: I3dChartConfig;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<CanvasComponent, "teta-canvas", never, { "scene": { "alias": "scene"; "required": false; }; "camera": { "alias": "camera"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { NgtStore } from 'angular-three';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { Chart3dService } from '../service/chart-3d.service';
|
|
5
4
|
import { Base3dSeriesComponent } from '../base-3d-series/base3d-series.component';
|
|
@@ -7,11 +6,10 @@ import { Line3dPoint } from '../model/line-3d-point';
|
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class Line3dComponent extends Base3dSeriesComponent<Line3dPoint> implements OnDestroy {
|
|
9
8
|
svc: Chart3dService;
|
|
10
|
-
ngtStore: NgtStore;
|
|
11
9
|
points: Observable<[number, number, number]>;
|
|
12
10
|
private _alive;
|
|
13
11
|
protected readonly Math: Math;
|
|
14
|
-
constructor(svc: Chart3dService
|
|
12
|
+
constructor(svc: Chart3dService);
|
|
15
13
|
getPoints(scales: any): [number, number, number];
|
|
16
14
|
ngOnDestroy(): void;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<Line3dComponent, never>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { NgtStore } from 'angular-three';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { Euler } from 'three';
|
|
5
4
|
import { I3dChartConfig } from '../model/i-3d-chart-config';
|
|
@@ -8,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
8
7
|
export declare class SceneComponent implements OnInit {
|
|
9
8
|
data: Observable<I3dChartConfig>;
|
|
10
9
|
rotation: Euler;
|
|
11
|
-
readonly store:
|
|
10
|
+
readonly store: import("angular-three").NgtSignalStore<import("angular-three").NgtState>;
|
|
12
11
|
protected readonly Math: Math;
|
|
13
12
|
protected readonly chartService: Chart3dService;
|
|
14
13
|
protected readonly _cdr: ChangeDetectorRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgtStore } from 'angular-three';
|
|
3
2
|
import { OrthographicCamera } from 'three';
|
|
4
3
|
import { I3dChartConfig } from './model/i-3d-chart-config';
|
|
5
4
|
import { SceneComponent } from './scene/scene.component';
|
|
@@ -10,7 +9,6 @@ export declare class ThreeChartComponent implements OnInit, OnChanges {
|
|
|
10
9
|
scene: typeof SceneComponent;
|
|
11
10
|
camera: OrthographicCamera;
|
|
12
11
|
protected readonly chartService: Chart3dService;
|
|
13
|
-
protected readonly store: NgtStore;
|
|
14
12
|
protected readonly cdr: ChangeDetectorRef;
|
|
15
13
|
ngOnInit(): void;
|
|
16
14
|
ngOnChanges(changes: SimpleChanges): void;
|