Skip to content

Commit

Permalink
Rewrite three/addons paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Jan 16, 2025
1 parent ebef069 commit f3d1a4e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/layers/hexbin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const THREE = window.THREE
Object3D
};

import * as _bfg from 'three/addons/utils/BufferGeometryUtils.js';
import * as _bfg from 'three/examples/jsm/utils/BufferGeometryUtils.js';
const bfg = Object.assign({}, _bfg);
const BufferGeometryUtils = bfg.BufferGeometryUtils || bfg;

Expand Down
2 changes: 1 addition & 1 deletion src/layers/hexedPolygons.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const THREE = window.THREE
Vector3
};

import * as _bfg from 'three/addons/utils/BufferGeometryUtils.js';
import * as _bfg from 'three/examples/jsm/utils/BufferGeometryUtils.js';
const bfg = Object.assign({}, _bfg);
const BufferGeometryUtils = bfg.BufferGeometryUtils || bfg;

Expand Down
2 changes: 1 addition & 1 deletion src/layers/htmlElements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CSS2DObject } from 'three/addons/renderers/CSS2DRenderer.js';
import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer.js';

const THREE = {
...(window.THREE
Expand Down
4 changes: 2 additions & 2 deletions src/layers/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
Vector3
} from 'three';

import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
import { Font } from 'three/addons/loaders/FontLoader.js';
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';

const THREE = {
...(window.THREE
Expand Down
6 changes: 3 additions & 3 deletions src/layers/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const THREE = window.THREE
Vector3
};

import { Line2 } from 'three/addons/lines/Line2.js';
import { LineGeometry } from 'three/addons/lines/LineGeometry.js';
import { LineMaterial } from 'three/addons/lines/LineMaterial.js';
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry.js';
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';

import Kapsule from 'kapsule';
import accessorFn from 'accessor-fn';
Expand Down
2 changes: 1 addition & 1 deletion src/layers/points.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const THREE = window.THREE
Vector3
};

import * as _bfg from 'three/addons/utils/BufferGeometryUtils.js';
import * as _bfg from 'three/examples/jsm/utils/BufferGeometryUtils.js';
const bfg = Object.assign({}, _bfg);
const BufferGeometryUtils = bfg.BufferGeometryUtils || bfg;

Expand Down

0 comments on commit f3d1a4e

Please sign in to comment.