Commit a5bf6d84 authored by Alexander.Trofimov's avatar Alexander.Trofimov

paragraphContent.js to common

parent 1de92e73
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"../common/editor/paragraph.js", "../common/editor/paragraph.js",
"../common/editor/document.js", "../common/editor/document.js",
"../common/editor/documentContent.js", "../common/editor/documentContent.js",
"../common/editor/paragraphContent.js",
"../common/Shapes/EditorSettings.js", "../common/Shapes/EditorSettings.js",
"../common/Shapes/Serialize.js", "../common/Shapes/Serialize.js",
...@@ -127,7 +128,6 @@ ...@@ -127,7 +128,6 @@
"../word/Editor/Comments.js", "../word/Editor/Comments.js",
"../word/Editor/FlowObjects.js", "../word/Editor/FlowObjects.js",
"../word/Editor/ParagraphContent.js",
"../word/Editor/ParagraphContentBase.js", "../word/Editor/ParagraphContentBase.js",
"../word/Editor/Hyperlink.js", "../word/Editor/Hyperlink.js",
"../word/Editor/Field.js", "../word/Editor/Field.js",
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"../common/editor/paragraph.js", "../common/editor/paragraph.js",
"../common/editor/document.js", "../common/editor/document.js",
"../common/editor/documentContent.js", "../common/editor/documentContent.js",
"../common/editor/paragraphContent.js",
"../common/Shapes/EditorSettings.js", "../common/Shapes/EditorSettings.js",
"../common/Shapes/Serialize.js", "../common/Shapes/Serialize.js",
...@@ -117,7 +118,6 @@ ...@@ -117,7 +118,6 @@
"../slide/Editor/Format/Layout.js", "../slide/Editor/Format/Layout.js",
"../slide/Editor/Format/Comments.js", "../slide/Editor/Format/Comments.js",
"../word/Editor/Numbering.js", "../word/Editor/Numbering.js",
"../word/Editor/ParagraphContent.js",
"../word/Editor/ParagraphContentBase.js", "../word/Editor/ParagraphContentBase.js",
"../word/Editor/Hyperlink.js", "../word/Editor/Hyperlink.js",
"../word/Editor/Field.js", "../word/Editor/Field.js",
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
"../common/editor/paragraph.js", "../common/editor/paragraph.js",
"../common/editor/document.js", "../common/editor/document.js",
"../common/editor/documentContent.js", "../common/editor/documentContent.js",
"../common/editor/paragraphContent.js",
"../common/Shapes/EditorSettings.js", "../common/Shapes/EditorSettings.js",
"../common/Shapes/Serialize.js", "../common/Shapes/Serialize.js",
...@@ -101,7 +102,6 @@ ...@@ -101,7 +102,6 @@
"../word/Editor/CollaborativeEditing.js", "../word/Editor/CollaborativeEditing.js",
"../word/Editor/Comments.js", "../word/Editor/Comments.js",
"../word/Editor/FlowObjects.js", "../word/Editor/FlowObjects.js",
"../word/Editor/ParagraphContent.js",
"../word/Editor/ParagraphContentBase.js", "../word/Editor/ParagraphContentBase.js",
"../word/Editor/Hyperlink.js", "../word/Editor/Hyperlink.js",
"../word/Editor/Field.js", "../word/Editor/Field.js",
......
...@@ -28,9 +28,6 @@ var isRealObject = AscCommon.isRealObject; ...@@ -28,9 +28,6 @@ var isRealObject = AscCommon.isRealObject;
var History = AscCommon.History; var History = AscCommon.History;
var CRFonts = AscCommon.CRFonts; var CRFonts = AscCommon.CRFonts;
var HitInLine = AscFormat.HitInLine;
var MOVE_DELTA = AscFormat.MOVE_DELTA;
var c_oAscRelativeFromH = Asc.c_oAscRelativeFromH; var c_oAscRelativeFromH = Asc.c_oAscRelativeFromH;
var c_oAscRelativeFromV = Asc.c_oAscRelativeFromV; var c_oAscRelativeFromV = Asc.c_oAscRelativeFromV;
...@@ -4977,10 +4974,10 @@ ParaDrawing.prototype = ...@@ -4977,10 +4974,10 @@ ParaDrawing.prototype =
if( this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.GraphicObj.posX) && AscFormat.isRealNumber(this.GraphicObj.posY)) || if( this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.GraphicObj.posX) && AscFormat.isRealNumber(this.GraphicObj.posY)) ||
!(Math.abs(this.GraphicObj.posX-_x) < MOVE_DELTA && Math.abs(this.GraphicObj.posY-_y) < MOVE_DELTA)) !(Math.abs(this.GraphicObj.posX-_x) < AscFormat.MOVE_DELTA && Math.abs(this.GraphicObj.posY-_y) < AscFormat.MOVE_DELTA))
this.GraphicObj.updatePosition(_x, _y); this.GraphicObj.updatePosition(_x, _y);
if( this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.wrappingPolygon.posX) && AscFormat.isRealNumber(this.wrappingPolygon.posY)) || if( this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.wrappingPolygon.posX) && AscFormat.isRealNumber(this.wrappingPolygon.posY)) ||
!(Math.abs(this.wrappingPolygon.posX -_x) < MOVE_DELTA && Math.abs(this.wrappingPolygon.posY-_y) < MOVE_DELTA)) !(Math.abs(this.wrappingPolygon.posX -_x) < AscFormat.MOVE_DELTA && Math.abs(this.wrappingPolygon.posY-_y) < AscFormat.MOVE_DELTA))
this.wrappingPolygon.updatePosition(_x, _y); this.wrappingPolygon.updatePosition(_x, _y);
this.calculateSnapArrays(); this.calculateSnapArrays();
}, },
...@@ -6889,7 +6886,7 @@ ParaDrawing.prototype = ...@@ -6889,7 +6886,7 @@ ParaDrawing.prototype =
vy = cur_point.y - previous_point.y; vy = cur_point.y - previous_point.y;
if(Math.abs(vx) > 0 || Math.abs(vy) > 0) if(Math.abs(vx) > 0 || Math.abs(vy) > 0)
{ {
if(HitInLine(this.drawingDocument.CanvasHitContext, x, y, previous_point.x, previous_point.y, cur_point.x, cur_point.y)) if(AscFormat.HitInLine(this.drawingDocument.CanvasHitContext, x, y, previous_point.x, previous_point.y, cur_point.x, cur_point.y))
return {hit: true, hitType: WRAP_HIT_TYPE_SECTION, pointNum1: arr_point.length - 1, pointNum2: 0}; return {hit: true, hitType: WRAP_HIT_TYPE_SECTION, pointNum1: arr_point.length - 1, pointNum2: 0};
} }
...@@ -6903,7 +6900,7 @@ ParaDrawing.prototype = ...@@ -6903,7 +6900,7 @@ ParaDrawing.prototype =
if(Math.abs(vx) > 0 || Math.abs(vy) > 0) if(Math.abs(vx) > 0 || Math.abs(vy) > 0)
{ {
if(HitInLine(this.drawingDocument.CanvasHitContext, x, y, previous_point.x, previous_point.y, cur_point.x, cur_point.y)) if(AscFormat.HitInLine(this.drawingDocument.CanvasHitContext, x, y, previous_point.x, previous_point.y, cur_point.x, cur_point.y))
return {hit: true, hitType: WRAP_HIT_TYPE_SECTION, pointNum1: point_index-1, pointNum2: point_index}; return {hit: true, hitType: WRAP_HIT_TYPE_SECTION, pointNum1: point_index-1, pointNum2: point_index};
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment