Skip to content
Snippets Groups Projects
Select Git revision
  • 24e621a8d8424721ed21ce329d2a28dbf8c35343
  • master default protected
  • LUFA-170418
  • LUFA-151115
  • LUFA-140928
  • LUFA-140302
  • LUFA-130901
  • LUFA-130901-BETA
  • LUFA-130303
  • LUFA-120730
  • LUFA-120730-BETA
  • LUFA-120219
  • LUFA-120219-BETA
  • LUFA-111009
  • LUFA-111009-BETA
  • LUFA-110528
  • LUFA-110528-BETA
17 results

LEDMixer.cs

Blame
  • LatticeMenuView.js 1.35 KiB
    /**
     * Created by aghassaei on 1/26/15.
     */
    
    define(['jquery', 'underscore', 'menuParent', 'plist', 'lattice', 'text!latticeMenuTemplate'], function($, _, MenuParentView, plist, lattice, template){
    
        return MenuParentView.extend({
    
            events: {
            },
    
    
            _initialize: function(){
                this.listenTo(lattice, "change", this.render);
                this.listenTo(this.model, "change:superCellRange", this.render);
            },
    
            _makeTemplateJSON: function(){
                var aspectRatio = {aspectRatio: {x:1,y:1,z:1}};
                if (lattice.xScale) aspectRatio = {aspectRatio: {x:lattice.xScale(0), y:lattice.yScale(0), z:lattice.zScale(0)}};
                return _.extend(_.extend(lattice.toJSON(), this.model.toJSON()), plist, aspectRatio);
            },
    
            template: _.template(template)
        });
    });
    
    //Cell Separation <% if (connectionType != "freeformFace"){ %>(xy, z): &nbsp;&nbsp;<input data-type="xy" value="<%= cellSeparation.xy %>" placeholder="XY" class="form-control numberInput cellSeparation" type="text">\
    //&nbsp;<input data-type="z" value="<%= cellSeparation.z %>" placeholder="Z" class="form-control numberInput cellSeparation" type="text">\
    //<% } else { %>( radial ): &nbsp;&nbsp;<input data-type="xy" value="<%= cellSeparation.xy %>" placeholder="XY" class="form-control numberInput cellSeparation" type="text"><% } %>\
    //<br/><br/>\