publish 0.7 - with (hopefully) stable API
This commit is contained in:
parent
96f8f77dc4
commit
b32c2e4ed6
@ -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]
|
||||||
|
@ -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',
|
||||||
|
@ -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
8
y.es6
@ -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)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user