publish 0.7 - with (hopefully) stable API

This commit is contained in:
Kevin Jahns 2015-12-09 10:10:43 +01:00
parent 96f8f77dc4
commit b32c2e4ed6
7 changed files with 14 additions and 5040 deletions

View File

@ -8,8 +8,8 @@ Y({
}, },
connector: { connector: {
name: 'websockets-client', name: 'websockets-client',
room: 'Puzzle-example2', room: 'Puzzle-example2'
debug: true // debug: true,
// url: 'http://127.0.0.1:2345' // url: 'http://127.0.0.1:2345'
}, },
sourceDir: '/bower_components', sourceDir: '/bower_components',
@ -43,7 +43,7 @@ Y({
var mouse = d3.mouse(this.parentNode) var mouse = d3.mouse(this.parentNode)
var x = mouse[0] - origin.x var x = mouse[0] - origin.x
var y = mouse[1] - origin.y var y = mouse[1] - origin.y
piece.set('translation', {x, y}) piece.set('translation', {x: x, y: y})
}) })
var data = [y.share.piece1, y.share.piece2, y.share.piece3, y.share.piece4] var data = [y.share.piece1, y.share.piece2, y.share.piece3, y.share.piece4]

View File

@ -7,8 +7,8 @@ Y({
}, },
connector: { connector: {
name: 'websockets-client', name: 'websockets-client',
room: 'Textarea-example', room: 'Textarea-example'
debug: true // debug: true
// url: 'http://127.0.0.1:2345' // url: 'http://127.0.0.1:2345'
}, },
sourceDir: '/bower_components', sourceDir: '/bower_components',

View File

@ -1,6 +1,6 @@
{ {
"name": "yjs", "name": "yjs",
"version": "0.6.42", "version": "0.7.0",
"homepage": "y-js.org", "homepage": "y-js.org",
"authors": [ "authors": [
"Kevin Jahns <kevin.jahns@rwth-aachen.de>" "Kevin Jahns <kevin.jahns@rwth-aachen.de>"

8
y.es6
View File

@ -1163,10 +1163,10 @@ module.exports = function (Y/* :any */) {
} }
*/ */
create: function (id) { create: function (id) {
return { return {
start: null, start: null,
end: null, end: null,
struct: "List", struct: 'List',
id: id id: id
} }
}, },
@ -1240,7 +1240,7 @@ module.exports = function (Y/* :any */) {
return { return {
id: id, id: id,
map: {}, map: {},
struct: "Map" struct: 'Map'
} }
}, },
encode: function (op) { encode: function (op) {
@ -1383,7 +1383,7 @@ module.exports = function (Y/* :any */) {
var id = this.store.getNextOpId() var id = this.store.getNextOpId()
var op = Y.Struct[structname].create(id) var op = Y.Struct[structname].create(id)
op.type = typedefinition.name op.type = typedefinition.name
yield* this.applyCreatedOperations.call(this, [op]) yield* this.applyCreatedOperations([op])
return yield* this.getType(id) return yield* this.getType(id)
} }
/* /*

File diff suppressed because one or more lines are too long

5030
y.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long