mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
[automated] Apply ESLint and Oxfmt fixes
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
> **⚠️ LiteGraph Mode:** These patterns apply to the default LiteGraph canvas rendering. For Vue Nodes 2.0 (DOM-based rendering), see [vue-nodes.md](../features/vue-nodes.md).
|
||||
>
|
||||
> | Mode | Node Access | Example |
|
||||
> | --------- | -------------------------------------- | ---------------------------------------- |
|
||||
> | LiteGraph | `comfyPage.getNodeRefsByTitle()[0]` | `node.click()`, `node.getWidget('seed')` |
|
||||
> | Vue Nodes | `comfyPage.vueNodes.getNodeByTitle()` | Playwright locators, CSS classes |
|
||||
> | Mode | Node Access | Example |
|
||||
> | --------- | ------------------------------------- | ---------------------------------------- |
|
||||
> | LiteGraph | `comfyPage.getNodeRefsByTitle()[0]` | `node.click()`, `node.getWidget('seed')` |
|
||||
> | Vue Nodes | `comfyPage.vueNodes.getNodeByTitle()` | Playwright locators, CSS classes |
|
||||
|
||||
## Getting Node References
|
||||
|
||||
|
||||
@@ -49,14 +49,14 @@ test('drag example', async ({ comfyPage, comfyMouse }) => {
|
||||
|
||||
### Nodes
|
||||
|
||||
| Method | Description |
|
||||
| ---------------------------- | ---------------------------------------- |
|
||||
| `getNodeRefsByTitle(title)` | Get nodes by display title (returns `[]`)|
|
||||
| `getNodeRefById(id)` | Get node by numeric ID |
|
||||
| `getFirstNode()` | Get first node |
|
||||
| `getLastNode()` | Get last node |
|
||||
| `getNodes()` | Get all nodes |
|
||||
| `selectNodes(titles[])` | Ctrl+click to select nodes by title |
|
||||
| Method | Description |
|
||||
| --------------------------- | ----------------------------------------- |
|
||||
| `getNodeRefsByTitle(title)` | Get nodes by display title (returns `[]`) |
|
||||
| `getNodeRefById(id)` | Get node by numeric ID |
|
||||
| `getFirstNode()` | Get first node |
|
||||
| `getLastNode()` | Get last node |
|
||||
| `getNodes()` | Get all nodes |
|
||||
| `selectNodes(titles[])` | Ctrl+click to select nodes by title |
|
||||
|
||||
**Node titles**: Use display names like `'KSampler'`, `'VAE Decode'`, `'CLIP Text Encode (Prompt)'`.
|
||||
These match the `display_name` from node definitions, not the internal type name.
|
||||
|
||||
Reference in New Issue
Block a user