MCPcopy Create free account
hub / github.com/editablejs/editable / toInt

Function toInt

packages/ui/src/scroll-area.tsx:970–972  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

968/* -----------------------------------------------------------------------------------------------*/
969
970function toInt(value?: string) {
971 return value ? parseInt(value, 10) : 0
972}
973
974function getThumbRatio(viewportSize: number, contentSize: number) {
975 const ratio = viewportSize / contentSize

Callers 1

scroll-area.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…