Skip to content

Support custom renderers #343

@thetarnav

Description

@thetarnav

Currently the debugger assumes that components render HTML elements only.
This makes the locator and DOM-tree mode useless when using custom renderers like threejs, pixijs or lightningjs.

Supporting custom renderers would require looking at the following functionalities, and coming up with an interface for customization:

  • Tree (structure):
    • Resolving elements from a component
    • Mapping components to elements
    • Element-tree (DOM) mode
  • Inspector
    • Handle displaying custom elements as values
  • Locator
    • Displaying element bounds on the page
    • Getting element at mouse position

Related previous attempt at this: #302
These should probably be fixed as well: #342, #339

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggerRelated to the debugger packageenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions