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

common/Drawings/Hit to function-closure

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