當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript painter.Painter類代碼示例

本文整理匯總了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))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例2: getEffect

export function getEffect(painter: Painter, id: string) {
	return effects[id] || (effects[id] = painter.createEffect('Effect_' + id))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例3: getLayer

export function getLayer(painter: Painter, id: string) {
	return layers[id] || (layers[id] = painter.createLayer('Layer_' + id))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例4: getSketch

export function getSketch(painter: Painter, id: string) {
	return sketches[id] || (sketches[id] = painter.createSketch('Sketch_' + id))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例5: getShade

export function getShade(painter: Painter, id: string) {
	return shades[id] || (shades[id] = painter.createShade('Shade_' + id))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例6: getForm

export function getForm(painter: Painter, id: string) {
	return forms[id] || (forms[id] = painter.createForm('Form_' + id))
}
開發者ID:trivial-space,項目名稱:playground,代碼行數:3,代碼來源:painterState.ts

示例7:

			once(() => {
				painter.sizeMultiplier = state.device.sizeMultiplier
				painter.resize()
				dispatch(baseEvents.RESIZE)
			}, 'resize'),
開發者ID:trivial-space,項目名稱:playground,代碼行數:5,代碼來源:painterState.ts


注:本文中的tvs-painter/dist/painter.Painter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。