Revert "dosc: flowgram.ai url fix"

This reverts commit 676e2202eb82d67366bad0fa66fb99ebe97b2554.
This commit is contained in:
dragooncjw 2025-02-27 18:04:25 +08:00
parent d6cca3d56c
commit 875d90fdec
34 changed files with 53 additions and 53 deletions

View File

@ -32,7 +32,7 @@ our name.
<div>
<p>
<a href="https://flowgram.ai/examples/fixed-layout/fixed-feature-overview.html">
<a href="https://flowgram.aiexamples/fixed-layout/fixed-feature-overview.html">
Fixed Layout
</a>
</p>
@ -45,7 +45,7 @@ our name.
</div>
<div>
<p>
<a href="https://flowgram.ai/examples/free-layout/free-feature-overview.html">
<a href="https://flowgram.aiexamples/free-layout/free-feature-overview.html">
Free Layout
</a>
</p>

View File

@ -2,7 +2,7 @@
Flow document (fixed layout), stores all node data of the process
[> API Detail](https://flowgram.ai/auto-docs/document/classes/FlowDocument.html)
[> API Detail](https://flowgram.aiauto-docs/document/classes/FlowDocument.html)
```ts pure
import { useClientContext } from '@flowgram.ai/fixed-layout-editor'

View File

@ -2,7 +2,7 @@
Node entity, `WorkflowNodeEntity` is the alias for the node used for free layout nodes, the node entity uses the [ECS](/flowgram.ai/guide/concepts/ECS.html) architecture, is `Entity`
[> API Detail](https://flowgram.ai/auto-docs/document/classes/FlowNodeEntity-1.html)
[> API Detail](https://flowgram.aiauto-docs/document/classes/FlowNodeEntity-1.html)
## Properties
@ -23,8 +23,8 @@ Node entity, `WorkflowNodeEntity` is the alias for the node used for free layout
- parent: `FlowNodeEntity | undefined` Get the parent node
- originParent: `FlowNodeEntity | undefined` Get the original parent node, this is used to find the entire virtual branch for the first node of the fixed layout branch (orderIcon)
- allChildren: `FlowNodeEntity[]` Get all child nodes, not including collapsed child nodes
- transform: [FlowNodeTransformData](https://flowgram.ai/auto-docs/document/classes/FlowNodeTransformData.html) Get the node's transform matrix data
- renderData: [FlowNodeRenderData](https://flowgram.ai/auto-docs/document/classes/FlowNodeRenderData.html) Get the node's render data, including render status
- transform: [FlowNodeTransformData](https://flowgram.aiauto-docs/document/classes/FlowNodeTransformData.html) Get the node's transform matrix data
- renderData: [FlowNodeRenderData](https://flowgram.aiauto-docs/document/classes/FlowNodeRenderData.html) Get the node's render data, including render status
## Methods

View File

@ -2,7 +2,7 @@
Canvas instance
[> API Detail](https://flowgram.ai/auto-docs/core/classes/Playground.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/Playground.html)
```ts pure
const ctx = useClientContext()
@ -14,7 +14,7 @@ console.log(ctx.playground)
Canvas configuration, provides zoom, scroll, etc.
[> API Detail](https://flowgram.ai/auto-docs/core/classes/PlaygroundConfigEntity.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/PlaygroundConfigEntity.html)
### Properties
- zoom `number` Current zoom ratio

View File

@ -2,7 +2,7 @@
Free layout document data, inherited from [FlowDocument](/flowgram.ai/api/core/flow-document.html)
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowDocument.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowDocument.html)
```ts pure
import { useClientContext } from '@flowgram.ai/free-layout-editor'

View File

@ -2,5 +2,5 @@
Free layout line entity
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowLineEntity.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowLineEntity.html)

View File

@ -2,7 +2,7 @@
Free layout line management, currently attached to the free layout document
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowLinesManager.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowLinesManager.html)
```
import { useClientContext } from '@flowgram.ai/free-layout-editor'

View File

@ -4,7 +4,7 @@ Provides methods related to node rendering, and the form returned is equivalent
## Fixed Layout
- Return: [NodeRenderReturnType](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/NodeRenderReturnType.html)
- Return: [NodeRenderReturnType](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/NodeRenderReturnType.html)
```tsx pure

View File

@ -2,4 +2,4 @@
Clipboard Service
[> API Detail](https://flowgram.ai/auto-docs/core/interfaces/ClipboardService.html)
[> API Detail](https://flowgram.aiauto-docs/core/interfaces/ClipboardService.html)

View File

@ -2,7 +2,7 @@
Command Service, needs to be used with [Shortcuts](/flowgram.ai/guide/advanced/interactive/shortcuts.html)
[> API Detail](https://flowgram.ai/auto-docs/command/interfaces/CommandService.html)
[> API Detail](https://flowgram.aiauto-docs/command/interfaces/CommandService.html)
```Usage

View File

@ -2,7 +2,7 @@
Node operation service, currently used for fixed layout, free layout can currently be operated directly through WorkflowDocument, and will be abstracted out as operation in the future
[> API Detail](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/FlowOperationService.html)
[> API Detail](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/FlowOperationService.html)
```typescript pure
const operationService = useService<FlowOperationService>(FlowOperationService)

View File

@ -1,6 +1,6 @@
## HistoryService
[> API Detail](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/HistoryService.html)
[> API Detail](https://flowgram.aiauto-docs/fixed-history-plugin/classes/HistoryService.html)
## Redo/Undo

View File

@ -2,7 +2,7 @@
Used to control selected nodes
[> API Detail](https://flowgram.ai/auto-docs/core/classes/SelectionService.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/SelectionService.html)
## Usage
```tsx pure

View File

@ -2,7 +2,7 @@
Get the form capabilities of the node, needs to be enabled node engine
[> API Detail](https://flowgram.ai/auto-docs/editor/functions/getNodeForm.html)
[> API Detail](https://flowgram.aiauto-docs/editor/functions/getNodeForm.html)
## Usage

View File

@ -407,7 +407,7 @@ export const HistoryList = () => {
```
## 3. API List
### 3.1. [OperationMeta](https://flowgram.ai/auto-docs/fixed-history-plugin/interfaces/OperationMeta.html)
### 3.1. [OperationMeta](https://flowgram.aiauto-docs/fixed-history-plugin/interfaces/OperationMeta.html)
OperationMeta, used to define an operation
### 3.2. [Operation](https://flowgram.aiauto-docs/fixed-history-plugin/interfaces/Operation.html)

View File

@ -85,7 +85,7 @@ flowDocument.onNodeCreate(({ node }) => {
```
More usage, see: [Class: FlowNodeVariableData](https://flowgram.ai/auto-docs/editor/classes/FlowNodeVariableData.html)
More usage, see: [Class: FlowNodeVariableData](https://flowgram.aiauto-docs/editor/classes/FlowNodeVariableData.html)
### Set Output Variables through Form Effect

View File

@ -17,12 +17,12 @@ hero:
alt: Logo
features:
- title: Coze
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.ai/ref-coze.png"/></div>
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.airef-coze.png"/></div>
icon: 🏃🏻‍♀️
- title: Feishu Low-Code Platform Workflow
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.ai/ref-apaas.png"/></div>
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.airef-apaas.png"/></div>
icon: 📦
- title: Feishu Bitable
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.ai/ref-bitable.png"/></div>
details: <div class="rspress-doc" style="height&#58 180px; min-height&#58 0px"><img class="medium-zoom-image" style="border-radius&#58 8px;height&#58 180px;" src="https://flowgram.airef-bitable.png"/></div>
icon: 🎨
---

View File

@ -2,7 +2,7 @@
流程数据文档 (固定布局), 存储流程的所有节点数据
[> API Detail](https://flowgram.ai/auto-docs/document/classes/FlowDocument.html)
[> API Detail](https://flowgram.aiauto-docs/document/classes/FlowDocument.html)
```ts pure
import { useClientContext } from '@flowgram.ai/fixed-layout-editor'

View File

@ -2,7 +2,7 @@
节点实体,`WorkflowNodeEntity` 为节点别名用于自由布局节点, 节点实体采用 [ECS](/flowgram.ai/guide/concepts/ECS.html) 架构, 为 `Entity`
[> API Detail](https://flowgram.ai/auto-docs/document/classes/FlowNodeEntity-1.html)
[> API Detail](https://flowgram.aiauto-docs/document/classes/FlowNodeEntity-1.html)
## Properties
@ -23,8 +23,8 @@
- parent: `FlowNodeEntity | undefined` 获取父节点
- originParent: `FlowNodeEntity | undefined` 获取原始父节点, 这个用于固定布局分支的第一个节点(orderIcon) 找到整个虚拟分支
- allChildren: `FlowNodeEntity[]` 获取所有子节点, 不包含折叠的子节点
- transform: [FlowNodeTransformData](https://flowgram.ai/auto-docs/document/classes/FlowNodeTransformData.html) 获取节点的 transform 矩阵数据
- renderData: [FlowNodeRenderData](https://flowgram.ai/auto-docs/document/classes/FlowNodeRenderData.html) 获取节点的渲染数据, 包含渲染状态等
- transform: [FlowNodeTransformData](https://flowgram.aiauto-docs/document/classes/FlowNodeTransformData.html) 获取节点的 transform 矩阵数据
- renderData: [FlowNodeRenderData](https://flowgram.aiauto-docs/document/classes/FlowNodeRenderData.html) 获取节点的渲染数据, 包含渲染状态等
## Methods

View File

@ -2,7 +2,7 @@
画布实例
[> API Detail](https://flowgram.ai/auto-docs/core/classes/Playground.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/Playground.html)
```ts pure
const ctx = useClientContext()
@ -14,7 +14,7 @@ console.log(ctx.playground)
画布配置, 提供 zoom、scroll 等状态
[> API Detail](https://flowgram.ai/auto-docs/core/classes/PlaygroundConfigEntity.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/PlaygroundConfigEntity.html)
### Properties
- zoom `number` 当前缩放比例

View File

@ -2,7 +2,7 @@
自由布局文档数据,继承自 [FlowDocument](/flowgram.ai/api/core/flow-document.html)
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowDocument.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowDocument.html)
```ts pure
import { useClientContext } from '@flowgram.ai/free-layout-editor'

View File

@ -2,5 +2,5 @@
自由布局线条实体
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowLineEntity.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowLineEntity.html)

View File

@ -2,7 +2,7 @@
自由布局线条管理, 目前挂在自由布局 document 下边
[> API Detail](https://flowgram.ai/auto-docs/free-layout-core/classes/WorkflowLinesManager.html)
[> API Detail](https://flowgram.aiauto-docs/free-layout-core/classes/WorkflowLinesManager.html)
```
import { useClientContext } from '@flowgram.ai/free-layout-editor'

View File

@ -4,7 +4,7 @@
## 固定布局
- Return: [FixedLayoutPluginContext](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/FixedLayoutPluginContext.html)
- Return: [FixedLayoutPluginContext](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/FixedLayoutPluginContext.html)
```ts pure
import { useClientContext } from '@flowgram.ai/fixed-layout-editor'
@ -20,7 +20,7 @@ console.log(ctx.get(MyService)) // 获取任意的 IOC 模块,详细见 自定
## 自由布局
- Return: [FreeLayoutPluginContext](https://flowgram.ai/auto-docs/free-layout-editor/interfaces/FreeLayoutPluginContext.html)
- Return: [FreeLayoutPluginContext](https://flowgram.aiauto-docs/free-layout-editor/interfaces/FreeLayoutPluginContext.html)
```ts pure
import { useClientContext } from '@flowgram.ai/free-layout-editor'

View File

@ -4,7 +4,7 @@
## 固定布局
- Return: [NodeRenderReturnType](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/NodeRenderReturnType.html)
- Return: [NodeRenderReturnType](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/NodeRenderReturnType.html)
```tsx pure
@ -51,7 +51,7 @@ export const BaseNode = ({ node }: { node: FlowNodeEntity }) => {
## 自由布局
- Return: [NodeRenderReturnType](https://flowgram.ai/auto-docs/free-layout-core/interfaces/NodeRenderReturnType.html)
- Return: [NodeRenderReturnType](https://flowgram.aiauto-docs/free-layout-core/interfaces/NodeRenderReturnType.html)
```tsx pure
import { WorkflowNodeRenderer, useNodeRender } from '@flowgram.ai/free-layout-editor';

View File

@ -4,7 +4,7 @@
## 固定布局
- Return: [PlaygroundTools](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/PlaygroundTools.html)
- Return: [PlaygroundTools](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/PlaygroundTools.html)
```tsx pure
import { useEffect, useState } from 'react'
import { usePlaygroundTools, useClientContext } from '@flowgram.ai/fixed-layout-editor';
@ -38,7 +38,7 @@ export function Tools() {
## 自由布局
- Return: [PlaygroundTools](https://flowgram.ai/auto-docs/free-layout-editor/interfaces/PlaygroundTools.html)
- Return: [PlaygroundTools](https://flowgram.aiauto-docs/free-layout-editor/interfaces/PlaygroundTools.html)
```tsx pure
import { usePlaygroundTools, useClientContext } from '@flowgram.ai/free-layout-editor';

View File

@ -2,4 +2,4 @@
剪贴板服务
[> API Detail](https://flowgram.ai/auto-docs/core/interfaces/ClipboardService.html)
[> API Detail](https://flowgram.aiauto-docs/core/interfaces/ClipboardService.html)

View File

@ -2,7 +2,7 @@
指令服务,需要和 [Shortcuts](/flowgram.ai/guide/advanced/interactive/shortcuts.html) 一起使用
[> API Detail](https://flowgram.ai/auto-docs/command/interfaces/CommandService.html)
[> API Detail](https://flowgram.aiauto-docs/command/interfaces/CommandService.html)
```Usage

View File

@ -2,7 +2,7 @@
节点操作服务, 目前用于固定布局,自由布局现阶段可通过 WorkflowDocument 直接操作, 后续也会抽象出 operation
[> API Detail](https://flowgram.ai/auto-docs/fixed-layout-editor/interfaces/FlowOperationService.html)
[> API Detail](https://flowgram.aiauto-docs/fixed-layout-editor/interfaces/FlowOperationService.html)
```typescript pure
const operationService = useService<FlowOperationService>(FlowOperationService)

View File

@ -1,6 +1,6 @@
## HistoryService
[> API Detail](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/HistoryService.html)
[> API Detail](https://flowgram.aiauto-docs/fixed-history-plugin/classes/HistoryService.html)
## Redo/Undo

View File

@ -2,7 +2,7 @@
用于控制选择的节点
[> API Detail](https://flowgram.ai/auto-docs/core/classes/SelectionService.html)
[> API Detail](https://flowgram.aiauto-docs/core/classes/SelectionService.html)
## Usage
```tsx pure

View File

@ -2,7 +2,7 @@
获取节点的表单能力,需要开启 节点引擎才能使用
[> API Detail](https://flowgram.ai/auto-docs/editor/functions/getNodeForm.html)
[> API Detail](https://flowgram.aiauto-docs/editor/functions/getNodeForm.html)
## Usage

View File

@ -407,15 +407,15 @@ export const HistoryList = () => {
```
## 3. API 列表
### 3.1. [OperationMeta](https://flowgram.ai/auto-docs/fixed-history-plugin/interfaces/OperationMeta.html)
### 3.1. [OperationMeta](https://flowgram.aiauto-docs/fixed-history-plugin/interfaces/OperationMeta.html)
操作元数据,用以定义一个操作
### 3.2. [Operation](https://flowgram.ai/auto-docs/fixed-history-plugin/interfaces/Operation.html)
### 3.2. [Operation](https://flowgram.aiauto-docs/fixed-history-plugin/interfaces/Operation.html)
操作数据,通过 type 和 OperationMeta 关联
### 3.3. [OperationService](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/OperationService.html)
### 3.3. [OperationService](https://flowgram.aiauto-docs/fixed-history-plugin/classes/OperationService.html)
[onApply](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/OperationService.html#onapply)
[onApply](https://flowgram.aiauto-docs/fixed-history-plugin/classes/OperationService.html#onapply)
想监听某个触发的操作可以使用onApply
```tsx pure
@ -425,14 +425,14 @@ useService(OperationService).onApply((op: Operation) => {
})
```
### 3.4. [HistoryService](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/HistoryService.html)
### 3.4. [HistoryService](https://flowgram.aiauto-docs/fixed-history-plugin/classes/HistoryService.html)
History 模块核心 API 暴露的Service
### 3.5. [UndoRedoService](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/UndoRedoService.html)
### 3.5. [UndoRedoService](https://flowgram.aiauto-docs/fixed-history-plugin/classes/UndoRedoService.html)
管理 UndoRedo 栈的服务
### 3.6. [HistoryStack](https://flowgram.ai/auto-docs/fixed-history-plugin/classes/HistoryStack.html)
### 3.6. [HistoryStack](https://flowgram.aiauto-docs/fixed-history-plugin/classes/HistoryStack.html)
历史栈,监听所有 push undo redo 操作,并记录到栈里面
### 3.7. [HistoryDatabase](https://flowgram.ai/auto-docs/history-storage/classes/HistoryDatabase.html)
### 3.7. [HistoryDatabase](https://flowgram.aiauto-docs/history-storage/classes/HistoryDatabase.html)
持久化数据库操作

View File

@ -85,7 +85,7 @@ flowDocument.onNodeCreate(({ node }) => {
```
更多用法,详见:[Class: FlowNodeVariableData](https://flowgram.ai/auto-docs/editor/classes/FlowNodeVariableData.html)
更多用法,详见:[Class: FlowNodeVariableData](https://flowgram.aiauto-docs/editor/classes/FlowNodeVariableData.html)
### 通过表单副作用设置输出变量