Last active
December 13, 2016 15:54
-
-
Save sglanzer-deprecated/3b66fc823c5239cf35f7503b1ffd8f49 to your computer and use it in GitHub Desktop.
New Twiddle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BaseSvg from './base-svg'; | |
export default BaseSvg.extend({ | |
tagName: 'rect', | |
fill: Ember.computed.readOnly('layerModel.color') | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BaseSvg from './base-svg'; | |
export default BaseSvg.extend({ | |
tagName: 'rect', | |
fill: Ember.computed.readOnly('layerModel.color') | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BaseSvg from './base-svg'; | |
export default BaseSvg.extend({ | |
tagName: 'rect', | |
fill: Ember.computed.readOnly('layerModel.color') | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BaseSvg from './base-svg'; | |
export default BaseSvg.extend({ | |
tagName: 'rect', | |
fill: Ember.computed.readOnly('layerModel.color') | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
attributeBindings: ['fill', 'x', 'y', 'width', 'height'], | |
x: 0, | |
y: 0, | |
width: 20, | |
height: 20 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
dictionary: { | |
'base-svg-0': { | |
getX: () {}, | |
getY: () {}, | |
getWidth: () {}, | |
getHeight: () {} | |
} | |
}, | |
layers: ['0', '1', '2', '3'], | |
model: { | |
0: [ | |
{ type: 'base-svg-0', color: 'red' } | |
], | |
1: [], | |
2: [], | |
3: [] | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.10.6", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.9.0", | |
"ember-data": "2.9.0", | |
"ember-template-compiler": "2.9.0", | |
"ember-testing": "2.9.0" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment