//* TODO optimize three engine

//** TODO add cube shouldn't create program, vbo!

# ** TODO add cube should share geometry, material
# export single event with cube shouldn't increase file size when cube increase!

//** TODO cloned glb ->export: shouldn't increase file size

# ** TODO scenegraph converter->restore: defer dispose if too many




* DONE fix: import app should import config data 
e.g. canvas size

* DONE refactor: move storedInXxx down to ap assemble store

* DONE refactor: remo service.app.dispatchXxx



* DONE feat: ap assemble: Debug should show name


* DONE perf:


TODO pass run test

TODO pass bdd test

* DONE feat: ap assemble: add select all button

* DONE feat: Market: update paging for "xx/page"








* DONE edit backend

** DONE publishedextensions,publishedcontributes,publishedelementassembledata remove fileData，use flatten data instead

TODO update auto upgrade in dependency graph



TODO pass bdd test


TODO update Publish


TODO pass bdd test



TODO pass run test
publish all
import->upgrade->run element

    //TODO fix: why not show add-cube red?
    # TODO can't find published element



//** TODO publishedpackages remove entryExtensionProtocolDisplayName,
entryExtensionProtocolRepoLink,
entryExtensionProtocolDescription,





# * TODO fix select all: duplicate select

* DONE fix stored in package




* DONE refactor

** DONE refactor scenegraph utils

** DONE add contract check
# get isTest from globalThis

# platfrom: get from ap inspector->isDebug

** DONE remove log(e.g. log in Job)


* TODO optimze ui

 
** TODO Platform

- hidden auto upgrade button when auto upgrade...

# - debug should show info and hide button when debuging

- import app should show info under app



# *** TODO ap assemble space

# - fix: if start fail, should keep "choose" button



*** TODO element assemble space
- Selected UI Controls add remove one

# - if change ui control's name, Selected UI Controls should update its name

- UI Controls should show three one row like Extensions

- View add scroll bar(vertical, horri)
- UI Controls, Selected UI Controls add scroll bar(vertical)

- fix: scroll when on the rendered ui control in canvas in visual not work

*** TODO 优化platform ui


** TODO 优化 editor ui





* DONE 在扩展市场、贡献市场、包市场 中选择扩展、贡献、包前、 以及 装配前，先检查是否登录，如果没登录则跳转到登录页面







* DONE fix: remove children fail




* TODO 更新extension, contribute, package, 提供典型的编辑器、引擎组件

# ** TODO editor: remove canvas border

** DONE fix aspect for scene view, game view and published canvas

TODO test publish

** TODO support more glbs

*** TODO support more for standard material

TODO need publish:
# scenegraph s,g
# three api
# webgl1-three s,g
# meta3d-pipeline-editor-webgl1-scene/game-view1




e.g. transmission,//transmission map, ...

# TODO for standard material, transmission is alpha, transmission map is alpha map


TODO add PhysicalMaterial?

    TODO fix:
        viewrect error?
            setViewport
        not all transmission
        gameview no dragon?
            TODO revert, use EffectComposer to get FBO texture
                TODO need auto update 
                remove fbo job
                remove SetSizeAndViewportJob
                SetSizeAndViewport before render
                create and add pass when init, add texture after render
                    no light
                        intensity set to 5
                    viewrect error
                    set clearColor, Alpha to renderPass

                    //game view need loop

fix: load glb error

fix: auto upgrade bug

        # fix fbo: no restore?



# TODO set background(color) instead of setClearColor

# TODO add ambient light

TODO setPixelRatio


TODO compare three effect:
e.g. Dragon, ...


*** DONE support DracoLoader, KTX2loader

TODO need publish:
# meta3d-load-glb



# *** TODO pass run test: load all gltf/ models


# TODO compare three effect



*** DONE run test: publish

TODO support DracoLoader, KTX2loader


TODO update engine package
new meta3d-pipeline-webgl1-three-engine for engine


# TODO why scene so big?

TODO why scene lighter?
tomemap,gamma?
    why flicker?




TODO need publish
# publish action
# three-xxx


* DONE perf: solve memory leak



* DONE perf: optimize editor runtime



TODO need p:
# scenegraph s,g




* TODO publish

