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

common/Drawings/Hit to function-closure

parent f076a885
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"../common/editorscommon.js", "../common/editorscommon.js",
"../common/NumFormat.js", "../common/NumFormat.js",
"../common/Drawings/Hit.js",
"../common/Drawings/ArcTo.js", "../common/Drawings/ArcTo.js",
"../common/Drawings/ColorArray.js", "../common/Drawings/ColorArray.js",
...@@ -90,7 +91,6 @@ ...@@ -90,7 +91,6 @@
"../common/Shapes/SerializeWriter.js", "../common/Shapes/SerializeWriter.js",
"../common/SerializeCommonWordExcel.js", "../common/SerializeCommonWordExcel.js",
"../common/SerializeChart.js", "../common/SerializeChart.js",
"../common/Drawings/Hit.js",
"../common/Drawings/States.js", "../common/Drawings/States.js",
"../common/Drawings/DrawingObjectsHandlers.js", "../common/Drawings/DrawingObjectsHandlers.js",
"../common/Drawings/TrackObjects/AdjustmentTracks.js", "../common/Drawings/TrackObjects/AdjustmentTracks.js",
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"../common/editorscommon.js", "../common/editorscommon.js",
"../common/NumFormat.js", "../common/NumFormat.js",
"../common/Drawings/Hit.js",
"../common/Drawings/ArcTo.js", "../common/Drawings/ArcTo.js",
"../common/Drawings/ColorArray.js", "../common/Drawings/ColorArray.js",
...@@ -65,7 +66,6 @@ ...@@ -65,7 +66,6 @@
"../word/Editor/Common.js", "../word/Editor/Common.js",
"../word/Editor/Sections.js", "../word/Editor/Sections.js",
"../word/Editor/History.js", "../word/Editor/History.js",
"../common/Drawings/Hit.js",
"../common/Drawings/States.js", "../common/Drawings/States.js",
"../common/Drawings/DrawingObjectsHandlers.js", "../common/Drawings/DrawingObjectsHandlers.js",
"../common/Drawings/TrackObjects/AdjustmentTracks.js", "../common/Drawings/TrackObjects/AdjustmentTracks.js",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"../common/editorscommon.js", "../common/editorscommon.js",
"../common/NumFormat.js", "../common/NumFormat.js",
"../common/Drawings/Hit.js",
"../common/Drawings/ArcTo.js", "../common/Drawings/ArcTo.js",
"../common/Drawings/ColorArray.js", "../common/Drawings/ColorArray.js",
...@@ -61,7 +62,6 @@ ...@@ -61,7 +62,6 @@
"../common/Drawings/TrackObjects/RotateTracks.js", "../common/Drawings/TrackObjects/RotateTracks.js",
"../common/Drawings/TrackObjects/Spline.js", "../common/Drawings/TrackObjects/Spline.js",
"../common/Drawings/DrawingObjectsHandlers.js", "../common/Drawings/DrawingObjectsHandlers.js",
"../common/Drawings/Hit.js",
"../common/Drawings/Joined.js", "../common/Drawings/Joined.js",
"../common/Drawings/TextDrawer.js", "../common/Drawings/TextDrawer.js",
"../word/Editor/GraphicObjects/Format/ShapePrototype.js", "../word/Editor/GraphicObjects/Format/ShapePrototype.js",
......
"use strict"; "use strict";
(function(){ (function(){
// Import
var HitInBezier4 = AscFormat.HitInBezier4;
// arcTo new version // arcTo new version
function Arc3(ctx, fX, fY, fWidth, fHeight, fStartAngle, fSweepAngle) function Arc3(ctx, fX, fY, fWidth, fHeight, fStartAngle, fSweepAngle)
{ {
......
...@@ -18,6 +18,9 @@ var cToRad = AscFormat.cToRad; ...@@ -18,6 +18,9 @@ var cToRad = AscFormat.cToRad;
var HitToArc = AscFormat.HitToArc; var HitToArc = AscFormat.HitToArc;
var ArcToCurvers = AscFormat.ArcToCurvers; var ArcToCurvers = AscFormat.ArcToCurvers;
var ArcToOnCanvas = AscFormat.ArcToOnCanvas; var ArcToOnCanvas = AscFormat.ArcToOnCanvas;
var HitInLine = AscFormat.HitInLine;
var HitInBezier4 = AscFormat.HitInBezier4;
var HitInBezier3 = AscFormat.HitInBezier3;
var cToRad2 = (Math.PI/60000)/180; var cToRad2 = (Math.PI/60000)/180;
......
...@@ -11,7 +11,8 @@ function (window, undefined) { ...@@ -11,7 +11,8 @@ function (window, undefined) {
var c_oAscSizeRelFromH = AscCommon.c_oAscSizeRelFromH; var c_oAscSizeRelFromH = AscCommon.c_oAscSizeRelFromH;
var c_oAscSizeRelFromV = AscCommon.c_oAscSizeRelFromV; var c_oAscSizeRelFromV = AscCommon.c_oAscSizeRelFromV;
var checkNormalRotate = AscFormat.checkNormalRotate; var checkNormalRotate = AscFormat.checkNormalRotate;
var HitInLine = AscFormat.HitInLine;
var c_oAscFill = Asc.c_oAscFill; var c_oAscFill = Asc.c_oAscFill;
......
"use strict"; "use strict";
(function(){
function HitInLine(context, px, py, x0, y0, x1, y1) function HitInLine(context, px, py, x0, y0, x1, y1)
{ {
/* var l = Math.min(x0, x1); /* var l = Math.min(x0, x1);
...@@ -112,5 +112,9 @@ function HitInBezier3(context, px, py, x0, y0, x1, y1, x2, y2) ...@@ -112,5 +112,9 @@ function HitInBezier3(context, px, py, x0, y0, x1, y1, x2, y2)
return context.isPointInPath(px, py); return context.isPointInPath(px, py);
} }
//--------------------------------------------------------export----------------------------------------------------
window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].HitInLine = HitInLine;
window['AscFormat'].HitInBezier4 = HitInBezier4;
window['AscFormat'].HitInBezier3 = HitInBezier3;
})();
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Import // Import
var CShape = AscFormat.CShape; var CShape = AscFormat.CShape;
var HitInLine = AscFormat.HitInLine;
function CGraphicFrame() function CGraphicFrame()
{ {
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
// Import // Import
var g_oTableId = AscCommon.g_oTableId; var g_oTableId = AscCommon.g_oTableId;
var HitInLine = AscFormat.HitInLine;
var c_oAscRelativeFromH = Asc.c_oAscRelativeFromH; var c_oAscRelativeFromH = Asc.c_oAscRelativeFromH;
var c_oAscRelativeFromV = Asc.c_oAscRelativeFromV; var c_oAscRelativeFromV = Asc.c_oAscRelativeFromV;
......
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