How to use the min-dash.pick function in min-dash

To help you get started, we’ve selected a few min-dash 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 bpmn-io / cmmn-js / test / spec / features / auto-resize / AutoResizeSpec.js View on Github external
function getBounds(shape) {
  return pick(shape, [ 'x', 'y', 'width', 'height' ]);
}
github bpmn-io / bpmn-js / test / matchers / BoundsMatchers.js View on Github external
function getPosition(s) {
  return pick(getBounds(s), POSITION_ATTRS);
}
github bpmn-io / bpmn-js / test / matchers / BoundsMatchers.js View on Github external
function getDimensions(s) {
  return pick(getBounds(s), DIMENSION_ATTRS);
}
github bpmn-io / bpmn-js / test / matchers / ConnectionMatchers.js View on Github external
function extractPoints(point) {
  return pick(point, POSITION_ATTRS);
}
github bpmn-io / bpmn-js / test / spec / features / modeling / lanes / AddLaneSpec.js View on Github external
function getBounds(element) {
  return pick(element, [ 'x', 'y', 'width', 'height' ]);
}
github bpmn-io / bpmn-js / test / spec / features / modeling / lanes / SplitLaneSpec.js View on Github external
function getBounds(element) {
  return pick(element, [ 'x', 'y', 'width', 'height' ]);
}
github bpmn-io / bpmn-js / test / spec / features / modeling / lanes / DeleteLaneSpec.js View on Github external
function getBounds(element) {
  return pick(element, [ 'x', 'y', 'width', 'height' ]);
}
github bpmn-io / diagram-js / lib / features / resize / Resize.js View on Github external
Resize.prototype.canResize = function(context) {
  var rules = this._rules;

  var ctx = pick(context, [ 'newBounds', 'shape', 'delta', 'direction' ]);

  return rules.allowed('shape.resize', ctx);
};
github zeebe-io / zeebe-modeler / app / lib / file-system.js View on Github external
function createFile(oldFile, newFile) {
  if (!newFile) {
    newFile = oldFile;
    oldFile = {};
  } else {
    oldFile = pick(oldFile, FILE_PROPERTIES);
  }

  newFile = pick(newFile, FILE_PROPERTIES);

  if (newFile.path) {
    newFile.name = path.basename(newFile.path);
  }

  return assign({}, oldFile, newFile);
}