node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

16
server/node_modules/@radix-ui/rect/dist/index.d.mts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
export type Measurable = {
getBoundingClientRect(): ClientRect;
};
/**
* Observes an element's rectangle on screen (getBoundingClientRect)
* This is useful to track elements on the screen and attach other elements
* that might be in different layers, etc.
*/
export function observeElementRect(
/** The element whose rect to observe */
elementToObserve: Measurable,
/** The callback which will be called when the rect changes */
callback: CallbackFn): () => void;
type CallbackFn = (rect: ClientRect) => void;
//# sourceMappingURL=index.d.ts.map

16
server/node_modules/@radix-ui/rect/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
export type Measurable = {
getBoundingClientRect(): ClientRect;
};
/**
* Observes an element's rectangle on screen (getBoundingClientRect)
* This is useful to track elements on the screen and attach other elements
* that might be in different layers, etc.
*/
export function observeElementRect(
/** The element whose rect to observe */
elementToObserve: Measurable,
/** The callback which will be called when the rect changes */
callback: CallbackFn): () => void;
type CallbackFn = (rect: ClientRect) => void;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"mappings":"AAAA,yBAAkB;IAAE,qBAAqB,IAAI,UAAU,CAAA;CAAE,CAAC;AAE1D;;;;GAIG;AACH;AACE,wCAAwC;AACxC,gBAAgB,EAAE,UAAU;AAC5B,8DAA8D;AAC9D,QAAQ,EAAE,UAAU,cAwCrB;AAKD,kBAAkB,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC","sources":["packages/core/rect/src/packages/core/rect/src/observeElementRect.ts","packages/core/rect/src/packages/core/rect/src/index.ts","packages/core/rect/src/index.ts"],"sourcesContent":[null,null,"export { observeElementRect } from './observeElementRect';\nexport type { Measurable } from './observeElementRect';\n"],"names":[],"version":3,"file":"index.d.ts.map"}

70
server/node_modules/@radix-ui/rect/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,70 @@
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "observeElementRect", () => $f98399f7d3345a24$export$5a50ff2cde8c3802);
/**
* Observes an element's rectangle on screen (getBoundingClientRect)
* This is useful to track elements on the screen and attach other elements
* that might be in different layers, etc.
*/ function $f98399f7d3345a24$export$5a50ff2cde8c3802(/** The element whose rect to observe */ elementToObserve, /** The callback which will be called when the rect changes */ callback) {
const observedData1 = $f98399f7d3345a24$var$observedElements.get(elementToObserve);
if (observedData1 === undefined) {
// add the element to the map of observed elements with its first callback
// because this is the first time this element is observed
$f98399f7d3345a24$var$observedElements.set(elementToObserve, {
rect: {},
callbacks: [
callback
]
});
if ($f98399f7d3345a24$var$observedElements.size === 1) // start the internal loop once at least 1 element is observed
$f98399f7d3345a24$var$rafId = requestAnimationFrame($f98399f7d3345a24$var$runLoop);
} else {
// only add a callback for this element as it's already observed
observedData1.callbacks.push(callback);
callback(elementToObserve.getBoundingClientRect());
}
return ()=>{
const observedData = $f98399f7d3345a24$var$observedElements.get(elementToObserve);
if (observedData === undefined) return; // start by removing the callback
const index = observedData.callbacks.indexOf(callback);
if (index > -1) observedData.callbacks.splice(index, 1);
if (observedData.callbacks.length === 0) {
// stop observing this element because there are no
// callbacks registered for it anymore
$f98399f7d3345a24$var$observedElements.delete(elementToObserve);
if ($f98399f7d3345a24$var$observedElements.size === 0) // stop the internal loop once no elements are observed anymore
cancelAnimationFrame($f98399f7d3345a24$var$rafId);
}
};
} // ========================================================================
// module internals
let $f98399f7d3345a24$var$rafId;
const $f98399f7d3345a24$var$observedElements = new Map();
function $f98399f7d3345a24$var$runLoop() {
const changedRectsData = []; // process all DOM reads first (getBoundingClientRect)
$f98399f7d3345a24$var$observedElements.forEach((data, element)=>{
const newRect = element.getBoundingClientRect(); // gather all the data for elements whose rects have changed
if (!$f98399f7d3345a24$var$rectEquals(data.rect, newRect)) {
data.rect = newRect;
changedRectsData.push(data);
}
}); // group DOM writes here after the DOM reads (getBoundingClientRect)
// as DOM writes will most likely happen with the callbacks
changedRectsData.forEach((data)=>{
data.callbacks.forEach((callback)=>callback(data.rect)
);
});
$f98399f7d3345a24$var$rafId = requestAnimationFrame($f98399f7d3345a24$var$runLoop);
} // ========================================================================
/**
* Returns whether 2 rects are equal in values
*/ function $f98399f7d3345a24$var$rectEquals(rect1, rect2) {
return rect1.width === rect2.width && rect1.height === rect2.height && rect1.top === rect2.top && rect1.right === rect2.right && rect1.bottom === rect2.bottom && rect1.left === rect2.left;
}
//# sourceMappingURL=index.js.map

1
server/node_modules/@radix-ui/rect/dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

66
server/node_modules/@radix-ui/rect/dist/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,66 @@
/**
* Observes an element's rectangle on screen (getBoundingClientRect)
* This is useful to track elements on the screen and attach other elements
* that might be in different layers, etc.
*/ function $0f3bbd680c63c15c$export$5a50ff2cde8c3802(/** The element whose rect to observe */ elementToObserve, /** The callback which will be called when the rect changes */ callback) {
const observedData1 = $0f3bbd680c63c15c$var$observedElements.get(elementToObserve);
if (observedData1 === undefined) {
// add the element to the map of observed elements with its first callback
// because this is the first time this element is observed
$0f3bbd680c63c15c$var$observedElements.set(elementToObserve, {
rect: {},
callbacks: [
callback
]
});
if ($0f3bbd680c63c15c$var$observedElements.size === 1) // start the internal loop once at least 1 element is observed
$0f3bbd680c63c15c$var$rafId = requestAnimationFrame($0f3bbd680c63c15c$var$runLoop);
} else {
// only add a callback for this element as it's already observed
observedData1.callbacks.push(callback);
callback(elementToObserve.getBoundingClientRect());
}
return ()=>{
const observedData = $0f3bbd680c63c15c$var$observedElements.get(elementToObserve);
if (observedData === undefined) return; // start by removing the callback
const index = observedData.callbacks.indexOf(callback);
if (index > -1) observedData.callbacks.splice(index, 1);
if (observedData.callbacks.length === 0) {
// stop observing this element because there are no
// callbacks registered for it anymore
$0f3bbd680c63c15c$var$observedElements.delete(elementToObserve);
if ($0f3bbd680c63c15c$var$observedElements.size === 0) // stop the internal loop once no elements are observed anymore
cancelAnimationFrame($0f3bbd680c63c15c$var$rafId);
}
};
} // ========================================================================
// module internals
let $0f3bbd680c63c15c$var$rafId;
const $0f3bbd680c63c15c$var$observedElements = new Map();
function $0f3bbd680c63c15c$var$runLoop() {
const changedRectsData = []; // process all DOM reads first (getBoundingClientRect)
$0f3bbd680c63c15c$var$observedElements.forEach((data, element)=>{
const newRect = element.getBoundingClientRect(); // gather all the data for elements whose rects have changed
if (!$0f3bbd680c63c15c$var$rectEquals(data.rect, newRect)) {
data.rect = newRect;
changedRectsData.push(data);
}
}); // group DOM writes here after the DOM reads (getBoundingClientRect)
// as DOM writes will most likely happen with the callbacks
changedRectsData.forEach((data)=>{
data.callbacks.forEach((callback)=>callback(data.rect)
);
});
$0f3bbd680c63c15c$var$rafId = requestAnimationFrame($0f3bbd680c63c15c$var$runLoop);
} // ========================================================================
/**
* Returns whether 2 rects are equal in values
*/ function $0f3bbd680c63c15c$var$rectEquals(rect1, rect2) {
return rect1.width === rect2.width && rect1.height === rect2.height && rect1.top === rect2.top && rect1.right === rect2.right && rect1.bottom === rect2.bottom && rect1.left === rect2.left;
}
export {$0f3bbd680c63c15c$export$5a50ff2cde8c3802 as observeElementRect};
//# sourceMappingURL=index.mjs.map

File diff suppressed because one or more lines are too long