The Idealized JavaScript API of MetaNotes
{ mn-api.txt }--- - -
bavl-vision.txt
bavl-realtime.txt
bavl-squatting.txt
// Foundation
$
$.ui
// MetaNotes Infrastructure
$(css).mn() = smart widget initialization
$.mn = main namespace
$.mn.session
$.mn.panels
.add(panel, panelObject)
.remove(panel, panelObject)
.find(panel)
.select(panel)
$.mn.menus
$.mn.metaspace
.show()
.hide()
$.mn.subscribe(url) = event subscription
$.mn.publish(eventType, options)
// MetaNotes' Creatable Objects
$.mn.Space
var space = new $.mn.Space(name, options)
space.resize()
space.color()
space.color(options)
space.destroy()
$.mn.Note
var note = new $.mn.Note(title, options)
note.resize(width, height)
note.color()
note.color(options)
note.destroy()
note.move(x, y)
note.raise()
note.lower()
note.title()
note.title(text)
note.body()
note.body(text)
$.mn.notes
$.mn.notes.find(query)
// $.mn.Line
// $.mn.Image
// $.mn.Text
// $.mn.Friend
// $.mn.Poll
// $.mn.IframePanel
// It's all about u.
$.mn.u = "user who is logged in"
$.mn.u.pref(key)
$.mn.u.pref(key, value)
$.mn.u.select(space)
$.mn.u.create(type, options) = "type is any creatable where ownership matters"
// Current Context Within MetaNotes
$.mn.user = "user who owns the space you are in"
$.mn.user.spaces = "spaces belonging to user whose space you are in"
$.mn.user.spaces.find(query)
$.mn.user.spaces.select(space)
$.mn.user.space = "current space you are in"
$.mn.user.space.notes = $.mn.notes
$.mn.user.space.notes.find(query)
// I HAVE FOUND CLARITY!