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
4681623b
Commit
4681623b
authored
Jun 03, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
увеличен минимальный размер стрелок на концах
parent
2346c1e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
26 deletions
+30
-26
cell/model/DrawingObjects/ShapeDrawer.js
cell/model/DrawingObjects/ShapeDrawer.js
+2
-2
common/Drawings/Format/Format.js
common/Drawings/Format/Format.js
+26
-22
word/Drawing/ShapeDrawer.js
word/Drawing/ShapeDrawer.js
+2
-2
No files found.
cell/model/DrawingObjects/ShapeDrawer.js
View file @
4681623b
...
@@ -1558,7 +1558,7 @@ CShapeDrawer.prototype =
...
@@ -1558,7 +1558,7 @@ CShapeDrawer.prototype =
if
(
_max_delta
>
0.001
)
if
(
_max_delta
>
0.001
)
{
{
this
.
Graphics
.
ArrayPoints
=
null
;
this
.
Graphics
.
ArrayPoints
=
null
;
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
headEnd
.
type
,
this
.
Ln
.
headEnd
.
GetWidth
(
_pen_w
),
this
.
Ln
.
headEnd
.
GetLen
(
_pen_w
),
this
,
trans1
);
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
headEnd
.
type
,
this
.
Ln
.
headEnd
.
GetWidth
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
.
Ln
.
headEnd
.
GetLen
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
,
trans1
);
this
.
Graphics
.
ArrayPoints
=
arr
;
this
.
Graphics
.
ArrayPoints
=
arr
;
}
}
}
}
...
@@ -1584,7 +1584,7 @@ CShapeDrawer.prototype =
...
@@ -1584,7 +1584,7 @@ CShapeDrawer.prototype =
if
(
_max_delta
>
0.001
)
if
(
_max_delta
>
0.001
)
{
{
this
.
Graphics
.
ArrayPoints
=
null
;
this
.
Graphics
.
ArrayPoints
=
null
;
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
tailEnd
.
type
,
this
.
Ln
.
tailEnd
.
GetWidth
(
_pen_w
),
this
.
Ln
.
tailEnd
.
GetLen
(
_pen_w
),
this
,
trans1
);
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
tailEnd
.
type
,
this
.
Ln
.
tailEnd
.
GetWidth
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
.
Ln
.
tailEnd
.
GetLen
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
,
trans1
);
this
.
Graphics
.
ArrayPoints
=
arr
;
this
.
Graphics
.
ArrayPoints
=
arr
;
}
}
}
}
...
...
common/Drawings/Format/Format.js
View file @
4681623b
...
@@ -3895,35 +3895,39 @@ EndArrow.prototype =
...
@@ -3895,35 +3895,39 @@ EndArrow.prototype =
return
arrow
&&
arrow
.
type
==
this
.
type
&&
arrow
.
len
==
this
.
len
&&
arrow
.
w
==
this
.
w
;
return
arrow
&&
arrow
.
type
==
this
.
type
&&
arrow
.
len
==
this
.
len
&&
arrow
.
w
==
this
.
w
;
},
},
GetWidth
:
function
(
size
)
GetWidth
:
function
(
size
,
_max
)
{
{
if
(
null
==
this
.
w
)
var
_ret
=
3
*
size
;
return
size
*
3
;
if
(
null
!=
this
.
w
)
switch
(
this
.
w
)
{
{
case
LineEndSize
.
Large
:
switch
(
this
.
w
)
return
5
*
size
;
{
case
LineEndSize
.
Small
:
case
LineEndSize
.
Large
:
return
2
*
size
;
_ret
=
5
*
size
;
default
:
case
LineEndSize
.
Small
:
break
;
_ret
=
2
*
size
;
default
:
break
;
}
}
}
return
3
*
size
;
return
Math
.
max
(
_ret
,
_max
?
_max
:
7
)
;
},
},
GetLen
:
function
(
size
)
GetLen
:
function
(
size
,
_max
)
{
{
if
(
null
==
this
.
len
)
var
_ret
=
3
*
size
;
return
size
*
3
;
if
(
null
!=
this
.
w
)
switch
(
this
.
len
)
{
{
case
LineEndSize
.
Large
:
switch
(
this
.
w
)
return
5
*
size
;
{
case
LineEndSize
.
Small
:
case
LineEndSize
.
Large
:
return
2
*
size
;
_ret
=
5
*
size
;
default
:
case
LineEndSize
.
Small
:
break
;
_ret
=
2
*
size
;
default
:
break
;
}
}
}
return
3
*
size
;
return
Math
.
max
(
_ret
,
_max
?
_max
:
7
)
;
},
},
getObjectType
:
function
()
getObjectType
:
function
()
...
...
word/Drawing/ShapeDrawer.js
View file @
4681623b
...
@@ -1558,7 +1558,7 @@ CShapeDrawer.prototype =
...
@@ -1558,7 +1558,7 @@ CShapeDrawer.prototype =
if
(
_max_delta
>
0.001
)
if
(
_max_delta
>
0.001
)
{
{
this
.
Graphics
.
ArrayPoints
=
null
;
this
.
Graphics
.
ArrayPoints
=
null
;
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
headEnd
.
type
,
this
.
Ln
.
headEnd
.
GetWidth
(
_pen_w
),
this
.
Ln
.
headEnd
.
GetLen
(
_pen_w
),
this
,
trans1
);
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
headEnd
.
type
,
this
.
Ln
.
headEnd
.
GetWidth
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
.
Ln
.
headEnd
.
GetLen
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
,
trans1
);
this
.
Graphics
.
ArrayPoints
=
arr
;
this
.
Graphics
.
ArrayPoints
=
arr
;
}
}
}
}
...
@@ -1584,7 +1584,7 @@ CShapeDrawer.prototype =
...
@@ -1584,7 +1584,7 @@ CShapeDrawer.prototype =
if
(
_max_delta
>
0.001
)
if
(
_max_delta
>
0.001
)
{
{
this
.
Graphics
.
ArrayPoints
=
null
;
this
.
Graphics
.
ArrayPoints
=
null
;
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
tailEnd
.
type
,
this
.
Ln
.
tailEnd
.
GetWidth
(
_pen_w
),
this
.
Ln
.
tailEnd
.
GetLen
(
_pen_w
),
this
,
trans1
);
DrawLineEnd
(
_x1
,
_y1
,
_x2
,
_y2
,
this
.
Ln
.
tailEnd
.
type
,
this
.
Ln
.
tailEnd
.
GetWidth
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
.
Ln
.
tailEnd
.
GetLen
(
_pen_w
,
7
/
g_dKoef_mm_to_pix
),
this
,
trans1
);
this
.
Graphics
.
ArrayPoints
=
arr
;
this
.
Graphics
.
ArrayPoints
=
arr
;
}
}
}
}
...
...
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