partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

ResistorCalculator.js (730B)


      1 Ext.define("PartKeepr.ResistorCalculator",{
      2     extend:"Ext.window.Window",
      3     alias: 'widget.ResistorCalculator',
      4     
      5     width: 300,
      6     height: 300,
      7     layout: 'fit',
      8     initComponent: function () {
      9     	
     10     	//this.resistorValueField = Ext.create("Ext.form.field.Number");
     11     	this.resistorDisplay = Ext.create("PartKeepr.ResistorDisplay", {
     12     		viewBox: false
     13     	});
     14     	
     15     	/*this.resistorDisplay = Ext.create('Ext.draw.Component', {
     16     	    viewBox: false,
     17     	    items: [{
     18     	        type: 'circle',
     19     	        fill: '#79BB3F',
     20     	        radius: 100,
     21     	        x: 100,
     22     	        y: 100
     23     	    }]
     24     	});*/ 
     25     	
     26     	this.items = [ this.resistorDisplay ];
     27     	this.callParent();
     28     }
     29 });