Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
eed03aad
Commit
eed03aad
authored
Aug 02, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 35345.
parent
c57a7606
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
36 deletions
+36
-36
apps/documenteditor/main/app/view/ShapeSettings.js
apps/documenteditor/main/app/view/ShapeSettings.js
+6
-6
apps/documenteditor/main/app/view/TextArtSettings.js
apps/documenteditor/main/app/view/TextArtSettings.js
+6
-6
apps/presentationeditor/main/app/view/ShapeSettings.js
apps/presentationeditor/main/app/view/ShapeSettings.js
+6
-6
apps/presentationeditor/main/app/view/TextArtSettings.js
apps/presentationeditor/main/app/view/TextArtSettings.js
+6
-6
apps/spreadsheeteditor/main/app/view/ShapeSettings.js
apps/spreadsheeteditor/main/app/view/ShapeSettings.js
+6
-6
apps/spreadsheeteditor/main/app/view/TextArtSettings.js
apps/spreadsheeteditor/main/app/view/TextArtSettings.js
+6
-6
No files found.
apps/documenteditor/main/app/view/ShapeSettings.js
View file @
eed03aad
...
@@ -551,7 +551,7 @@ define([
...
@@ -551,7 +551,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -603,7 +603,7 @@ define([
...
@@ -603,7 +603,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -624,7 +624,7 @@ define([
...
@@ -624,7 +624,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -1048,14 +1048,14 @@ define([
...
@@ -1048,14 +1048,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
get_width
();
var
w
=
stroke
.
get_width
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
apps/documenteditor/main/app/view/TextArtSettings.js
View file @
eed03aad
...
@@ -417,7 +417,7 @@ define([
...
@@ -417,7 +417,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -469,7 +469,7 @@ define([
...
@@ -469,7 +469,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -490,7 +490,7 @@ define([
...
@@ -490,7 +490,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -721,14 +721,14 @@ define([
...
@@ -721,14 +721,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
get_width
();
var
w
=
stroke
.
get_width
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
apps/presentationeditor/main/app/view/ShapeSettings.js
View file @
eed03aad
...
@@ -531,7 +531,7 @@ define([
...
@@ -531,7 +531,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -582,7 +582,7 @@ define([
...
@@ -582,7 +582,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -602,7 +602,7 @@ define([
...
@@ -602,7 +602,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -942,14 +942,14 @@ define([
...
@@ -942,14 +942,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
get_width
();
var
w
=
stroke
.
get_width
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
apps/presentationeditor/main/app/view/TextArtSettings.js
View file @
eed03aad
...
@@ -538,7 +538,7 @@ define([
...
@@ -538,7 +538,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -590,7 +590,7 @@ define([
...
@@ -590,7 +590,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -611,7 +611,7 @@ define([
...
@@ -611,7 +611,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -920,14 +920,14 @@ define([
...
@@ -920,14 +920,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
get_width
();
var
w
=
stroke
.
get_width
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
apps/spreadsheeteditor/main/app/view/ShapeSettings.js
View file @
eed03aad
...
@@ -547,7 +547,7 @@ define([
...
@@ -547,7 +547,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -599,7 +599,7 @@ define([
...
@@ -599,7 +599,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -620,7 +620,7 @@ define([
...
@@ -620,7 +620,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
props
=
new
Asc
.
asc_CShapeProperty
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -966,14 +966,14 @@ define([
...
@@ -966,14 +966,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
asc_getWidth
();
var
w
=
stroke
.
asc_getWidth
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
apps/spreadsheeteditor/main/app/view/TextArtSettings.js
View file @
eed03aad
...
@@ -539,7 +539,7 @@ define([
...
@@ -539,7 +539,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
this
.
_state
.
StrokeType
=
this
.
_state
.
StrokeWidth
=
-
1
;
}
else
{
}
else
{
...
@@ -591,7 +591,7 @@ define([
...
@@ -591,7 +591,7 @@ define([
if
(
this
.
api
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
put_type
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -612,7 +612,7 @@ define([
...
@@ -612,7 +612,7 @@ define([
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
if
(
this
.
api
&&
this
.
BorderSize
>
0
&&
!
this
.
_noApply
)
{
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
props
=
new
Asc
.
asc_TextArtProperties
();
var
stroke
=
new
Asc
.
asc_CStroke
();
var
stroke
=
new
Asc
.
asc_CStroke
();
if
(
this
.
BorderSize
<
0.01
)
{
if
(
this
.
BorderSize
<
0.0
000
1
)
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_NONE
);
}
else
{
}
else
{
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
stroke
.
asc_putType
(
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
);
...
@@ -924,14 +924,14 @@ define([
...
@@ -924,14 +924,14 @@ define([
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
this
.
_state
.
StrokeType
!==
strokeType
||
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
if
(
strokeType
==
Asc
.
c_oAscStrokeType
.
STROKE_COLOR
)
{
var
w
=
stroke
.
asc_getWidth
();
var
w
=
stroke
.
asc_getWidth
();
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.001
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
var
check_value
=
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
<
0.00
00
1
)
&&
!
((
new
RegExp
(
this
.
txtPt
+
'
\\
s*$
'
)).
test
(
this
.
cmbBorderSize
.
getRawValue
()));
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.001
||
check_value
||
if
(
Math
.
abs
(
this
.
_state
.
StrokeWidth
-
w
)
>
0.00
00
1
||
check_value
||
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
(
this
.
_state
.
StrokeWidth
===
null
||
w
===
null
)
&&
(
this
.
_state
.
StrokeWidth
!==
w
))
{
this
.
_state
.
StrokeWidth
=
w
;
this
.
_state
.
StrokeWidth
=
w
;
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
if
(
w
!==
null
)
w
=
this
.
_mm2pt
(
w
);
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
var
_selectedItem
=
(
w
===
null
)
?
w
:
_
.
find
(
this
.
cmbBorderSize
.
store
.
models
,
function
(
item
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
1
&&
w
>
item
.
attributes
.
value
-
0.
01
)
{
if
(
w
<
item
.
attributes
.
value
+
0.0
0001
&&
w
>
item
.
attributes
.
value
-
0.000
01
)
{
return
true
;
return
true
;
}
}
});
});
...
...
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