Skip to content

Commit

Permalink
fix: Build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Nov 20, 2024
1 parent bcedd4f commit 767e236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/devtools/src/omnigraph/map.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { AbstractMap } from '@/common/map'

import { serializePoint, serializeVector } from './coordinates'

import type { OmniPoint, OmniVector } from './types'

export class OmniPointMap<V, K extends OmniPoint = OmniPoint> extends AbstractMap<K, V> {
[Symbol.toStringTag] = 'OmniPointMap'
override [Symbol.toStringTag] = 'OmniPointMap'

protected override hash(point: K) {
return serializePoint(point)
}
}

export class OmniVectorMap<V, K extends OmniVector = OmniVector> extends AbstractMap<K, V> {
[Symbol.toStringTag] = 'OmniVectorMap'
override [Symbol.toStringTag] = 'OmniVectorMap'

protected override hash(vector: K) {
return serializeVector(vector)
Expand Down

0 comments on commit 767e236

Please sign in to comment.