Changeset - 7fe81130b735
light9/web/edit-choice.coffee
Show inline comments
 
log = debug('editchoice')
 
RDFS = 'http://www.w3.org/2000/01/rdf-schema#'
 

	
 

	
 

	
 
window.setupDrop = (senseElem, highlightElem, coordinateOriginElem, onDrop) ->
 

	
 
@@ -34,13 +35,13 @@ window.setupDrop = (senseElem, highlight
 
      else
 
        null
 

	
 
    try
 
      onDrop(uri, pos)
 
    catch e
 
      console.log(e)
 
      log(e)
 
    unhighlight()
 

	
 

	
 

	
 
coffeeElementSetup(class EditChoice extends Polymer.Element
 
  @is: "edit-choice",
light9/web/graph.coffee
Show inline comments
 
log = console.log
 
log = debug('graph')
 

	
 
# Patch is {addQuads: <quads>, delQuads: <quads>}
 
# <quads> are made with Quad(s,p,o,g)
 

	
 
# for mocha
 
if require?
 
@@ -64,15 +64,15 @@ class AutoDependencies
 
    h = new Handler(func, label)
 
    tailChildren = @handlerStack[@handlerStack.length - 1].innerHandlers
 
    matchingLabel = _.filter(tailChildren, ((c) -> c.label == label)).length
 
    # ohno, something depends on some handlers getting run twice :(
 
    if matchingLabel < 2
 
      tailChildren.push(h)
 
    console.time("handler #{label}")
 
    #console.time("handler #{label}")
 
    @_rerunHandler(h, null)
 
    console.timeEnd("handler #{label}")
 
    #console.timeEnd("handler #{label}")
 
    #@_logHandlerTree()
 
    
 
  _rerunHandler: (handler, patch) ->
 
    handler.patterns = []
 
    @handlerStack.push(handler)
 
    try
light9/web/lib/bower.json
Show inline comments
 
@@ -27,13 +27,14 @@
 
    "sylvester": "~0.1.3",
 
    "underscore": "~1.8.3",
 
    "polymer": "Polymer/polymer#^2.0.0",
 
    "iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.3",
 
    "iron-component-page": "PolymerElements/iron-component-page#^3.0.1",
 
    "paper-header-panel": "PolymerElements/paper-header-panel#^2.1.0",
 
    "iron-overlay-behavior": "PolymerElements/iron-overlay-behavior#^2.3.4"
 
    "iron-overlay-behavior": "PolymerElements/iron-overlay-behavior#^2.3.4",
 
    "debug": "https://github.com/visionmedia/debug/archive/master.zip"
 
  },
 
  "resolutions": {
 
    "webcomponentsjs": "^v1.1.0",
 
    "polymer": "^2.0.0",
 
    "iron-flex-layout": "^2.0.3",
 
    "paper-button": "^2.1.1",
light9/web/light9-music.coffee
Show inline comments
 
log = console.log
 
log = debug('music')
 
debug.enable('music')
 

	
 
# port of light9/curvecalc/musicaccess.py
 
coffeeElementSetup(class Music extends Polymer.Element
 
  @is: "light9-music",
 
  @getter_properties:
 
    status: { type: String, notify: true }
light9/web/live/elements.html
Show inline comments
 
<script src="/lib/debug/debug-build.js"></script>
 
<script>
 
 debug.enable('*');
 
</script>
 
<link rel="import" href="/lib/polymer/polymer.html">
 

	
 
<link rel="import" href="/lib/paper-slider/paper-slider.html">
 
<link rel="import" href="/lib/paper-listbox/paper-listbox.html">
 
<link rel="import" href="/lib/paper-item/paper-item.html">
 
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 
@@ -259,12 +263,13 @@
 

	
 

	
 
<script src="/node_modules/d3/dist/d3.min.js"></script>
 
<script src="/node_modules/n3/n3-browser.js"></script>
 
<script src="/lib/async/dist/async.js"></script>
 
<script src="/lib/underscore/underscore-min.js"></script>
 

	
 
<script src="../coffee_element.js"></script>
 
<!-- see live.coffee
 
     <script src="/lib/jquery/dist/jquery.js"></script>
 
     <script src="/lib/isotope/dist/isotope.pkgd.min.js"></script>
 
     <script src="/lib/isotope-fit-columns/fit-columns.js"></script>
 
     <script src="/lib/jquery.columnizer/src/jquery.columnizer.js"></script>
light9/web/live/live.coffee
Show inline comments
 
log = console.log
 
log = debug('live')
 
debug.enable('live')
 

	
 
# Like element.set(path, newArray), but minimizes splices.
 
# Dotted paths don't work yet.
 
syncArray = (element, path, newArray, isElementEqual) ->
 
  pos = 0
 
  newPos = 0
light9/web/paint/paint-elements.coffee
Show inline comments
 
log = console.log
 
log = debug('paint')
 
debug.enable('paint')
 

	
 
class Painting
 
  constructor: (@svg) ->
 
    @strokes = []
 

	
 
  setSize: (@size) ->
light9/web/rdfdbclient.coffee
Show inline comments
 
log = console.log
 
log = debug('rdfdbclient')
 

	
 
# for mocha
 
if require?
 
  `window = {}`
 
  `N3 = require('../../node_modules/n3/n3-browser.js')`
 
  module.exports = window
 
@@ -74,13 +74,13 @@ class window.RdfDbClient
 
      #{@_patchesReceived} recv;
 
      #{@_patchesSent} sent;
 
      #{@_patchesToSend.length} pending;
 
      #{ping}ms")
 
 
 
  sendPatch: (patch) ->
 
    console.log('rdfdbclient: queue patch to server ', patchSizeSummary(patch))
 
    log('rdfdbclient: queue patch to server ', patchSizeSummary(patch))
 
    @_patchesToSend.push(patch)
 
    @_updateStatus()
 
    @_continueSending()
 

	
 
  _newConnection: ->
 
    wsOrWss = window.location.protocol.replace('http', 'ws')
light9/web/timeline/adjustable.coffee
Show inline comments
 
log = console.log
 
log = debug('adjustable')
 

	
 

	
 
class Adjustable
 
  # Some value you can edit in the UI, probably by dragging
 
  # stuff. Drawn by light9-adjusters-canvas. This object does the
 
  # layout and positioning.
 
  #
light9/web/timeline/adjusters.coffee
Show inline comments
 
log = console.log
 
log = debug('adjusters')
 
Drawing = window.Drawing
 

	
 
maxDist = 60
 

	
 
coffeeElementSetup(class AdjustersCanvas extends Polymer.mixinBehaviors([Polymer.IronResizableBehavior], Polymer.Element)
 
  @is: 'light9-adjusters-canvas'
light9/web/timeline/brick_layout.coffee
Show inline comments
 
log = debug('brick')
 

	
 
class window.BrickLayout
 
  constructor: (@viewState, @numRows) ->
 
    @noteRow = {} # uristr: row, t0, t1, onRowChange
 
    
 
  addNote: (n, onRowChange) ->
light9/web/timeline/inline-attrs.coffee
Show inline comments
 
log = console.log
 
log = debug('attrs')
 
debug.enable('*')
 

	
 
coffeeElementSetup(class InlineAttrs extends Polymer.Element
 
  @is: "light9-timeline-note-inline-attrs"
 
  @getter_properties:
 
    graph: { type: Object, notify: true }
 
    project: { type: Object, notify: true }
light9/web/timeline/light9-timeline-audio.html
Show inline comments
 
@@ -23,13 +23,13 @@
 
    <div>
 
      <img src="{{imgSrc}}"
 
           style="width: {{imgWidth}} ; left: {{imgLeft}}">
 
    </div>
 
  </template>
 
  <script>
 
   log = console.log
 
   const log = debug('audio');
 
   Polymer({
 
       is: "light9-timeline-audio",
 
       properties: {
 
           graph: {type: Object, notify: true},
 
           show: {type: String, notify: true},
 
           song: {type: String, notify: true},
light9/web/timeline/timeline-elements.html
Show inline comments
 
<script src="/lib/debug/debug-build.js"></script>
 
<script>
 
 debug.enable('*');
 
</script>
 
<link rel="import" href="/lib/polymer/polymer.html">
 
<link rel="import" href="/lib/polymer/lib/utils/render-status.html">
 
<link rel="import" href="/lib/iron-resizable-behavior/iron-resizable-behavior.html">
 
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 
<link rel="import" href="light9-timeline-audio.html">
 
<link rel="import" href="../rdfdb-synced-graph.html">
light9/web/timeline/timeline.coffee
Show inline comments
 
log = console.log
 
log = debug('timeline')
 
debug.enable('*')
 

	
 
Drawing = window.Drawing
 
ROW_COUNT = 7
 

	
 
class Project
 
  constructor: (@graph) ->
 

	
light9/web/timeline2/index.html
Show inline comments
 
@@ -21,13 +21,13 @@
 
 
    
 
    <script src="node_modules/pixi.js/dist/pixi.js"></script>
 
  </head>
 
  <body>
 
    <script>
 
     
 
     const log = debug('timeline');
 
     var stage = new PIXI.Container();
 
     
 
     var renderer = PIXI.autoDetectRenderer(3000,2000, {
 
         backgroundColor: 0x606060,
 
     });
 
     
 
@@ -49,13 +49,13 @@
 
         graphics.lineTo(250, 50);
 
         graphics.lineTo(100, 100);
 
         graphics.lineTo(50, 50);
 
         graphics.endFill();
 
         graphics.interactive = true;
 
         graphics.on('click',  (ev) => {
 
             console.log('hit', ev);
 
             log('hit', ev);
 
         });
 
         
 
         stage.addChild(graphics);
 
     }
 
     
 
     objs =  [];
makefile
Show inline comments
 
@@ -29,13 +29,14 @@ bin/node:
 

	
 
bower: node_modules/bower/bin/bower bin/node
 
	cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
 

	
 
npm:
 
	npm install
 
	cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js
 
	(cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js)
 
	node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug
 

	
 
bin/ascoltami2: gst_packages link_to_sys_packages
 

	
 
effect_node_setup: create_virtualenv packages binexec install_python_deps
 

	
 
tkdnd_build:
package.json
Show inline comments
 
@@ -9,13 +9,13 @@
 
    "test": "test"
 
  },
 
  "dependencies": {
 
    "@webcomponents/shadycss": "^1.1.3",
 
    "@webcomponents/webcomponentsjs": "^1.2.0",
 
    "bower": "^1.8.4",
 
    "browserify": "^16.2.0",
 
    "browserify": "^16.2.3",
 
    "chai": "^3.5.0",
 
    "coffeelint": "^2.1.0",
 
    "coffeescript": "^2.3.0",
 
    "d3": "^5.1.0",
 
    "mocha": "^2.5.3",
 
    "n3": "^1.0.0-alpha",
0 comments (0 inline, 0 general)