14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
import { isCSSVariableName } from 'motion-dom';
|
|
|
|
const scaleCorrectors = {};
|
|
function addScaleCorrector(correctors) {
|
|
for (const key in correctors) {
|
|
scaleCorrectors[key] = correctors[key];
|
|
if (isCSSVariableName(key)) {
|
|
scaleCorrectors[key].isCSSVariable = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
export { addScaleCorrector, scaleCorrectors };
|