fix preferUntransformed sync

This commit is contained in:
Kevin Jahns 2017-07-31 14:41:40 +02:00
parent 5384bf4faf
commit 4dce0816a6
6 changed files with 12 additions and 16 deletions

View File

@ -9,16 +9,6 @@
"license": "MIT",
"ignore": [],
"dependencies": {
"yjs": "latest",
"y-array": "latest",
"y-map": "latest",
"y-memory": "latest",
"y-richtext": "latest",
"y-webrtc": "latest",
"y-websockets-client": "latest",
"y-text": "latest",
"y-indexeddb": "latest",
"y-xml": "latest",
"quill": "^1.0.0-rc.2",
"ace": "~1.2.3",
"ace-builds": "~1.2.3",

View File

@ -12,7 +12,11 @@
</style>
<button type="button" id="clearDrawingCanvas">Clear Drawing</button>
<svg id="drawingCanvas" viewbox="0 0 100 100" width="100%"></svg>
<script src="../bower_components/yjs/y.js"></script>
<script src="../../y.js"></script>
<script src="../../../y-array/y-array.js"></script>
<script src="../../../y-map/dist/y-map.js"></script>
<script src="../../../y-memory/y-memory.js"></script>
<script src="../../../y-websockets-client/y-websockets-client.js"></script>
<script src="../bower_components/d3/d3.js"></script>
<script src="./index.js"></script>
</body>

View File

@ -7,8 +7,8 @@ Y({
},
connector: {
name: 'websockets-client',
room: 'drawing-example'
// url: 'localhost:1234'
room: 'drawing-example',
url: 'localhost:1234'
},
sourceDir: '/bower_components',
share: {

View File

@ -19,7 +19,8 @@
<script src="../../y.js"></script>
<script src="../../../y-map/dist/y-map.js"></script>
<script src="../../../y-memory/y-memory.js"></script>
<script src="../../../y-websockets-client/dist/y-websockets-client.js"></script> <script src="../bower_components/d3/d3.js"></script>
<script src="../../../y-websockets-client/y-websockets-client.js"></script>
<script src="../bower_components/d3/d3.js"></script>
<script src="./index.js"></script>
</body>
</html>

View File

@ -8,7 +8,8 @@ Y({
},
connector: {
name: 'websockets-client',
room: 'Puzzle-example'
room: 'Puzzle-example',
url: 'http://localhost:1234'
},
share: {
piece1: 'Map',

View File

@ -1097,7 +1097,7 @@ export default function extendTransaction (Y) {
yield * this.os.put(op)
}
yield * this.os.iterate(this, null, null, function * (op) {
if (op.parent != null && op.parent[0] === 0xFFFFFF) {
if (op.parent != null) {
if (op.struct === 'Insert') {
// update parents .map/start/end properties
if (op.parentSub != null && op.left == null) {