📚 Documentação inicial do ALETHEIA
- MANUAL-PRODUTO.md: Manual do usuário final - MANUAL-VENDAS.md: Estratégia comercial e vendas - MANUAL-TECNICO.md: Infraestrutura e deploy - README.md: Visão geral do projeto
This commit is contained in:
22
frontend/node_modules/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs
generated
vendored
Normal file
22
frontend/node_modules/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { MotionValue } from '../index.mjs';
|
||||
import { getWillChangeName } from './get-will-change-name.mjs';
|
||||
import { addUniqueItem } from '../../utils/array.mjs';
|
||||
|
||||
class WillChangeMotionValue extends MotionValue {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.values = [];
|
||||
}
|
||||
add(name) {
|
||||
const styleName = getWillChangeName(name);
|
||||
if (styleName) {
|
||||
addUniqueItem(this.values, styleName);
|
||||
this.update();
|
||||
}
|
||||
}
|
||||
update() {
|
||||
this.set(this.values.length ? this.values.join(", ") : "auto");
|
||||
}
|
||||
}
|
||||
|
||||
export { WillChangeMotionValue };
|
||||
Reference in New Issue
Block a user