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 { Data, animate, Override, Animatable } from "framer" | |
const data = Data({ | |
plusOpacity: 1, | |
minusOpacity: 0.3, | |
page: 0 | |
}) | |
export const PlusButtonStatus: Override = () => { | |
return { |
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 { Data, animate, Override, Animatable } from "framer" | |
const STABLE_COLOR = '#FFF' | |
const GROWING_COLOR = '#F00' | |
let isGrowing = false | |
const data = Data({ | |
backgroundColor: Animatable(STABLE_COLOR), | |
likeScale: Animatable(1) |
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 { Data, animate, Override, Animatable } from "framer" | |
let isOriginalSize = true | |
const data = Data({ | |
scale: Animatable(1) | |
}) | |
export const ToggleButton: Override = () => { | |
return { |
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
START_POSITION = 60 | |
ADJUIST = 5 | |
boxMaker = (y) -> new Layer | |
name: 'box' | |
opacity: 0 | |
x: Align.center | |
y: y | |
backgroundColor: Utils.randomColor() | |
width: Screen.width - 10 |
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 Woowahan from 'woowahan'; | |
import template from './main.handlebars'; | |
export const Main = Woowahan.View.create('Main', { | |
template, | |
initialize() { | |
this.setModel({ | |
myList: [ | |
{ all: '부각용', wait: '7', ad: '10', deal: '8' }, |
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
var pad = size => num => (Array(size-String(num).length+1)).join('0')+num; |
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
const myview = Woowahan.View.create('bindExample', { | |
initialize() { | |
this.onDragend = this.onDragend.bind(this); | |
this.super(); | |
}, | |
viewDidMount() { | |
this.map.addListener(markerId, 'dragend', this.onDragend); |
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 * as actions from './actions'; | |
import * as plugins from './plugins'; | |
import myMiddleware from './middleware/mymiddleware'; | |
import reducers from './reducers'; | |
import views from './views'; | |
export default { | |
view: views.shopFinder, | |
setup: function(app) { |
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
function Foo() { | |
// this 는 new 연산자로 호출되었을 때를 전제한다 | |
// this 는 인스턴스 객체 | |
this.myname = 'Foo'; | |
this.displayName = function() { | |
// this 는 인스턴스 객체를 전제한다. | |
// 따라서 반드시 [인스턴스].displayName() 으로 호출되어야한다 | |
// 그렇게 하지 못할 경우 인스턴스 객체를 바인딩 시켜줘야야 this 가 인스턴스 객체를 가르킨다 | |
// ㄴ displayName.bind([인스턴스]) | |
console.log(this.myname); |
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
const fooView = Woowahan.View.create('fooView', { | |
useStore: { | |
rules: 'orderRule, bannerRule', | |
addressInfo: { | |
props: 'si,gu,gun,detail', | |
listen: true | |
}, | |
memberInfo: '*', | |
orderNo: 'orderInfo.orderNo' |