Skip to content

perf: faster getDistance calculations #2485

perf: faster getDistance calculations

perf: faster getDistance calculations #2485

Re-run triggered February 1, 2025 13:37
Status Failure
Total duration 5m 51s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 10 warnings
build: packages/core/src/lib/interactivity/detect.js#L10
Replace `⏎··Math.sqrt(((x2·-·x1)·**·2)·+·((y2·-·y1)·**·2));` with `·Math.sqrt((x2·-·x1)·**·2·+·(y2·-·y1)·**·2)`
build: packages/core/src/lib/interactivity/detect.js#L23
Replace `··const·angle·=·Math.atan2(y2·-·y1,·x2·-·x1)·-·Math.PI·/·2;` with `····const·angle·=·Math.atan2(y2·-·y1,·x2·-·x1)·-·Math.PI·/·2`
build: packages/core/src/lib/interactivity/detect.js#L25
Replace `··return·angle·>·0·?·angle·:·Math.PI·*·2·+·angle;` with `····return·angle·>·0·?·angle·:·Math.PI·*·2·+·angle`
build: packages/core/src/lib/interactivity/detect.js#L40
Replace `x·<=·cursorX·&&·cursorX·<=·x·+·width·&&·y·<=·cursorY·&&·cursorY·<=·y·+·height;` with `··x·<=·cursorX·&&·cursorX·<=·x·+·width·&&·y·<=·cursorY·&&·cursorY·<=·y·+·height`
build
Process completed with exit code 2.
build: packages/annotations/src/types.ts#L10
Unexpected any. Specify a different type
build: packages/arcs/src/arc_link_labels/canvas.ts#L2
Do not use "@ts-ignore" because it alters compilation errors
build: packages/arcs/src/arc_link_labels/useArcLinks.ts#L15
Unexpected any. Specify a different type
build: packages/arcs/src/arc_link_labels/useArcLinks.ts#L15
Unexpected any. Specify a different type
build: packages/arcs/src/centers.ts#L4
Do not use "@ts-ignore" because it alters compilation errors
build: packages/arcs/src/centers.ts#L94
Unexpected any. Specify a different type
build: packages/arcs/src/centers.ts#L94
Unexpected any. Specify a different type
build: packages/arcs/src/types.ts#L30
Unexpected any. Specify a different type
build: packages/axes/src/compute.ts#L3
Do not use "@ts-ignore" because it alters compilation errors
build: packages/axes/src/compute.ts#L121
Unexpected any. Specify a different type