本文整理匯總了TypeScript中tvs-painter/dist/painter.Painter類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Painter類的具體用法?TypeScript Painter怎麽用?TypeScript Painter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Painter類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: getFrame
export function getFrame(painter: Painter, id: string) {
return frames[id] || (frames[id] = painter.createFrame('Frame_' + id))
}
示例2: getEffect
export function getEffect(painter: Painter, id: string) {
return effects[id] || (effects[id] = painter.createEffect('Effect_' + id))
}
示例3: getLayer
export function getLayer(painter: Painter, id: string) {
return layers[id] || (layers[id] = painter.createLayer('Layer_' + id))
}
示例4: getSketch
export function getSketch(painter: Painter, id: string) {
return sketches[id] || (sketches[id] = painter.createSketch('Sketch_' + id))
}
示例5: getShade
export function getShade(painter: Painter, id: string) {
return shades[id] || (shades[id] = painter.createShade('Shade_' + id))
}
示例6: getForm
export function getForm(painter: Painter, id: string) {
return forms[id] || (forms[id] = painter.createForm('Form_' + id))
}
示例7:
once(() => {
painter.sizeMultiplier = state.device.sizeMultiplier
painter.resize()
dispatch(baseEvents.RESIZE)
}, 'resize'),