コンテンツへスキップ

pivotick v3.0.0


ピボット / 歴史 / GraphHistoryLike

インターフェース: GraphHistoryLike ​

定義: interfaces/History.ts:136

キャンバスが保持および表示するものに関する、境界付きのセッションスコープの履歴。 持ち込まれたもの、持ち出されたもの、隠されたもの。

graph.history に到達しました。それを読んで運転してください — エントリーの種類は閉じられているため、 消費者はそこに録音することはできません。すべてのエントリには、特定の要素の名前が付けられています これにより、シールされたエントリをスパンの途中でスキップできます。 その周りが調子が悪くなる。

メソッド ​

canRedo() ​

canRedo(): boolean

定義: interfaces/History.ts:142

返品 ​

boolean


canUndo() ​

canUndo(): boolean

定義: interfaces/History.ts:141

返品 ​

boolean


clear() ​

clear(): void

定義: interfaces/History.ts:158

すべてを忘れてください。キャンバスはそのまま残ります。

返品 ​

void


entries() ​

entries(): HistoryEntry[]

定義: interfaces/History.ts:138

実行されたものと元に戻せるもの、新しいものから順、つまりメニューが表示される順序。

返品 ​

HistoryEntry[]


on() ​

on(listener): () => void

定義: interfaces/History.ts:156

履歴が変更されるたびに起動します。ディスポーザーを返します。

パラメータ ​

listener ​

(history) => void

返品 ​

(): void

返品 ​

void


preview() ​

preview(throughEntryId, direction?): HistoryPreview

定義: interfaces/History.ts:154

そのスパンが触れるもの - ホバーハイライトとメニュー自体のコピーを駆動するもの。

パラメータ ​

throughEntryId ​

string

direction? ​

"undo" | "redo"

返品 ​

HistoryPreview


redo() ​

redo(throughEntryId?): HistoryEntry[]

定義: interfaces/History.ts:152

throughEntryId まで遡ってスパンをやり直します。デフォルトでは最も近いもの。

パラメータ ​

throughEntryId? ​

string

返品 ​

HistoryEntry[]


redoable() ​

redoable(): HistoryEntry[]

定義: interfaces/History.ts:140

元に戻されたものとやり直せるものは、新しいものから順に並べます。新しいアクションによって空になります。

返品 ​

HistoryEntry[]


undo() ​

undo(throughEntryId?): HistoryEntry[]

定義: interfaces/History.ts:150

最新のエントリから throughEntryId までのスパンを元に戻します。の デフォルトでは最新のエントリだけが表示されます。 dataBatchChanged として着陸します。

パラメータ ​

throughEntryId? ​

string

返品 ​

HistoryEntry[]

エントリは実際には逆にされ、最新のものから順に - 封印されたエントリが渡されます 終わって、その中には入っていません。