UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

15 lines (14 loc) 368 B
"use strict"; import { computed, ref } from "@vue/reactivity"; import { watch } from "@vue-reactivity/watch"; const MAX = Math.floor(Number.MAX_SAFE_INTEGER / 100); export function incrementRefSafely(_ref) { if (_ref.value > MAX) { _ref.value = 0; } else { _ref.value += 1; } } export function dummyReadRefVal(value) { } export { computed, ref, watch };