kopia lustrzana https://github.com/backface/turtlestitch
migrated a bunch of calls to fullImage() in blocks.js
rodzic
17d173f634
commit
a09414f957
|
@ -2262,7 +2262,7 @@ SyntaxElementMorph.prototype.exportPictureWithResult = function (aBubble) {
|
||||||
IDE_Morph
|
IDE_Morph
|
||||||
),
|
),
|
||||||
scr = this.fullImage(),
|
scr = this.fullImage(),
|
||||||
bub = aBubble.fullImageClassic(),
|
bub = aBubble.fullImage(),
|
||||||
taller = Math.max(0, bub.height - scr.height),
|
taller = Math.max(0, bub.height - scr.height),
|
||||||
pic = newCanvas(new Point(
|
pic = newCanvas(new Point(
|
||||||
scr.width + bub.width + 2,
|
scr.width + bub.width + 2,
|
||||||
|
@ -3395,7 +3395,7 @@ BlockMorph.prototype.mapToHeader = function () {
|
||||||
help,
|
help,
|
||||||
pic;
|
pic;
|
||||||
block.addShadow(new Point(3, 3));
|
block.addShadow(new Point(3, 3));
|
||||||
pic = block.fullImageClassic();
|
pic = block.fullImage();
|
||||||
if (this.isCustomBlock) {
|
if (this.isCustomBlock) {
|
||||||
help = 'Enter code that corresponds to the block\'s definition. ' +
|
help = 'Enter code that corresponds to the block\'s definition. ' +
|
||||||
'Use the formal parameter\nnames as shown and <body> to ' +
|
'Use the formal parameter\nnames as shown and <body> to ' +
|
||||||
|
@ -3433,7 +3433,7 @@ BlockMorph.prototype.mapToCode = function () {
|
||||||
myself = this,
|
myself = this,
|
||||||
pic;
|
pic;
|
||||||
block.addShadow(new Point(3, 3));
|
block.addShadow(new Point(3, 3));
|
||||||
pic = block.fullImageClassic();
|
pic = block.fullImage();
|
||||||
new DialogBoxMorph(
|
new DialogBoxMorph(
|
||||||
this,
|
this,
|
||||||
function (code) {
|
function (code) {
|
||||||
|
@ -12644,7 +12644,7 @@ CommentMorph.prototype.userMenu = function () {
|
||||||
function () {
|
function () {
|
||||||
var ide = myself.parentThatIsA(IDE_Morph);
|
var ide = myself.parentThatIsA(IDE_Morph);
|
||||||
ide.saveCanvasAs(
|
ide.saveCanvasAs(
|
||||||
myself.fullImageClassic(),
|
myself.fullImage(),
|
||||||
(ide.projectName || localize('untitled')) + ' ' +
|
(ide.projectName || localize('untitled')) + ' ' +
|
||||||
localize('comment pic')
|
localize('comment pic')
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue