Skip to content

Commit

Permalink
chore: remove redundant package (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisjoshua authored Nov 19, 2024
1 parent 87ae506 commit 86604c4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 74 deletions.
1 change: 0 additions & 1 deletion packages/converters/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

export { booleanToNumber } from './boolean-to-number';
export { toBoolean } from './to-boolean';
export { toDigits } from './to-digits';
export { xyzToBbox } from './xyz-to-bbox';
export type { BoundingBoxTuple, XyzTuple } from './xyz-to-bbox';
24 changes: 0 additions & 24 deletions packages/converters/src/to-digits/index.test.ts

This file was deleted.

28 changes: 0 additions & 28 deletions packages/converters/src/to-digits/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"vitest": "^2.1.3"
},
"dependencies": {
"@accelint/converters": "workspace:*",
"@accelint/math": "workspace:*",
"@accelint/predicates": "workspace:*",
"typescript": "^5.6.3"
},
Expand Down
12 changes: 3 additions & 9 deletions packages/geo/src/coordinates/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import { toDigits } from '@accelint/converters';
import { round } from '@accelint/math';
import { matchDD } from './match';
import { isPositiveDirection, normalizeDirection, negate } from './utils';

Expand All @@ -23,15 +23,9 @@ export function normalizeDD(val: string) {
const latPositive = isPositiveDirection(latDirection, matches[1]);
const lonPositive = isPositiveDirection(lonDirection, matches[6]);

const latParsed = toDigits(
Number.parseFloat(`${matches[2]}${matches[3]}`),
6,
);
const latParsed = round(Number.parseFloat(`${matches[2]}${matches[3]}`), 6);

const lonParsed = toDigits(
Number.parseFloat(`${matches[7]}${matches[8]}`),
6,
);
const lonParsed = round(Number.parseFloat(`${matches[7]}${matches[8]}`), 6);

const latValue = latPositive ? latParsed : negate(latParsed);
const lonValue = lonPositive ? lonParsed : negate(lonParsed);
Expand Down
21 changes: 10 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86604c4

Please sign in to comment.