Skip to content

Commit 878e83d

Browse files
Merge pull request #248 from lukaszgawrys/docs/custom-connection-type
docs: fix url to custom-conntection-type component in guide
2 parents a9ba2b8 + a6421ac commit 878e83d

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

public/markdown/guides/f-connection-component.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,47 @@
22

33
**Selector:** f-connection
44

5-
The **FConnectionComponent** is a component that represents a connection between nodes in a flow. It allows customization of the connection's appearance and behaviour, including color, type, and interactivity.
5+
The **FConnectionComponent** is a component that represents a connection between nodes in a flow. It allows customization of the connection's appearance and behaviour, including color, type, and interactivity.
66

77
## Inputs
88

9-
- `fConnectionId: InputSignal<string>;` The unique identifier for the component instance. Automatically generated. Default: `f-connection-${uniqueId++}`
9+
- `fConnectionId: InputSignal<string>;` The unique identifier for the component instance. Automatically generated. Default: `f-connection-${uniqueId++}`
1010

11-
- `fReassignDisabled: InputSignal<boolean>;` Indicates whether the connection cannot be reassigned. Default: `false`.
11+
- `fReassignDisabled: InputSignal<boolean>;` Indicates whether the connection cannot be reassigned. Default: `false`.
1212

13-
- `fSelectionDisabled: InputSignal<boolean>;` Indicates whether the connection cannot be selected. Default: `false`.
13+
- `fSelectionDisabled: InputSignal<boolean>;` Indicates whether the connection cannot be selected. Default: `false`.
1414

15-
- `fStartColor: InputSignal<string>;` Sets the color at the start of the connection line. Combined with fEndColor, this produces a gradient from start to end. Default: `black`.
15+
- `fStartColor: InputSignal<string>;` Sets the color at the start of the connection line. Combined with fEndColor, this produces a gradient from start to end. Default: `black`.
1616

17-
- `fEndColor: InputSignal<string>;` Sets the color at the end of the connection line. Use this together with fStartColor to create a two-stop gradient along the connection. Default: `black`.
17+
- `fEndColor: InputSignal<string>;` Sets the color at the end of the connection line. Use this together with fStartColor to create a two-stop gradient along the connection. Default: `black`.
1818

19-
- `fOutputId: InputSignal<string>;` The identifier of the [FNodeOutputDirective](f-node-output-directive) where the connection starts.
19+
- `fOutputId: InputSignal<string>;` The identifier of the [FNodeOutputDirective](f-node-output-directive) where the connection starts.
2020

21-
- `fInputId: InputSignal<string>;` The identifier of the [FNodeInputDirective](f-node-input-directive) where the connection ends.
21+
- `fInputId: InputSignal<string>;` The identifier of the [FNodeInputDirective](f-node-input-directive) where the connection ends.
2222

23-
- `fBehavior: InputSignal<EFConnectionBehavior>;` The behaviour of the connection, affecting its positioning and flexibility. Accepts a value from [EFConnectionBehavior]() enum. Default: `EFConnectionBehavior.FIXED`
23+
- `fBehavior: InputSignal<EFConnectionBehavior>;` The behaviour of the connection, affecting its positioning and flexibility. Accepts a value from [EFConnectionBehavior]() enum. Default: `EFConnectionBehavior.FIXED`
2424

25-
- `fType: InputSignal<EFConnectionType | string>;` The visual type of the connection, such as straight, bezier and etc. Accepts a value from [EFConnectionType]() enum or string for custom connection. Default: `EFConnectionType.STRAIGHT`
25+
- `fType: InputSignal<EFConnectionType | string>;` The visual type of the connection, such as straight, bezier and etc. Accepts a value from [EFConnectionType]() enum or string for custom connection. Default: `EFConnectionType.STRAIGHT`
2626

27-
- `fText: InputSignal<string>;` The text displayed on the connection. Default: `null`
27+
- `fText: InputSignal<string>;` The text displayed on the connection. Default: `null`
2828

29-
- `fTextStartOffset: InputSignal<number>;` The offset of the text from the start of the connection. Default: `50%`
29+
- `fTextStartOffset: InputSignal<number>;` The offset of the text from the start of the connection. Default: `50%`
3030

31-
- `fOffset: InputSignal<number>;` Minimum length of the connection before a curve can occur. Default: `12`
31+
- `fOffset: InputSignal<number>;` Minimum length of the connection before a curve can occur. Default: `12`
3232

33-
- `fRadius: InputSignal<number>;` Radius used for curves. Default: `8`
33+
- `fRadius: InputSignal<number>;` Radius used for curves. Default: `8`
3434

3535
## Styles
36-
- `.f-component` A general class applied to all F components for shared styling.
3736

38-
- `.f-connection` Class specific to the connection component, providing styles for connection representation.
37+
- `.f-component` A general class applied to all F components for shared styling.
3938

40-
- `.f-connection-selection-disabled` Class applied to the connection when `fSelectionDisabled` is `true`.
39+
- `.f-connection` Class specific to the connection component, providing styles for connection representation.
4140

42-
- `.f-connection-reassign-disabled` Class applied to the connection when `fReassignDisabled` is `true.
41+
- `.f-connection-selection-disabled` Class applied to the connection when `fSelectionDisabled` is `true`.
4342

44-
- `.f-selected` Class applied to the connection when it is selected.
43+
- `.f-connection-reassign-disabled` Class applied to the connection when `fReassignDisabled` is `true.
44+
45+
- `.f-selected` Class applied to the connection when it is selected.
4546

4647
## Usage
4748

@@ -58,6 +59,7 @@ Add the `f-connection` component to the [f-canvas](f-canvas-component). Provide
5859
## Examples
5960

6061
#### Different Connection Types
62+
6163
Examples of different connection types. The connection type can be set using the `fType` input. Valid values are `straight`, `bezier` and `segment from [EFConnectionType](e-f-connection-type) enum.
6264
::: ng-component <connection-type></connection-type>
6365
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/connection-type/connection-type.component.html
@@ -67,6 +69,7 @@ Examples of different connection types. The connection type can be set using the
6769
:::
6870

6971
#### Different Connection Behaviours
72+
7073
Examples of different connection behaviours. The connection behaviour can be set using the `fBehavior` input. Valid values are: `fixed`, `fixed_center` and `floating` from [EFConnectionBehaviour](e-f-connection-behaviour) enum.
7174
::: ng-component <connection-behaviour></connection-behaviour>
7275
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/connection-behaviour/connection-behaviour.component.html
@@ -76,17 +79,19 @@ Examples of different connection behaviours. The connection behaviour can be set
7679
:::
7780

7881
#### Custom Connection Type
82+
7983
Examples of providing custom connection types. The connection type can be set using an array of providers.
8084
::: ng-component <custom-connection-type></custom-connection-type>
81-
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/custom-connection-type/custom-connection-type.component.html
82-
[component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/custom-connection-type/custom-connection-type.component.ts
83-
[component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/custom-connection-type/custom-connection-type.component.scss
85+
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/custom-connection-type/custom-connection-type.component.html
86+
[component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/custom-connection-type/custom-connection-type.component.ts
87+
[component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/custom-connection-type/custom-connection-type.component.scss
8488
[common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-guides-examples/_flow-common.scss
8589
:::
8690

8791
#### Reassign Connection
92+
8893
Each connection can be reassigned to another [fNodeInput](f-node-input-directive). The `fReassignDisabled` property can be used to disable this feature. Each connection has a `DragHandle` at the end, drag it to reassign the connection to another [fNodeInput](f-node-input-directive).
89-
::: ng-component <drag-to-reassign></drag-to-reassign>
94+
::: ng-component <drag-to-reassign></drag-to-reassign>
9095
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/drag-to-reassign/drag-to-reassign.component.html
9196
[component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/drag-to-reassign/drag-to-reassign.component.ts
9297
[component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connections/drag-to-reassign/drag-to-reassign.component.scss

0 commit comments

Comments
 (0)