var id=ann?ann.id:''; //var bbox=ann?ann.getBBox():{}; var after=ann?ann.serialize():""; if(cmd==ta.CommandTypes.Delete) after=""; /*if(ann){ // fix the bbox x/y coords var t=ann.transform; bbox.x+=t.dx; bbox.y+=t.dy; }*/ var state={ cmdname:cmd, //bbox:bbox, // fullText:fullText, before:{ shapeId: id, shapeText:before||'' }, after:{ shapeId: id, shapeText:after } }; //console.log('dojox.sketch history add',state); this._steps.push(state); this._undoedSteps = [];