UNDO ? REDO ??? ???? ?? Konva.js?? ?? ??? ?? ???? ???? ??? ??????
Apr 04, 2025 pm 04:30 PMkonva.js? ?? ??? ???? ?? ?? redo ?? ??
? ????? ?? ??? ???? UNDO (Ctrl Z) ? redo (Ctrl y) ??? Konva.js ??? ?? ?????? ???? ??? ?????. ??? ??? ?? ??? ????? ?? ??? ???? ??? ??? ???? ??? ??? ?? ? ?? ??? ?????.
?? ?? Command
???? ??????.
??? ?? { ??? () { this.states = []; // ?? ?? ?? ???? ? ??} ????() { ? ??? ????? ( '?? ??? ????? ?'); } undo () { ? ??? ????? ( '?? ?? ??? ???? ?'); } ?? (?) { this.states.push (state); } Restorestate () { this.states.pop () ||? ?????? ?; // ?? ?? ?? NULL? ????? } }
????, ???? ??? ??? ?? ?? ?? ???? ????.
Class DrawRectAngleCommand ?? ?? { ??? (????, ???, ??) { ???(); this.stage = ??; this.layer = ???; this.rect = rect; } ????() { this.savestate (this.layer.tojson ()); // ?? ??? ??? ?? this.layer.add (this.rect); this.layer.draw (); } undo () { this.rect.destroy (); const prevstate = this.restorestate (); if (prevstate) { this.layer.destroychildren (); // ???? ????? .layer = konva.node.create (prevstate, this.stage); // ?? ??? ?? this.stage.add (this.layer); this.layer.draw (); } } }
?? ?? ?? ???? ??????.
??? CommandManager { ??? () { this.undostack = []; this.redostack = []; } executeCommand (??) { command.execute (); this.undostack.push (??); this.redostack = []; // ? ??? ?? ? ? Redo Stack? ?????} undo () { if (this.undostack.length === 0) ??; const command = this.undostack.pop (); command.undo (); this.redostack.push (??); } redo () { if (this.redostack.length === 0) ??; const command = this.redostack.pop (); command.execute (); this.undostack.push (??); } }
????? Konva.js ?? ?????? ??????.
Const Stage = New Konva.Stage ({{ ???? : '????', ?? : Window.InnerWidth, ?? : Window.innerHeight }); const layer = new Konva.layer (); stage.add (???); const CommandManager = new CommandManager (); stage.on ( 'click', (e) => { const rect = new konva.rect ({ X : e.evt.layerx, Y : e.evt.layery, ?? : 50, ?? : 50, ??? : '???', Draggable : True }); const command = new DrawRectAngleCommand (Stage, Layer, rect); CommandManager.ExecuteCommand (??); }); document.addeventListener ( 'keydown', (e) => { if (e.ctrlkey && e.key === 'z') { CommandManager.undo (); } else if (e.ctrlkey && e.key === 'y') { CommandManager.redo (); } });
? ??? ??? ??? ??? ?? ??? ?????. ??, ????, ?? ?? ?? ?? ??? ??? ???? ?? Command
???? ?? ? ? ????. ? ??? execute
???? ?? ??? ???? undo
???? ?? ??? ???????. ????? ?? ?? ?? ??? ???? ?????.
? ??? UNDO ? REDO ??? ???? ?? Konva.js?? ?? ??? ?? ???? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ??? ???? ?? ?? ? ?? ??? ????? ?? ???? ??? ??? ??? ????? ??????. ?? ???? ???? ???? ????? ? ? ??? ??????? ??????? ????? ????? ? ??? ? ?? ???? ?? ?? ???? ???? ???? ??? ??? ??? ????? ?? ?? ??? ?? ?? ??? ? ? ??? ? ????.

?? ?? ??? ??? "??? ??, ?? ?? ?, ? ?? ?? ??"? ??? ?????. ?? ??? ??? ???? ?? ??? ??? ??? Solana, Avalanche ? ?? ???? ??? ???? ????. ??, ?? ???? ??? ? Polkadot, Cosmos? ??? ??? ? ChainLink? ???? ?? ??? ?? ??? ?????. ???? ???? ?? ?? ???? ???? ?? ? ?? ?? ??? ???? ?? ??? ?? ??, ??, ?? ? ?? ?? ??? ?? ??? ?????.

?? Bitcoin? ??? ??? ??? Dogecoin? ??? ???? ???? ??? ??????. ????, ??? ?? ??? ??? ??? ???? Ethereum? ??? ?? ? ??? ??? ??? ??? ??? ????.

stablecoins? ?? ??? ?? ??? ?? ? ?? ???? ???? ??? ???? ?? ??????. ?? ??? ?? ??, ?? ?? ?? ? ????? ? ?? ???? ????. 1. USDT ? USCD? ?? Fiat ?? ?? ??? ?? ?? ???? ?? ?????. 2. DAI? ?? Cryptocurrency ?? ??? ?? ??? ???? ???????. 3. ????? ?? ????? ??? ??? ????? ??? ????. Douyin? ?? ????? ??? ????? ???? ??? ?????. ??? ??? ??? ?? ?? ??, ???? ??? ??? ???? ??, Defi?? ??? ?? ??? ?? ?? ? ??? ?? ? ??? ???? ?????. stablecoins? ???? Binance, Ouyi ? Huobi? ?? ?? ???? ?? ?? ? ? ????.

Cardano? Alonzo Hard Fork ?????? Plutus ??? ?? ???? ???? Cardano? ? ?? ?????? ??? ???? ??? ?? ????? ????? ??????. 1. Plutus? ??? ??, ??? ?? ? ?? ??? ?? ??? ?? Haskell ??? ???????. 2. ????? ? DAPPS ??? ????? ??? ????? ???? Defi ? NFT ???? ??? ???? ????. 3. 2025 ?? Cardano ???? ? ???? ?? ? ????. Basho ??? ?? ? ??, ??? ?? ?? ??? ??, Voltaire ??? ?? ????? ?? ? ?? ??? ?? ????? ?? ?? ??? ??? ?? Cardano? ???? ????.

2025 ?? ?? ??? 5 ?? ??? ?? ?? ?? (USDT), USD Coin (USDC), DAI (DAI), First Digital USD (FDUSD) ? TrueUSD (TUSD)???.

Stablecoins? ?? ??? ?? ?? ??? ???? ?? ???? ???? ??? ?????. ?? ??? ?? ??, ??? ?? ?? ? ???? ???? ? ?? ??? ????. 1. USDT? ??? ?? ???? ?? ??? ?? ?? ???? ?? ?? ??? ????. 2. USDC? Circle and Coinbase? ??? Center Alliance? ?? ???? ???? ??? ?????. 3. DAI? ??? ??? ??? ?? ??? ?? Makerdao? ?? ???? Defi ??? ?? ?????. 4. Busd? Paxos? ????? ?? ?????? ??? ?? ?????? ???????. 5. TUSD? ?? ???? ??? ?? ?? ??? ?? ??? ?????. ???? Binance, Ouyi ? Huobi? ?? ?? ???? ??? ? ????.

2025 ?? ?? ??? ??? ???? BTC, ETH, SOL ?? ????, ?? ?? ??, ??? 2, AI, Defi ? Gaming? ?? ?? ??? ????. 1.BTC? Digital Yellow Metal ??? ETF? ???? ??? ?? ??? ????. 2. ??? ?? ???? ?? ? ?????? ?? ???? ?????. 3. Sol? ??? ?? ?? ? ??? ????? ??????. 4. ??? ?? ???? ???? Oracle? ?????. 5. RNDR? ?? ? GPU ???? ??? AI ??? ?????. 6. imx? web3 ??? ??? ?? ????? ??? ?????. 7. ARB? ??? ?? 2 ??? ??? ?? ???? ?????. 8. MATIC? ?? ?? ??? ?? ?? ??? ?? ????????.
