Skip to content

Commit

Permalink
GLTF: inline emod function to remove loaders.gl/math dependency (#2808)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Nov 27, 2023
1 parent 2391140 commit 617d83d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/gltf/src/lib/extensions/utils/3d-tiles-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import type {ImageType} from '@loaders.gl/images';
import {GLTFScenegraph} from '../../api/gltf-scenegraph';
import {getComponentTypeFromArray} from '../../gltf-utils/gltf-utils';
import {getImageData} from '@loaders.gl/images';
import {emod} from '@loaders.gl/math';

function emod(n: number): number {
return ((n % 1) + 1) % 1;
}

export type NumericComponentType =
| 'INT8'
Expand Down

0 comments on commit 617d83d

Please sign in to comment.