restructer and move to esdoc

This commit is contained in:
Kevin Jahns
2018-03-06 03:17:36 +01:00
parent a9b610479d
commit bbc207aaa6
48 changed files with 223 additions and 227 deletions

View File

@@ -1,5 +1,5 @@
import { getReference } from '../Util/structReferences.js'
import ID from '../Util/ID.js'
import ID from '../Util/ID/ID.js.js'
import { logID } from '../MessageHandler/messageToString.js'
/**

View File

@@ -1,6 +1,6 @@
import { getReference } from '../Util/structReferences.js'
import ID from '../Util/ID.js'
import { RootFakeUserID } from '../Util/RootID.js'
import ID from '../Util/ID/ID.js.js'
import { RootFakeUserID } from '../Util/ID/RootID.js.js'
import Delete from './Delete.js'
import { transactionTypeChanged } from '../Transaction.js'

View File

@@ -1,6 +1,6 @@
import Item from './Item.js'
import EventHandler from '../Util/EventHandler.js'
import ID from '../Util/ID.js'
import ID from '../Util/ID/ID.js.js'
// restructure children as if they were inserted one after another
function integrateChildren (y, start) {
@@ -47,11 +47,11 @@ export default class Type extends Item {
* Compute the path from this type to the specified target.
*
* @example
* It should be accessible via `this.get(result[0]).get(result[1])..``
* const path = type.getPathTo(child)
* // assuming `type instanceof YArray`
* console.log(path) // might look like => [2, 'key1']
* child === type.get(path[0]).get(path[1])
* It should be accessible via `this.get(result[0]).get(result[1])..`
* const path = type.getPathTo(child)
* // assuming `type instanceof YArray`
* console.log(path) // might look like => [2, 'key1']
* child === type.get(path[0]).get(path[1])
*
* @param {YType} type Type target
* @return {Array<string>} Path to the target