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
1916f235
Commit
1916f235
authored
Mar 25, 2015
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove failed attempt at spriting icons.
parent
3e12c1ea
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
64 deletions
+18
-64
blockly_compressed.js
blockly_compressed.js
+8
-9
core/blockly.js
core/blockly.js
+1
-1
core/trashcan.js
core/trashcan.js
+7
-3
media/sprites.png
media/sprites.png
+0
-0
media/sprites.svg
media/sprites.svg
+2
-51
No files found.
blockly_compressed.js
View file @
1916f235
This diff is collapsed.
Click to expand it.
core/blockly.js
View file @
1916f235
...
...
@@ -86,7 +86,7 @@ Blockly.HSV_VALUE = 0.65;
* Sprited icons and images.
*/
Blockly
.
SPRITE
=
{
width
:
8
4
,
width
:
6
4
,
height
:
92
,
url
:
'
sprites.png
'
};
...
...
core/trashcan.js
View file @
1916f235
...
...
@@ -150,14 +150,18 @@ Blockly.Trashcan.prototype.top_ = 0;
* @return {!Element} The trash can's SVG group.
*/
Blockly
.
Trashcan
.
prototype
.
createDom
=
function
()
{
/*
/*
Here's the markup that will be generated:
<g>
<clippath id="blocklyTrashBodyClipPath">
<rect width="47" height="45" y="15"></rect>
</clippath>
<image width="64" height="92" y="
15" href="media/trashbody
.png"
<image width="64" height="92" y="
-32" xlink:href="media/sprites
.png"
clip-path="url(#blocklyTrashBodyClipPath)"></image>
<image width="47" height="15" href="media/trashlid.png"></image>
<clippath id="blocklyTrashLidClipPath">
<rect width="47" height="15"></rect>
</clippath>
<image width="84" height="92" y="-32" xlink:href="media/sprites.png"
clip-path="url(#blocklyTrashLidClipPath)"></image>
</g>
*/
this
.
svgGroup_
=
Blockly
.
createSvgElement
(
'
g
'
,
{},
null
);
...
...
media/sprites.png
View replaced file @
3e12c1ea
View file @
1916f235
4.39 KB
|
W:
|
H:
1.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
media/sprites.svg
View file @
1916f235
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
width=
"
8
4px"
height=
"92px"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
width=
"
6
4px"
height=
"92px"
>
<style
type=
"text/css"
>
#background {
fill: none;
}
.shield {
fill: #00c;
stroke: #ccc;
stroke-width: 1px;
}
.mark {
fill: #ccc;
font-family: sans-serif;
font-size: 9pt;
font-weight: bold;
text-anchor: middle;
}
.hovered .shield {
fill: #00f;
stroke: #fff;
}
.hovered .mark {
fill: #fff;
}
.mutator .mark {
font-size: 14pt;
}
.arrows {
fill: #000;
stroke: none;
...
...
@@ -43,34 +21,7 @@
fill: #888;
}
</style>
<rect
id=
"background"
width=
"84"
height=
"92"
x=
"0"
y=
"0"
/>
<g
transform=
"translate(47.5, 35.5)"
>
<g
class=
"comment"
transform=
"translate(0, 0)"
>
<circle
class=
"shield"
r=
"8"
cx=
"8"
cy=
"8"
/>
<text
class=
"mark"
x=
"8"
y=
"12.75"
>
?
</text>
</g>
<g
class=
"comment hovered"
transform=
"translate(20, 0)"
>
<circle
class=
"shield"
r=
"8"
cx=
"8"
cy=
"8"
/>
<text
class=
"mark"
x=
"8"
y=
"12.75"
>
?
</text>
</g>
<g
class=
"warning"
transform=
"translate(0, 20)"
>
<path
class=
"shield"
d=
"M 2,15 Q -1,15 0.5,12 L 6.5,1.7 Q 8,-1 9.5,1.7 L 15.5,12 Q 17,15 14,15 z"
/>
<text
class=
"mark"
x=
"8"
y=
"13"
>
!
</text>
</g>
<g
class=
"warning hovered"
transform=
"translate(20, 20)"
>
<path
class=
"shield"
d=
"M 2,15 Q -1,15 0.5,12 L 6.5,1.7 Q 8,-1 9.5,1.7 L 15.5,12 Q 17,15 14,15 z"
/>
<text
class=
"mark"
x=
"8"
y=
"13"
>
!
</text>
</g>
<g
class=
"mutator"
transform=
"translate(0, 40)"
>
<rect
class=
"shield"
width=
"16"
height=
"16"
rx=
"4"
ry=
"4"
/>
<text
class=
"mark"
x=
"8"
y=
"13.5"
>
⚙
</text>
</g>
<g
class=
"mutator hovered"
transform=
"translate(20, 40)"
>
<rect
class=
"shield"
width=
"16"
height=
"16"
rx=
"4"
ry=
"4"
/>
<text
class=
"mark"
x=
"8"
y=
"13.5"
>
⚙
</text>
</g>
</g>
<rect
id=
"background"
width=
"64"
height=
"92"
x=
"0"
y=
"0"
/>
<g>
<path
class=
"arrows"
d=
"M 13,1.5 13,14.5 1.74,8 z"
/>
...
...
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