Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
4fe83ba4
Commit
4fe83ba4
authored
Dec 09, 2014
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak highlight path on inputs by a few pixels.
parent
b81bff88
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
blockly_compressed.js
blockly_compressed.js
+4
-4
core/block_svg.js
core/block_svg.js
+5
-4
No files found.
blockly_compressed.js
View file @
4fe83ba4
This diff is collapsed.
Click to expand it.
core/block_svg.js
View file @
4fe83ba4
...
...
@@ -868,19 +868,20 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps,
highlightInlineSteps
.
push
(
'
h
'
,
input
.
renderWidth
-
Blockly
.
BlockSvg
.
TAB_WIDTH
+
1
);
}
else
{
// Highlight right edge, bottom
, and glint at bottom of tab
.
// Highlight right edge, bottom.
highlightInlineSteps
.
push
(
'
M
'
,
(
cursorX
-
Blockly
.
BlockSvg
.
SEP_SPACE_X
+
1
)
+
'
,
'
+
(
cursorY
+
Blockly
.
BlockSvg
.
INLINE_PADDING_Y
+
1
));
highlightInlineSteps
.
push
(
'
v
'
,
input
.
renderHeight
+
1
);
highlightInlineSteps
.
push
(
'
h
'
,
Blockly
.
BlockSvg
.
TAB_WIDTH
-
2
-
input
.
renderWidth
);
// Short highlight glint at bottom of tab.
highlightInlineSteps
.
push
(
'
M
'
,
(
cursorX
-
input
.
renderWidth
-
Blockly
.
BlockSvg
.
SEP_SPACE_X
+
0
.8
)
+
'
,
'
+
(
cursorY
+
Blockly
.
BlockSvg
.
INLINE_PADDING_Y
+
1
.8
)
+
'
,
'
+
(
cursorY
+
Blockly
.
BlockSvg
.
INLINE_PADDING_Y
+
Blockly
.
BlockSvg
.
TAB_HEIGHT
-
0.4
));
highlightInlineSteps
.
push
(
'
l
'
,
(
Blockly
.
BlockSvg
.
TAB_WIDTH
*
0.
42
)
+
'
,-1.8
'
);
(
Blockly
.
BlockSvg
.
TAB_WIDTH
*
0.
38
)
+
'
,-1.8
'
);
}
// Create inline input connection.
if
(
Blockly
.
RTL
)
{
...
...
@@ -935,7 +936,7 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps,
// Short highlight glint at bottom of tab.
highlightSteps
.
push
(
'
M
'
,
(
inputRows
.
rightEdge
-
4.2
)
+
'
,
'
+
(
cursorY
+
Blockly
.
BlockSvg
.
TAB_HEIGHT
-
0.4
));
highlightSteps
.
push
(
'
l
'
,
(
Blockly
.
BlockSvg
.
TAB_WIDTH
*
0.
42
)
+
highlightSteps
.
push
(
'
l
'
,
(
Blockly
.
BlockSvg
.
TAB_WIDTH
*
0.
38
)
+
'
,-1.8
'
);
}
// Create external input connection.
...
...
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