39 |
if layout == None: |
if layout == None: |
40 |
layout = pscv.getLayout(anchorSpan.getScrollBlock()) |
layout = pscv.getLayout(anchorSpan.getScrollBlock()) |
41 |
# For now, we'll just squish to fit |
# For now, we'll just squish to fit |
42 |
unit = vs.unitSqCS(into, "UNIT") |
layout.placeBoxed(vs, into, .5, 200) |
|
scaled = vs.scaleCS(unit, "SCALED", 1.0 / layout.w, 1.0 / layout.h) |
|
|
layout.place(vs, scaled, .5, 200) |
|
43 |
|
|
44 |
class AnchorPageSpanNodeType(AbstractPageSpanNodeType): |
class AnchorPageSpanNodeType(AbstractPageSpanNodeType): |
45 |
def renderBuoy(self, vs, into, linkId, anchorSpan): |
def renderBuoy(self, vs, into, linkId, anchorSpan): |
69 |
|
|
70 |
# XXX This is not right: the distortion |
# XXX This is not right: the distortion |
71 |
# should be done here. |
# should be done here. |
72 |
unit = vs.unitSqCS(into, "UNIT") |
self.layout.placeBoxed(vs, into, 1, 200) |
|
scaled = vs.scaleCS(unit, "SCALED", |
|
|
1.0 / self.layout.w, 1.0 / self.layout.h) |
|
|
self.layout.place(vs, scaled, 1, 200) |
|
73 |
|
|
74 |
matches = (self.nodetype.scrollBlockLinker |
matches = (self.nodetype.scrollBlockLinker |
75 |
.enfiladeOverlap.getMatches(self.enf)) |
.enfiladeOverlap.getMatches(self.enf)) |