UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

16 lines 679 B
import { equalsValue } from "../interface/utils/getDefaultValue"; import { getRuntimeValue } from "../utils/getRuntimeValue"; import { inputSkipChangeSet } from "../collections/inputSkipChangeSet"; import createInternalSystem from "./utils/createInternalSystem"; export const refreshInputSystem = createInternalSystem("refreshInputSystem", { data: {}, update: (input, { key, params, target }) => { const val = getRuntimeValue(target, key); if (equalsValue(target, val, params[key], key)) return; params[key] = val; inputSkipChangeSet.add(input); input.refresh(); } }); //# sourceMappingURL=refreshInputSystem.js.map