Skip to content

Commit e7fec72

Browse files
committed
fix(docs): isLoop
1 parent 77123c7 commit e7fec72

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

content/en/docs/24.FAQ.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ keywords:
216216
All available rendering plugins can display a loop connection if it has specified `isLoop` property
217217

218218
```ts
219-
const connection = new ClassicPreset.Connection(source, output, target, input, { isLoop: true })
219+
class Connection extends ClassicPreset.Connection {
220+
isLoop = false
221+
}
222+
223+
const connection = new Connection(source, output, target, input)
224+
225+
connection.isLoop = true
220226
```
221227
::
222228
::qa{question="What is the minimal TypeScript version required?" id="minimum-ts-version"}

content/uk/docs/24.FAQ.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,13 @@ keywords:
214214
Усі доступні плагіни візуалізації можуть відображати циклічне з’єднання, якщо в ньому вказано властивість `isLoop`
215215

216216
```ts
217-
const connection = new ClassicPreset.Connection(source, output, target, input, { isLoop: true })
217+
class Connection extends ClassicPreset.Connection {
218+
isLoop = false
219+
}
220+
221+
const connection = new Connection(source, output, target, input)
222+
223+
connection.isLoop = true
218224
```
219225
::
220226
::qa{question="Яка мінімальна версія TypeScript потрібна?" id="minimum-ts-version"}

0 commit comments

Comments
 (0)