Changeset - 0a472b428859
[Not reviewed]
default
0 2 0
Drew Perttula - 7 years ago 2018-05-24 06:30:44
drewp@bigasterisk.com
log, comment
Ignore-this: 5b259f2d235febf02f15359701484ee5
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/web/graph.coffee
Show inline comments
 
@@ -201,12 +201,14 @@ class window.SyncedGraph
 
  quads: () -> # for debugging
 
    [q.subject, q.predicate, q.object, q.graph] for q in @graph.getQuads()
 

	
 
  applyAndSendPatch: (patch) ->
 
    console.time('applyAndSendPatch')
 
    if !Array.isArray(patch.addQuads) || !Array.isArray(patch.delQuads)
 
      console.timeEnd('applyAndSendPatch')
 
      log('corrupt patch')
 
      throw new Error("corrupt patch: #{JSON.stringify(patch)}")
 

	
 
    @_validatePatch(patch)
 

	
 
    @_applyPatch(patch)
 
    @_client.sendPatch(patch) if @_client
light9/web/light9-color-picker.html
Show inline comments
 
@@ -302,12 +302,15 @@
 
           this.closeTime = Date.now();
 
       }
 
       onEnterSmall(ev) {
 
           if (this.closeTime && this.closeTime > Date.now() - 500) {
 
               return;
 
           }
 

	
 
           // if scrolling put us here, don't open large. require deliberate entering motion.
 
           
 
           this.showLarge(ev.pageX, ev.pageY);
 
       }
 
       moveLargeCrosshair(pos, _elem) {
 
           _elem = _elem || this.$.large.shadowRoot.querySelector("#largeCrosshair");
 
           _elem.style.left = (pos[0] - _elem.offsetWidth / 2) + 'px';
 
           _elem.style.top = (pos[1] - _elem.offsetHeight / 2) + 'px';
0 comments (0 inline, 0 general)