Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
bd17ba76
Commit
bd17ba76
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add description of max window size problem.
parent
5a1b062e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/foo_canvas.html
+21
-1
21 additions, 1 deletion
doc/foo_canvas.html
with
21 additions
and
1 deletion
doc/foo_canvas.html
+
21
−
1
View file @
bd17ba76
...
...
@@ -12,6 +12,26 @@
<H2>
Coordinate Systems
</H2>
<P>
The canvas has a coordinate system that goes from -inifinity to +inifinity for both
x and y axes, how much of this is displayed is decided by the extent of the scroll_region.
The scroll_region can be set to any size. The scale at which the scroll_region is projected
on to the canvas window is decided by the pixels_per_unit of the canvas.
<P>
It is possible to set the scroll_region and pixels_per_unit so that the canvas window
exceeds the X windows protocol limit of 65535, in actual fact the limit is actually
32767 as coordinates in the protocol are specified with short ints. The canvas does not
deal with this problem, you the application programmer have to deal with it.
<P>
We deal with this by allowing the window to expand until it reaches 30000 pixels, after
this we zoom in further by reducing the scroll_region in line with the increasing pixels_per_unit
to maintain a window size of 30000.
<P>
A further problem seems to be that even we do this, if there are objects which are longer
than the scroll_region, then they are not displayed properly. This is probably because the
canvas is not clipping their coordinates at all so they exceed the 32767 limit. Thus you have
to clip long objects as well as handle the overall canvas window size.
<H2>
Event Handling
</H2>
...
...
@@ -54,7 +74,7 @@ from handling of canvas <b>item</b> events.
<HR>
<ADDRESS><a
href=
"mailto:edgrif@sanger.ac.uk"
>
Ed Griffiths
<
edgrif@sanger.ac.uk
>
</a></ADDRESS>
<!-- hhmts start -->
Last modified:
Mon
Jan
17 15:16
:3
5
GMT 2005
Last modified:
Thu
Jan
20 14:03
:3
7
GMT 2005
<!-- hhmts end -->
</BODY>
</HTML>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment