How to use the liquid-fire/constraint function in liquid-fire

To help you get started, we’ve selected a few liquid-fire examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pzuraq / liquid-wormhole / addon / index.js View on Github external
export function onCloseWormhole() {
  return new Constraint('newValue', ({ emptyTarget }) => emptyTarget);
}
github pzuraq / liquid-tether / addon / index.js View on Github external
export function target(name) {
  return new Constraint('parentElementClass', `${name}`);
}
github pzuraq / liquid-wormhole / addon / index.js View on Github external
export function onOpenWormhole() {
  return new Constraint('newValue', ({ emptyTarget }) => !emptyTarget);
}
github pzuraq / liquid-tether / addon / index.js View on Github external
export function onCloseTether() {
  return new Constraint('newValue', (value) => value === null);
}
github pzuraq / liquid-tether / addon / index.js View on Github external
export function onOpenTether() {
  return new Constraint('newValue', (value) => value !== null);
}
github pzuraq / liquid-wormhole / addon / index.js View on Github external
export function target(name) {
  return new Constraint('parentElementClass', `${name}-liquid-target`);
}