Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YingshanDeng/SharedPen
/ functions
Functions
406 in github.com/YingshanDeng/SharedPen
⨍
Functions
406
◇
Types & classes
75
↓ 52 callers
Method
on
(emitter, type, f, capture)
lib/Utils.js:129
↓ 43 callers
Method
trigger
(event, ...restArgs)
lib/ClientSocketIOAdapter.js:44
↓ 39 callers
Method
retain
(n, attributes)
lib/TextOperation.js:40
↓ 26 callers
Method
apply
(str, oldAttributes, newAttributes)
lib/TextOperation.js:183
↓ 26 callers
Method
assert
(b, msg)
lib/Utils.js:5
↓ 25 callers
Method
isRetain
()
lib/TextAction.js:42
↓ 22 callers
Method
indexFromPos
(pos)
lib/RichTextCodeMirror.js:794
↓ 22 callers
Method
insert
(str, attributes)
lib/TextOperation.js:61
↓ 21 callers
Method
isInsert
()
lib/TextAction.js:36
↓ 20 callers
Method
transform
(other)
lib/Selection.js:21
↓ 18 callers
Method
fromJSON
(obj)
lib/Selection.js:12
↓ 17 callers
Method
isDelete
()
lib/TextAction.js:39
↓ 15 callers
Method
setAttribute
(attribute, value)
lib/RichTextCodeMirror.js:127
↓ 14 callers
Method
off
(emitter, type, f, capture)
lib/Utils.js:136
↓ 14 callers
Method
setState
(state)
lib/Client.js:35
↓ 12 callers
Function
resolveApp
examples/react-demo/config/paths.js:10
↓ 10 callers
Method
compose
(other)
lib/Selection.js:81
↓ 10 callers
Method
end
()
lib/AnnotationList.js:9
↓ 10 callers
Function
indexFromPos
(pos)
ot.js/codemirror-adapter.js:75
↓ 10 callers
Method
isNoop
()
lib/TextOperation.js:115
↓ 10 callers
Method
sendOperation
(revision, operation)
lib/Client.js:27
↓ 9 callers
Method
applyOperation
(operation)
lib/Client.js:31
↓ 9 callers
Method
equals
(other)
lib/Selection.js:15
↓ 9 callers
Method
replace
* Updates the attributes of an Entity. Will call .update() if the entity supports it, * else it'll just remove / re-create the entity. * @p
lib/RichTextCodeMirror.js:1197
↓ 9 callers
Function
sumLengths
(strArr)
ot.js/codemirror-adapter.js:81
↓ 9 callers
Method
updateSelection
(selection)
lib/EditorClient.js:52
↓ 8 callers
Method
_checkedSelectedStates
(curAttrs, t, value)
examples/react-demo/src/components/ToolboxToolbar.js:205
↓ 8 callers
Method
delete
(n)
lib/TextOperation.js:94
↓ 8 callers
Method
emptySelection_
()
lib/RichTextCodeMirror.js:1077
↓ 7 callers
Method
getClient
(clientId)
lib/SharedPenServer.js:143
↓ 7 callers
Method
getClientObject
(clientId)
lib/EditorClient.js:186
↓ 7 callers
Method
onPalette
(type, isOpen, selected, position)
examples/react-demo/src/components/ToolboxToolbar.js:233
↓ 7 callers
Method
removeSelection
()
lib/EditorClient.js:63
↓ 7 callers
Method
updateTextAttributes
(start, end, updateFn, origin, doLineAttributes)
lib/RichTextCodeMirror.js:177
↓ 6 callers
Function
digits
(n)
ot.js/editor-client.js:286
↓ 6 callers
Method
getLineAttributes_
(lineNum)
lib/RichTextCodeMirror.js:287
↓ 6 callers
Function
hue2rgb
(hue)
ot.js/editor-client.js:297
↓ 5 callers
Method
_renderNormalButtonItems
(items)
examples/react-demo/src/components/ToolboxToolbar.js:219
↓ 5 callers
Method
applyClient
(operation)
lib/Client.js:40
↓ 5 callers
Function
bind
(obj, method)
ot.js/codemirror-adapter.js:335
↓ 5 callers
Method
canRedo
()
lib/UndoManager.js:87
↓ 5 callers
Method
canUndo
()
lib/UndoManager.js:84
↓ 5 callers
Method
emptyAttributes
(attrs)
lib/Utils.js:105
↓ 5 callers
Method
end
()
lib/RichTextCodeMirror.js:102
↓ 5 callers
Method
getCurrentAttributes_
()
lib/RichTextCodeMirror.js:739
↓ 5 callers
Method
isEmpty
()
lib/Selection.js:18
↓ 5 callers
Method
sendSelection
(selection)
lib/EditorClient.js:239
↓ 5 callers
Method
toggleAttribute
(attribute, value)
lib/RichTextCodeMirror.js:161
↓ 5 callers
Method
trigger
(event)
lib/RichTextCodeMirrorAdapter.js:84
↓ 5 callers
Method
updateLineAttributes
(startLine, endLine, updateFn)
lib/RichTextCodeMirror.js:300
↓ 4 callers
Method
add
(operation, compose)
lib/UndoManager.js:25
↓ 4 callers
Method
applyUnredo
(operation)
lib/EditorClient.js:264
↓ 4 callers
Method
attributesEqual
(otherAttributes)
lib/TextAction.js:52
↓ 4 callers
Method
clone
()
lib/TextOperation.js:120
↓ 4 callers
Method
elt
(tag, content, attrs)
lib/Utils.js:112
↓ 4 callers
Method
getSelection
()
lib/RichTextCodeMirrorAdapter.js:102
↓ 4 callers
Function
getSimpleOp
(operation, fn)
ot.js/text-operation.js:337
↓ 4 callers
Function
getSimpleOp
(operation)
lib/TextOperation.js:609
↓ 4 callers
Function
getStartIndex
(operation)
ot.js/text-operation.js:351
↓ 4 callers
Function
getStartIndex
(operation)
lib/TextOperation.js:622
↓ 4 callers
Method
onDropdown
(type, isOpen, list, selected, position)
examples/react-demo/src/components/ToolboxToolbar.js:246
↓ 4 callers
Method
onExecCommand
(command, value)
examples/react-demo/src/App.js:46
↓ 4 callers
Function
posLe
(a, b)
ot.js/codemirror-adapter.js:45
↓ 4 callers
Method
posLe
(a, b)
lib/Utils.js:38
↓ 4 callers
Method
registerCallbacks
(cbs)
lib/ClientSocketIOAdapter.js:41
↓ 4 callers
Method
render
()
examples/react-demo/src/App.js:90
↓ 4 callers
Function
rgb2hex
(r, g, b)
ot.js/editor-client.js:285
↓ 4 callers
Method
setColor
(hue)
lib/EditorClient.js:40
↓ 4 callers
Method
shallowClone
(source, target)
lib/Utils.js:11
↓ 4 callers
Method
somethingSelected
()
lib/Selection.js:78
↓ 4 callers
Function
sumLengths
(strArr)
lib/RichTextCodeMirror.js:52
↓ 4 callers
Method
toJSON
()
lib/TextOperation.js:136
↓ 4 callers
Function
transformIndex
(index)
ot.js/selection.js:33
↓ 4 callers
Method
transformSelection
(selection)
lib/Client.js:64
↓ 4 callers
Method
tryRenderToElement_
(entity, renderFn, entityHandle)
lib/EntityManager.js:109
↓ 4 callers
Method
unSelect
()
examples/react-demo/src/components/toolbar/MenuButton.js:19
↓ 3 callers
Method
_onClick
(evt)
examples/react-demo/src/components/toolbar/MenuButton.js:6
↓ 3 callers
Method
_onUnselect
(type)
examples/react-demo/src/components/ToolboxToolbar.js:260
↓ 3 callers
Method
_renderColorCells
(colorItems)
examples/react-demo/src/components/toolbar/ColorPalette.js:200
↓ 3 callers
Function
a
()
examples/react-demo/public/pace/pace.min.js:2
↓ 3 callers
Method
applyServer
(operation)
lib/Client.js:44
↓ 3 callers
Method
attachObject
(object)
lib/AnnotationList.js:33
↓ 3 callers
Method
find
()
lib/RichTextCodeMirror.js:1174
↓ 3 callers
Method
forEach
(callback)
lib/AnnotationList.js:158
↓ 3 callers
Method
getAffectedNodes_
(span)
lib/AnnotationList.js:337
↓ 3 callers
Method
getAnnotatedSpansForSpan
(span)
lib/AnnotationList.js:206
↓ 3 callers
Method
getCurrentLineAttributes_
()
lib/RichTextCodeMirror.js:1023
↓ 3 callers
Method
getRange
(start, end)
lib/RichTextCodeMirror.js:110
↓ 3 callers
Method
makeEventEmitter
(clazz, allowedEVents, context)
lib/Utils.js:40
↓ 3 callers
Method
onClientLeft
(clientId)
lib/EditorClient.js:169
↓ 3 callers
Method
parseClientsInfo
()
lib/EditorClient.js:178
↓ 3 callers
Method
serverAck
()
lib/Client.js:48
↓ 3 callers
Method
setLineAttribute
(attribute, value)
lib/RichTextCodeMirror.js:1045
↓ 3 callers
Method
setName
(name)
lib/EditorClient.js:45
↓ 3 callers
Method
toString
()
lib/TextOperation.js:603
↓ 3 callers
Method
updateCurrentAttributes_
()
lib/RichTextCodeMirror.js:745
↓ 3 callers
Method
updateLineAttributesForSelection
(updateFn)
lib/RichTextCodeMirror.js:1054
↓ 3 callers
Method
wrapOperation_
(span, operationFn)
lib/AnnotationList.js:227
↓ 2 callers
Function
F
()
ot.js/editor-client.js:318
↓ 2 callers
Function
Z
(a,b)
examples/react-demo/public/pace/pace.min.js:2
next →
1–100 of 406, ranked by callers