You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.2 KiB
1 line
1.2 KiB
{"ast":null,"code":"/**\n * Get the width of the vertical window scrollbar if it's visible\n */\nexport default function getBodyScrollbarWidth() {\n let ownerDocument = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n const window = ownerDocument.defaultView;\n return Math.abs(window.innerWidth - ownerDocument.documentElement.clientWidth);\n}","map":{"version":3,"names":["getBodyScrollbarWidth","ownerDocument","document","window","defaultView","Math","abs","innerWidth","documentElement","clientWidth"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/@restart/ui/esm/getScrollbarWidth.js"],"sourcesContent":["/**\n * Get the width of the vertical window scrollbar if it's visible\n */\nexport default function getBodyScrollbarWidth(ownerDocument = document) {\n const window = ownerDocument.defaultView;\n return Math.abs(window.innerWidth - ownerDocument.documentElement.clientWidth);\n}"],"mappings":"AAAA;AACA;AACA;AACA,eAAe,SAASA,qBAAqB,GAA2B;EAAA,IAA1BC,aAAa,uEAAGC,QAAQ;EACpE,MAAMC,MAAM,GAAGF,aAAa,CAACG,WAAW;EACxC,OAAOC,IAAI,CAACC,GAAG,CAACH,MAAM,CAACI,UAAU,GAAGN,aAAa,CAACO,eAAe,CAACC,WAAW,CAAC;AAChF"},"metadata":{},"sourceType":"module"} |