UNPKG

wonder.js

Version:
17 lines (13 loc) 709 B
'use strict'; var ArrayService$Wonderjs = require("../../../service/atom/ArrayService.js"); var BuildMaterialUtils$Wonderjs = require("./utils/BuildMaterialUtils.js"); var OperateBasicMaterialMainService$Wonderjs = require("../../../service/state/main/material/basic/OperateBasicMaterialMainService.js"); function build(param, materialDataArr, state) { var color = OperateBasicMaterialMainService$Wonderjs.getColor(param[0], state); return ArrayService$Wonderjs.push(/* record */[ /* colorFactor */BuildMaterialUtils$Wonderjs.buildColorFactor(color), /* name */param[1] ], materialDataArr); } exports.build = build; /* ArrayService-Wonderjs Not a pure module */