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

common/Charts/DrawingArea to function-closure

parent e7fcf1a9
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"../common/Drawings/Format/ChartFormat.js", "../common/Drawings/Format/ChartFormat.js",
"../common/Drawings/Format/TextBody.js", "../common/Drawings/Format/TextBody.js",
"../common/Charts/charts.js", "../common/Charts/charts.js",
"../common/Charts/DrawingArea.js",
"../common/scroll.js", "../common/scroll.js",
"../cell/view/iscroll.js", "../cell/view/iscroll.js",
...@@ -32,7 +33,6 @@ ...@@ -32,7 +33,6 @@
"../common/wordcopypaste.js", "../common/wordcopypaste.js",
"../cell/apiDefines.js", "../cell/apiDefines.js",
"../common/Charts/DrawingArea.js",
"../common/Charts/DrawingObjects.js", "../common/Charts/DrawingObjects.js",
"../common/Charts/ChartsDrawer.js", "../common/Charts/ChartsDrawer.js",
"../common/Charts/3DTransformation.js", "../common/Charts/3DTransformation.js",
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"../common/Drawings/Format/ChartFormat.js", "../common/Drawings/Format/ChartFormat.js",
"../common/Drawings/Format/TextBody.js", "../common/Drawings/Format/TextBody.js",
"../common/Charts/charts.js", "../common/Charts/charts.js",
"../common/Charts/DrawingArea.js",
"../common/scroll.js", "../common/scroll.js",
...@@ -43,7 +44,6 @@ ...@@ -43,7 +44,6 @@
"../common/SerializeChart.js", "../common/SerializeChart.js",
"../common/Charts/ChartsDrawer.js", "../common/Charts/ChartsDrawer.js",
"../common/Charts/3DTransformation.js", "../common/Charts/3DTransformation.js",
"../common/Charts/DrawingArea.js",
"../word/Editor/Serialize2.js", "../word/Editor/Serialize2.js",
"../word/Editor/Styles.js", "../word/Editor/Styles.js",
"../word/Editor/Numbering.js", "../word/Editor/Numbering.js",
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"../common/Drawings/Format/ChartFormat.js", "../common/Drawings/Format/ChartFormat.js",
"../common/Drawings/Format/TextBody.js", "../common/Drawings/Format/TextBody.js",
"../common/Charts/charts.js", "../common/Charts/charts.js",
"../common/Charts/DrawingArea.js",
"../common/scroll.js", "../common/scroll.js",
"../common/Scrolls/iscroll.js", "../common/Scrolls/iscroll.js",
...@@ -48,7 +49,6 @@ ...@@ -48,7 +49,6 @@
"../word/Drawing/translations.js", "../word/Drawing/translations.js",
"../common/Charts/ChartsDrawer.js", "../common/Charts/ChartsDrawer.js",
"../common/Charts/3DTransformation.js", "../common/Charts/3DTransformation.js",
"../common/Charts/DrawingArea.js",
"../common/Charts/DrawingObjects.js", "../common/Charts/DrawingObjects.js",
"../common/Drawings/TrackObjects/AdjustmentTracks.js", "../common/Drawings/TrackObjects/AdjustmentTracks.js",
"../common/Drawings/TrackObjects/MoveTracks.js", "../common/Drawings/TrackObjects/MoveTracks.js",
......
...@@ -3267,7 +3267,7 @@ function OfflineEditor () { ...@@ -3267,7 +3267,7 @@ function OfflineEditor () {
worksheet._drawSelection(); worksheet._drawSelection();
} }
DrawingArea.prototype.drawSelection = function(drawingDocument) { AscFormat.DrawingArea.prototype.drawSelection = function(drawingDocument) {
offlineEditor.flushTextMeasurer(); offlineEditor.flushTextMeasurer();
......
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
this.collaborativeEditing = collaborativeEditing; this.collaborativeEditing = collaborativeEditing;
this.drawingArea = new DrawingArea( this ); this.drawingArea = new AscFormat.DrawingArea( this );
this.cellCommentator = new AscCommonExcel.CCellCommentator(this); this.cellCommentator = new AscCommonExcel.CCellCommentator(this);
this.objectRender = null; this.objectRender = null;
......
...@@ -24,6 +24,13 @@ ...@@ -24,6 +24,13 @@
*/ */
"use strict"; "use strict";
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
// Drawing area manager // Drawing area manager
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
...@@ -746,4 +753,9 @@ DrawingArea.prototype.getOffsets = function(x, y, bEvents) { ...@@ -746,4 +753,9 @@ DrawingArea.prototype.getOffsets = function(x, y, bEvents) {
} }
} }
return null; return null;
}; };
\ No newline at end of file
//--------------------------------------------------------export----------------------------------------------------
window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].DrawingArea = DrawingArea;
})(window);
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