@cognite/reveal 4.1.1-dev.20230303 → 4.1.1-dev.20230306
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.
|
@@ -12,15 +12,13 @@ export declare class IconCollection {
|
|
|
12
12
|
private readonly _sharedTexture;
|
|
13
13
|
private readonly _icons;
|
|
14
14
|
private readonly _iconsSprite;
|
|
15
|
-
private readonly _clusterSprites;
|
|
16
15
|
private readonly _computeClustersEventHandler;
|
|
17
16
|
private readonly _onBeforeSceneRenderedEvent;
|
|
18
17
|
get icons(): Image360Icon[];
|
|
19
18
|
constructor(points: Vector3[], sceneHandler: SceneHandler, onBeforeSceneRendered: EventTrigger<BeforeSceneRenderedDelegate>);
|
|
20
|
-
private
|
|
19
|
+
private setIconClustersByLOD;
|
|
21
20
|
private initializeImage360Icons;
|
|
22
21
|
dispose(): void;
|
|
23
|
-
private createClusterTexture;
|
|
24
22
|
private createOuterRingsTexture;
|
|
25
23
|
private createHoverIconTexture;
|
|
26
24
|
}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { Node, PointOctant, PointOctree } from 'sparse-octree';
|
|
5
|
-
import { Box3, Matrix4
|
|
5
|
+
import { Box3, Matrix4 } from 'three';
|
|
6
6
|
import { Image360Icon } from '../icons/Image360Icon';
|
|
7
7
|
export declare class IconOctree extends PointOctree<Image360Icon> {
|
|
8
8
|
private readonly _nodeCenters;
|
|
9
9
|
static getMinimalOctreeBoundsFromIcons(icons: Image360Icon[]): Box3;
|
|
10
10
|
constructor(icons: Image360Icon[], bounds: Box3, maxLeafSize: number);
|
|
11
|
-
|
|
12
|
-
getLODByScreenArea(areaThreshold: number, projection: Matrix4): Set<PointOctant<Image360Icon>>;
|
|
11
|
+
getNodeIcon(node: Node): Image360Icon | undefined;
|
|
12
|
+
getLODByScreenArea(areaThreshold: number, projection: Matrix4, minimumLevel?: number): Set<PointOctant<Image360Icon>>;
|
|
13
13
|
private populateNodeCenters;
|
|
14
14
|
private filterEmptyLeaves;
|
|
15
15
|
private hasChildren;
|
|
16
16
|
private isEmptyLeaf;
|
|
17
17
|
private hasData;
|
|
18
18
|
private isPointOctant;
|
|
19
|
-
private
|
|
20
|
-
|
|
19
|
+
private getClosestToAverageIcon;
|
|
20
|
+
traverseLevelsBottomUp(func: (nodes: Node[]) => void): void;
|
|
21
21
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Group, Texture, Vector3 } from 'three';
|
|
4
|
+
import { Color, Group, Texture, Vector3 } from 'three';
|
|
5
5
|
export declare class InstancedIconSprite extends Group {
|
|
6
6
|
private readonly _geometry;
|
|
7
7
|
private readonly _frontMaterial;
|
|
8
8
|
private readonly _backMaterial;
|
|
9
9
|
private readonly _positionBuffer;
|
|
10
10
|
private readonly _positionAttribute;
|
|
11
|
-
constructor(maxNumberOfPoints: number, spriteTexture: Texture, minPixelSize: number, maxPixelSize: number, radius: number);
|
|
11
|
+
constructor(maxNumberOfPoints: number, spriteTexture: Texture, minPixelSize: number, maxPixelSize: number, radius: number, colorTint?: Color);
|
|
12
12
|
setPoints(points: Vector3[]): void;
|
|
13
13
|
dispose(): void;
|
|
14
14
|
private initializePoints;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.1.1-dev.
|
|
3
|
+
"version": "4.1.1-dev.20230306",
|
|
4
4
|
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
|
|
5
5
|
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
|
|
6
6
|
"repository": {
|
|
@@ -55,12 +55,6 @@
|
|
|
55
55
|
"coverage": "yarn run build:wasm-test && cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage",
|
|
56
56
|
"lint": "eslint . --ext .ts,.js --max-warnings 0 --cache",
|
|
57
57
|
"update-api": "api-extractor run --local && shx rm -rf api-extractor-temp/",
|
|
58
|
-
"prebump": "yarn version --no-git-tag-version && yarn && cd ../documentation && yarn replace-latest-by-next",
|
|
59
|
-
"bump": " yarn bump:commit && yarn bump:tag && yarn bump:push",
|
|
60
|
-
"bump:commit": "git add -A && cross-var git commit -m \"chore(viewer): bump version $npm_package_version\"",
|
|
61
|
-
"bump:tag": "cross-var git tag $npm_package_name@$npm_package_version",
|
|
62
|
-
"bump:push": "git push -u origin head && git push --tags",
|
|
63
|
-
"release": "yarn build:prod && cd dist && yarn publish --non-interactive",
|
|
64
58
|
"ws:serve": "yarn run build:wasm && webpack-dev-server --config packages/webpack.config.js",
|
|
65
59
|
"ws:test": "cd $INIT_CWD && jest --runInBand",
|
|
66
60
|
"ws:test:wasm": "cd $INIT_CWD && wasm-pack test --chrome --headless ./wasm",
|
|
@@ -106,7 +100,6 @@
|
|
|
106
100
|
"@typescript-eslint/parser": "5.52.0",
|
|
107
101
|
"concurrently": "7.6.0",
|
|
108
102
|
"cross-env": "7.0.3",
|
|
109
|
-
"cross-var": "1.1.0",
|
|
110
103
|
"dat.gui": "0.7.9",
|
|
111
104
|
"eslint": "8.26.0",
|
|
112
105
|
"eslint-config-prettier": "8.6.0",
|