9 पॉइंट द्वारा xguru 2021-11-29 | 1 टिप्पणियां | WhatsApp पर शेयर करें
  • rich text दस्तावेज़ों में सहयोग के लिए CRDT algorithm

  • यह asynchronous तरीके से भी काम कर सकता है, इसलिए लोकल में edit करने के बाद merge करने का तरीका सपोर्ट करता है

→ बिल्कुल Git और PR की तरह

  • लेखक की मंशा को संरक्षित करता है

→ जब formatting edit और text insertion एक साथ हों, तब नए जोड़े गए अक्षरों पर भी formatting लागू होती है

→ concurrent formatting edits के conflicts को handle करना

  • Peritext algorithm

→ मौजूदा plain text CRDT का उपयोग करके rich text दस्तावेज़ों को represent करता है

→ formatting changes को represent करने वाले CRDT operations बनाता है

→ इन operations को लागू करके internal document state बनाता है

→ internal state के आधार पर text editors के लिए उपयुक्त document बनाना

  • Automerge CRDT library के simple version को extend करने वाला TypeScript open source

→ उम्मीद है कि बाद में यह algorithm Automerge में शामिल होगा

→ editor के लिए ProseMirror का उपयोग

1 टिप्पणियां

 
xguru 2021-11-29