本文整理汇总了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'),