whyour

Results 175 comments of whyour

@copilot useEditorProps plugins 是个函数 createFreeNodePanelPlugin 需要传参 renderer: NodePanel plugins: ()=>[ createFreeSnapPlugin({}), createFreeLinesPlugin({}), createFreeNodePanelPlugin({}), createMinimapPlugin({}), createPanelManagerPlugin({}), ], export const createPanelManagerPlugin = () => create({ factories: [nodeFormPanelFactory, testRunPanelFactory, problemPanelFactory], layerProps: { children:...

@copilot minimap 显示到弹窗外面了,而且没有 新建节点 放大缩小等工具操作栏

@copilot import { DockedPanelLayer } from '@flowgram.ai/panel-manager-plugin'; 增加 DockedPanelLayer

@copilot 参考 https://github.com/bytedance/flowgram.ai/tree/main/apps/demo-free-layout/src/components/tools 的工具写法

@copilot 自定义 plugin 参考 https://github.com/bytedance/flowgram.ai/blob/main/apps/demo-free-layout/src/plugins/panel-manager-plugin/index.tsx 创建 DemoTools

@copilot 1. playgroundTools 获取比例是 playgroundTools.zoom,修改缩放是 playgroundTools.config.updateZoom 2. 添加 node 用的是 useAddNode 参考https://github.com/bytedance/flowgram.ai/blob/main/apps/demo-free-layout/src/components/add-node/use-add-node.ts 3. minimap 也放到 tools 中,参考 https://github.com/bytedance/flowgram.ai/blob/main/apps/demo-free-layout/src/components/tools/minimap.tsx, 移除 useEditorProps 的 createMinimapPlugin 4. Expected 1 arguments, but got 0.ts(2554) index.d.ts(2142,...

@copilot src/pages/scenario/flowgram/plugins/tools-plugin/DemoTools.tsx:24:9: 24 │ import { NODE_TYPES } from '../../nodes/constants'; ╵ ~~~~~~~~~~ fatal - Error: Build failed with 1 error: src/pages/scenario/flowgram/plugins/tools-plugin/DemoTools.tsx:24:9: ERROR: No matching export in "src/pages/scenario/flowgram/nodes/constants.ts" for import "NODE_TYPES"

```conf # httpd-vhosts.conf ServerName test.com ProxyRequests Off ProxyPreserveHost On Require all granted ProxyPass / http://127.0.0.1:5700/ ProxyPassReverse / http://127.0.0.1:5700/ ``` 测试了下没问题