How to use the type.AppFile function in type

To help you get started, we’ve selected a few type 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 basisjs / basisjs / src / devpanel / view / file-graph / view / graph / index.js View on Github external
var Value = require('basis.data').Value;
var Node = require('basis.ui').Node;
var Slider = require('basis.ui.slider').Slider;
var Balloon = require('basis.ui.popup').Balloon;
var File = require('type').AppFile;
var FileLink = require('type').AppFileLink;
var Viva = require('./vivagraph.js');

var fileInfoPopup = new Balloon({
  template: resource('./template/popup.tmpl'),
  binding: {
    filename: 'data:',
    name: 'data:',
    parent: 'data:'
  },

  dir: 'center top center bottom',
  autorotate: true,
  handler: {
    delegateChanged: function(){
      if (this.delegate)
github basisjs / basisjs / src / devpanel / view / file-graph / view / file-stat / index.js View on Github external
var Value = require('basis.data').Value;
var MapFilter = require('basis.data.dataset').MapFilter;
var Filter = require('basis.data.dataset').Filter;
var Split = require('basis.data.dataset').Split;
var count = require('basis.data.index').count;
var Node = require('basis.ui').Node;
var AppFile = require('type').AppFile;
var RuntimeFile = require('type').RuntimeFile;

var activatedFilesSlots = new MapFilter({
  source: new Filter({
    source: RuntimeFile.all,
    rule: 'data.resolved'
  }),
  map: function(runtimeFile){
    return AppFile.getSlot(runtimeFile.data.filename);
  }
});
var activatedFiles = new MapFilter({
  source: activatedFilesSlots,
  ruleEvents: 'targetChanged',
  map: function(slot){
    return slot.target;