Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
80150519
Commit
80150519
authored
May 05, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move asc_CChartTranslate to aiCommon
parent
92091d6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
37 deletions
+35
-37
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+0
-35
common/apiBase.js
common/apiBase.js
+2
-2
common/apiCommon.js
common/apiCommon.js
+33
-0
No files found.
common/Charts/DrawingObjects.js
View file @
80150519
...
...
@@ -74,30 +74,6 @@ asc_CChartStyle.prototype = {
asc_setImageUrl
:
function
(
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
};
/** @constructor */
function
asc_CChartTranslate
()
{
this
.
title
=
"
Diagram Title
"
;
this
.
xAxis
=
"
X Axis
"
;
this
.
yAxis
=
"
Y Axis
"
;
this
.
series
=
"
Series
"
;
}
asc_CChartTranslate
.
prototype
=
{
asc_getTitle
:
function
()
{
return
this
.
title
;
},
asc_setTitle
:
function
(
val
)
{
this
.
title
=
val
;
},
asc_getXAxis
:
function
()
{
return
this
.
xAxis
;
},
asc_setXAxis
:
function
(
val
)
{
this
.
xAxis
=
val
;
},
asc_getYAxis
:
function
()
{
return
this
.
yAxis
;
},
asc_setYAxis
:
function
(
val
)
{
this
.
yAxis
=
val
;
},
asc_getSeries
:
function
()
{
return
this
.
series
;
},
asc_setSeries
:
function
(
val
)
{
this
.
series
=
val
;
}
};
/** @constructor */
function
asc_CChartBinary
(
chart
)
{
...
...
@@ -3903,17 +3879,6 @@ function CoordsManager(ws) {
prot
[
"
asc_getImageUrl
"
]
=
prot
.
asc_getImageUrl
;
prot
[
"
asc_setImageUrl
"
]
=
prot
.
asc_setImageUrl
;
window
[
"
Asc
"
][
"
asc_CChartTranslate
"
]
=
window
[
"
Asc
"
].
asc_CChartTranslate
=
asc_CChartTranslate
;
prot
=
asc_CChartTranslate
.
prototype
;
prot
[
"
asc_getTitle
"
]
=
prot
.
asc_getTitle
;
prot
[
"
asc_setTitle
"
]
=
prot
.
asc_setTitle
;
prot
[
"
asc_getXAxis
"
]
=
prot
.
asc_getXAxis
;
prot
[
"
asc_setXAxis
"
]
=
prot
.
asc_setXAxis
;
prot
[
"
asc_getYAxis
"
]
=
prot
.
asc_getYAxis
;
prot
[
"
asc_setYAxis
"
]
=
prot
.
asc_setYAxis
;
prot
[
"
asc_getSeries
"
]
=
prot
.
asc_getSeries
;
prot
[
"
asc_setSeries
"
]
=
prot
.
asc_setSeries
;
window
[
"
Asc
"
][
"
asc_CChartBinary
"
]
=
window
[
"
Asc
"
].
asc_CChartBinary
=
asc_CChartBinary
;
prot
=
asc_CChartBinary
.
prototype
;
prot
[
"
asc_getBinary
"
]
=
prot
.
asc_getBinary
;
...
...
common/apiBase.js
View file @
80150519
...
...
@@ -601,8 +601,8 @@ baseEditorsApi.prototype.asc_getUrlType = function(url) {
this
.
ImageLoader
.
put_Api
(
this
);
this
.
FontLoader
.
SetStandartFonts
();
this
.
chartTranslate
=
new
Asc
.
asc_CChartTranslate
();
this
.
textArtTranslate
=
new
Asc
.
asc_TextArtTranslate
();
this
.
chartTranslate
=
this
.
chartTranslate
?
this
.
chartTranslate
:
new
Asc
.
asc_CChartTranslate
();
this
.
textArtTranslate
=
this
.
textArtTranslate
?
this
.
textArtTranslate
:
new
Asc
.
asc_TextArtTranslate
();
this
.
chartPreviewManager
=
new
AscCommon
.
ChartPreviewManager
();
this
.
textArtPreviewManager
=
new
AscCommon
.
TextArtPreviewManager
();
...
...
common/apiCommon.js
View file @
80150519
...
...
@@ -1554,6 +1554,28 @@
return
this
.
Style
;
};
/** @constructor */
function
asc_CChartTranslate
()
{
this
.
title
=
"
Diagram Title
"
;
this
.
xAxis
=
"
X Axis
"
;
this
.
yAxis
=
"
Y Axis
"
;
this
.
series
=
"
Series
"
;
}
asc_CChartTranslate
.
prototype
=
{
asc_getTitle
:
function
()
{
return
this
.
title
;
},
asc_setTitle
:
function
(
val
)
{
this
.
title
=
val
;
},
asc_getXAxis
:
function
()
{
return
this
.
xAxis
;
},
asc_setXAxis
:
function
(
val
)
{
this
.
xAxis
=
val
;
},
asc_getYAxis
:
function
()
{
return
this
.
yAxis
;
},
asc_setYAxis
:
function
(
val
)
{
this
.
yAxis
=
val
;
},
asc_getSeries
:
function
()
{
return
this
.
series
;
},
asc_setSeries
:
function
(
val
)
{
this
.
series
=
val
;
}
};
function
asc_TextArtTranslate
()
{
this
.
DefaultText
=
"
Your text here
"
;
...
...
@@ -2619,6 +2641,17 @@
prot
[
"
asc_putStyle
"
]
=
prot
.
asc_putStyle
;
prot
[
"
asc_getStyle
"
]
=
prot
.
asc_getStyle
;
window
[
"
Asc
"
][
"
asc_CChartTranslate
"
]
=
window
[
"
Asc
"
].
asc_CChartTranslate
=
asc_CChartTranslate
;
prot
=
asc_CChartTranslate
.
prototype
;
prot
[
"
asc_getTitle
"
]
=
prot
.
asc_getTitle
;
prot
[
"
asc_setTitle
"
]
=
prot
.
asc_setTitle
;
prot
[
"
asc_getXAxis
"
]
=
prot
.
asc_getXAxis
;
prot
[
"
asc_setXAxis
"
]
=
prot
.
asc_setXAxis
;
prot
[
"
asc_getYAxis
"
]
=
prot
.
asc_getYAxis
;
prot
[
"
asc_setYAxis
"
]
=
prot
.
asc_setYAxis
;
prot
[
"
asc_getSeries
"
]
=
prot
.
asc_getSeries
;
prot
[
"
asc_setSeries
"
]
=
prot
.
asc_setSeries
;
window
[
"
Asc
"
][
"
asc_TextArtTranslate
"
]
=
window
[
"
Asc
"
].
asc_TextArtTranslate
=
asc_TextArtTranslate
;
prot
=
asc_TextArtTranslate
.
prototype
;
prot
[
"
asc_setDefaultText
"
]
=
prot
.
asc_setDefaultText
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment