Commit Graph

212 Commits

Author SHA1 Message Date
Kevin Jahns d064e6e96e UndoManager accepts an array of types as scope. Implements #156 2019-06-25 02:26:18 +02:00
Kevin Jahns 03458dc641 Port Undo/Redo approach with a clean API 2019-06-23 13:04:14 +02:00
Kevin Jahns 1aac245b93 New types dont fire events - fixes #155 2019-06-18 17:41:19 +02:00
Kevin Jahns b4e5c5cc1f Correctly insert embed when using YText.applyDelta 2019-06-13 10:30:39 +02:00
Kevin Jahns 2192aa5821 Use generic Item with typed content to reduce cache misses 2019-05-28 14:18:20 +02:00
Kevin Jahns 3fba4f25a5 Merge pull request #153 from calibr/124-text-embeds
process embeds in YText.toDelta
2019-05-25 13:04:10 +02:00
Kevin Jahns 66c35d8499 testing: do not stringify array values before comparing 2019-05-25 12:54:30 +02:00
Kevin Jahns ef6c382e20 fix array iterator on merged content. fixes #152 2019-05-25 12:49:08 +02:00
calibr ee45b4fdd6 process embeds in YText.toDelta 2019-05-25 13:48:57 +03:00
Kevin Jahns 37a6d68543 implement support for boolean values. fixes #151 2019-05-25 03:12:56 +02:00
Kevin Jahns 72e470c5f0 Fix ytext event.delta - items that are synced and deleted
When items are added and deleted in the same transaction, event.delta would recognize them as added (though they are actually deleted). Now it just ignores them.
2019-05-19 20:42:53 +02:00
Kevin Jahns 8c36f67f0b rework and document api 2019-05-07 13:44:23 +02:00
Kevin Jahns 32c4c09072 update parent._map when splitting an item 2019-04-26 19:54:00 +02:00
Kevin Jahns 8c5a06bbf8 fix gc when item is deleted in observer call 2019-04-26 18:37:38 +02:00
Kevin Jahns a336cc167c order observer and transaction cleanups after one another 2019-04-26 13:31:00 +02:00
Kevin Jahns 21d86cd2be Delete all children of ItemType when it is deleted 2019-04-26 12:29:28 +02:00
Kevin Jahns 729c1f16b8 fix test provider 2019-04-20 00:02:40 +02:00
Kevin Jahns 759ecb21f7 rename transaction._replacedItems to transaction._mergeStructs 2019-04-11 00:31:43 +02:00
Kevin Jahns 2ef11a5344 splitting an item must always happen inside a transaction, because we always need to check if we can merge it back 2019-04-11 00:23:08 +02:00
Kevin Jahns 9fe47e98d5 type._map points to the last element instead to enable merging of deletes in Map 2019-04-10 21:01:59 +02:00
Kevin Jahns 654510f3ff read struct refs as array 2019-04-10 18:52:22 +02:00
Kevin Jahns 52ec698635 implement some of the commented todos 2019-04-09 04:01:37 +02:00
Kevin Jahns 1b06f59d1c fixed remaining tests 2019-04-09 00:48:24 +02:00
Kevin Jahns 12bcc4d080 fix remaining random tests 2019-04-09 00:31:28 +02:00
Kevin Jahns e1a9f314a7 fixed part of split/merge logic 2019-04-08 13:41:28 +02:00
Kevin Jahns 7a111de186 refactor read/write of structs 2019-04-07 23:08:08 +02:00
Kevin Jahns 90b3fa9dd9 fixed merging and adapted writeStructs to write end of message 2019-04-07 12:47:04 +02:00
Kevin Jahns c635963747 Compare origin ids in item.integrate 2019-04-06 15:55:20 +02:00
Kevin Jahns 1b17b5e400 fixed 10 tests 2019-04-06 13:00:32 +02:00
Kevin Jahns 61d9d96d15 fix replace with delete 2019-04-05 21:06:43 +02:00
Kevin Jahns 7d0c048708 Items accept origins as IDs 2019-04-05 19:46:18 +02:00
Kevin Jahns 8a7416ad50 Create Structs based on offset, if necessary
implement offset parameter in Ref.toStruct
2019-04-05 12:38:02 +02:00
Kevin Jahns e56899a02c after refactor - some tests are working again 2019-04-05 00:37:09 +02:00
Kevin Jahns 30bf3742c9 add internals file and use it to organize imports 2019-04-04 19:35:38 +02:00
Kevin Jahns 6578727c9c fixed all type issues 2019-04-03 13:23:27 +02:00
Kevin Jahns 92ca001cdc implement getMap, getArray, getXml, .. 2019-04-03 03:08:10 +02:00
Kevin Jahns 415de1cc4c all YArray.tests type fixes 2019-04-03 02:30:44 +02:00
Kevin Jahns e23582b1cd more type fixes and rethinking writeStructs 2019-04-02 23:08:58 +02:00
Kevin Jahns 1bc1e88d6a fix y-text 2019-03-30 01:08:09 +01:00
Kevin Jahns c188f813a4 fixed YMap 2019-03-29 13:49:13 +01:00
Kevin Jahns d9ab593b07 prelim refactor commit 2019-03-26 01:14:15 +01:00
Kevin Jahns 4c1798e5fa fix all remaining tests (xml tests) 2019-03-12 01:42:51 +01:00
Kevin Jahns f4d85e2a3e fix y-text tests 2019-03-12 01:22:06 +01:00
Kevin Jahns a0f0c9c377 testing: use lib0.testing.compare to compare Maps and sets 2019-03-11 18:34:50 +01:00
Kevin Jahns 95ec2a435a fix remaining y-map tests 2019-03-11 17:52:51 +01:00
Kevin Jahns da9836fe59 added all y-map tests 2019-03-11 12:31:37 +01:00
Kevin Jahns 3a7411f9e8 reworked some ymap tests (a few are running again) 2019-03-11 00:00:41 +01:00
Kevin Jahns 39cee7c6e7 refix array tests and switch to lib0 2019-03-10 23:26:53 +01:00
Kevin Jahns 0a5753c191 decode items before they are decoded. fixes lots of y-array tests 2019-03-07 18:57:39 +01:00
Kevin Jahns 76b7d0b651 fixed some issues in random tests 2019-03-06 13:29:16 +01:00