Skip to content

Commit 65cb820

Browse files
author
Philip Guo
committed
added ARROWHEADS
1 parent d007b63 commit 65cb820

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

TODO

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ line of code immediately below each annotation.
9696
pre-computed. e.g., list local stack variables by their order of
9797
definition in the original program execution.
9898

99+
99100
---
100101
2011-09-24
101102

@@ -124,9 +125,6 @@ display ... that one is easy --- always auto-scroll to BOTTOM!)
124125
A subset of the suggestions from MIT folks (see more in my private notes
125126
file):
126127

127-
- people thought that it's important to draw arrowheads at the end of
128-
pointers ... try to make them relatively 'clean-looking', though
129-
130128
- what if the user accidentally (or purposefully) creates a HUGE list or
131129
other data structure? how will the visualization handle this? right
132130
now it might croak.

edu-python.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,9 @@ function eduPythonCommonInit() {
11511151
jsPlumb.Defaults.Connector = [ "Bezier", { curviness:15 }]; /* too much 'curviness' causes lines to run together */
11521152
jsPlumb.Defaults.PaintStyle = {lineWidth:1, strokeStyle: lightGray};
11531153

1154+
// experiment with arrows ...
1155+
jsPlumb.Defaults.Overlays = [[ "Arrow", { length: 14, width:10, foldback:0.55, location:0.35 }]]
1156+
11541157
jsPlumb.Defaults.EndpointHoverStyle = {fillStyle: pinkish};
11551158
jsPlumb.Defaults.HoverPaintStyle = {lineWidth:2, strokeStyle: pinkish};
11561159

index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151

5252
<div id="titlePane">
5353

54+
<h1>Online Python Tutor</h1>
55+
56+
<img src="alias-screenshot.png"/>
57+
58+
<pre>
59+
x = ["Alice", "Bob", "Charlie"]
60+
y = x
61+
z = ["Alice", "Bob", "Charlie"]
62+
</pre>
63+
5464
</div>
5565

5666
<div class="activityPane" id="solvePane">
@@ -93,14 +103,6 @@ <h2>existing programs to run using fewer instructions</h2>
93103

94104
</div>
95105

96-
<img src="alias-screenshot.png"/>
97-
98-
<pre>
99-
x = ["Alice", "Bob", "Charlie"]
100-
y = x
101-
z = ["Alice", "Bob", "Charlie"]
102-
</pre>
103-
104106
<!-- TODOs
105107
106108
Include links to original source files of questions for more detailed

0 commit comments

Comments
 (0)