Skip to content
Permalink
Browse files

feat(asset-bundle): finish "generateAndDownloadSingleRAB" logic

add main test cases;
  • Loading branch information...
yyc-git committed May 5, 2019
1 parent 75c226b commit c973ebfa91d48178c30bd9b08682a5e2575aaf4a
Showing with 733 additions and 116 deletions.
  1. BIN public/img/mat.jpg
  2. +3 −7 src/core/atom_component/selectTree/SelectTree.re
  3. +294 −38 src/core/composable_component/header/atom_component/asset_bundle/HeaderAssetBundle.re
  4. +6 −2 src/core/composable_component/header/atom_component/asset_bundle/data/HeaderAssetBundleType.re
  5. +11 −20 src/core/composable_component/header/utils/export/HeaderExportPackageUtils.re
  6. +2 −11 ...mposable_component/asset/composable_component/assetChildrenNode/ui/MainEditorAssetChildrenNode.re
  7. +2 −1 ...le_component/asset/composable_component/header/eventHandler/AssetHeaderAddMaterialEventHandler.re
  8. +0 −1 ...eTree_Inspector/composable_component/renderGroup/material/atom_component/MainEditorMaterialMap.re
  9. +13 −2 src/core/composable_component/utils/ImageDataMapUtils.re
  10. +17 −0 src/service/record/editor/asset/ImageDataAssetService.re
  11. +0 −1 src/service/record/editor/data/asset/MaterialDataAssetType.re
  12. +6 −0 src/service/record/ui/selectTree/NodeSelectTreeService.re
  13. +7 −1 src/service/record/ui/selectTree/ValueNodeSelectTreeService.re
  14. +0 −1 src/service/state/editor/CreateEditorStateEditorService.re
  15. +0 −3 src/service/state/editor/asset/MaterialDataAssetEditorService.re
  16. +3 −0 src/service/state/engine/asset_bundle/GenerateAssetBundleEngineService.re
  17. +2 −3 src/service/stateTuple/logic/material/OperateMaterialLogicService.re
  18. +8 −0 test/integration/asset/tool/MainEditorAssetTextureNodeTool.re
  19. +3 −0 test/tool/Base64Tool.re
  20. +3 −2 test/tool/BuildCanvasTool.re
  21. +244 −17 test/unit/composable_component/header/Header_assetBundle_test.re
  22. +7 −5 test/unit/composable_component/header/__snapshots__/Header_assetBundle_test.js.snap
  23. +102 −1 test/unit/composable_component/header/tool/HeaderAssetBundleTool.re
BIN -1.33 KB public/img/mat.jpg
Binary file not shown.
@@ -26,12 +26,6 @@ module Method = {
getValueNodeIconFunc(nodeData.type_, nodeData.value, editorState)
};

let _getNodeName = node =>
switch (node) {
| FolderNode(_, nodeData, _) => nodeData.name
| ValueNode(_, nodeData) => nodeData.name
};

let rec _build = (allNodes, (getValueNodeIconFunc, toggleSelectFunc)) =>
allNodes
/* |> _sortByName */
@@ -65,7 +59,9 @@ module Method = {
| Some(icon) => <img src=icon className="treeNode-icon" />
}
}
<span> {DomHelper.textEl(_getNodeName(node))} </span>
<span>
{DomHelper.textEl(NodeSelectTreeService.getNodeName(node))}
</span>
</li>
{
ReasonReact.array(

0 comments on commit c973ebf

Please sign in to comment.
You can’t perform that action at this time.