Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Toggle DOM view #38

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open

Toggle DOM view #38

wants to merge 47 commits into from

Conversation

chrislatorres
Copy link
Contributor

@chrislatorres chrislatorres commented Jun 13, 2019

This PR closes #32 and adds a button to toggle between "DOM" and "layers" view modes on the right sidebar.

To-do:

  • dom edit attributes (started, not complete)
  • scroll dom view when overflowed

studiodomview

chrislatorres and others added 30 commits June 2, 2019 13:31
Default viewport vector to all zeroes
Engine render green screen
Hide controller ray when in orbit controls mode
@chrislatorres
Copy link
Contributor Author

chrislatorres commented Jun 13, 2019

  • Need to update viewport on toggle 238a800 :

resizdomviewCapture

@chrislatorres
Copy link
Contributor Author

This might be dropped in favor of integrating devtools instead. This will replace the DOM view, console, etc.

Will also add performance tracking and adding a debugger.

@@ -127,6 +142,7 @@ class DomList extends React.Component {

this.state = {
hoverEl: null,
domView: this.props.domView,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's generally not good practice to latch props onto state.

Do we need to do this or could we just thread the props through?

@avaer avaer force-pushed the master branch 3 times, most recently from ce5284c to b294cb4 Compare August 5, 2019 22:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Layers" and "DOM" buttons to switch into DOM view
2 participants