Class: StageMorph

StageMorph

new StageMorph (globals)

Name Type Description
globals ?

Extends

Methods

add (aMorph) inherited

Name Type Description
aMorph Morph

addBack (aMorph) inherited

Name Type Description
aMorph Morph

addChild (aNode) inherited

Name Type Description
aNode Node

addChildFirst (aNode) inherited

Name Type Description
aNode Node

addCostume (costume)

Name Type Description
costume ?

addShadow (off, a, color)ShadowMorph inherited

Name Type Description
off Point optional
a number optional
color Color optional
Returns:
Type Description
ShadowMorph

addSound (audio, name)

Name Type Description
audio ?
name ?

addVariable (name, isGlobal)

Name Type Description
name ?
isGlobal ?

adjustBounds () inherited

allBlockInstances (definition)Array.<?>

Name Type Description
definition ?
Returns:
Type Description
Array.<?>

allBlocks (valuesOnly)Object.<?, ?> | ?

Name Type Default Description
valuesOnly boolean false optional
Returns:
Type Description
Object.<?, ?> | ?

allChildren ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

allDependentInvocationsOf (aSpec)Array.<?>

Name Type Description
aSpec ?
Returns:
Type Description
Array.<?>

allEditorBlockInstances (definition, spec)Array.<?>

Name Type Description
definition ?
spec ?
Returns:
Type Description
Array.<?>

allEntryFields ()Array.<Morph> inherited

Returns:
Type Description
Array.<Morph>

allGenericHatBlocks ()Array.<?>

Returns:
Type Description
Array.<?>

allHatBlocksFor (message)Array.<?>

Name Type Description
message String
Returns:
Type Description
Array.<?>

allHatBlocksForInteraction (interaction)Array.<?>

Name Type Description
interaction ?
Returns:
Type Description
Array.<?>

allHatBlocksForKey (key)Array.<?>

Name Type Description
key String
Returns:
Type Description
Array.<?>

allIndependentInvocationsOf (aSpec)Array.<?>

Name Type Description
aSpec ?
Returns:
Type Description
Array.<?>

allInvocationsOf (aSpec)Array.<?>

Name Type Description
aSpec ?
Returns:
Type Description
Array.<?>

allLeafs ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

allLocalBlockInstances (definition)Array.<?>

Name Type Description
definition ?
Returns:
Type Description
Array.<?>

allLocalVariableNames (sorted)Array.<String>

Name Type Default Description
sorted boolean false optional
Returns:
Type Description
Array.<String>

allMessageNames ()Array.<?>

Returns:
Type Description
Array.<?>

allParents ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

allSpecimens ()Array.<?>

Returns:
Type Description
Array.<?>

anyChild (aPredicate)boolean inherited

Name Type Description
aPredicate function
Returns:
Type Description
boolean

applyGraphicsEffects (canvas)HTMLCanvasElement

Name Type Description
canvas HTMLCanvasElement
Returns:
Type Description
HTMLCanvasElement

attach () inherited

backTab (editField) inherited

Name Type Description
editField Morph

blockForSelector (selector, setDefaults)BlockMorph

Name Type Description
selector ?
setDefaults ?
Returns:
Type Description
BlockMorph

blocksMatching (searchString, strictly, types, varNames)Array

Name Type Default Description
searchString String
strictly boolean false optional
types Array.<String> optional
varNames Array.<String> optional
Returns:
Type Description
Array

blockTemplates (category)Array.<BlockMorph>

Name Type Description
category String
Returns:
Type Description
Array.<BlockMorph>

bottom ()number inherited

Returns:
Type Description
number

bottomCenter ()Point inherited

Returns:
Type Description
Point

bottomLeft ()Point inherited

Returns:
Type Description
Point

bottomRight ()Point inherited

Returns:
Type Description
Point

boundingBox ()Point inherited

Returns:
Type Description
Point

center ()Point inherited

Returns:
Type Description
Point

changed () inherited

changeEffect (effect, value)

Name Type Description
effect ?
value number

changeTempo (delta)

Name Type Description
delta number

childChanged () inherited

clear ()

clearEffects ()

clearPenTrails ()

colorFiltered (aColor, excludedSprite)Morph

Name Type Description
aColor Color
excludedSprite ?
Returns:
Type Description
Morph

colorSetters ()Array.<String> inherited

Returns:
Type Description
Array.<String>

contextMenu ()MenuMorph inherited

Returns:
Type Description
MenuMorph

copy ()Morph inherited

Returns:
Type Description
Morph

copyRecordingReferences (map)Morph inherited

Name Type Description
map Map
Returns:
Type Description
Morph

corners ()Array.<Point> inherited

Returns:
Type Description
Array.<Point>

createClone ()

deleteAllBlockInstances (definition)

Name Type Description
definition ?

deleteVariable (varName)

Name Type Description
varName ?

deleteVariableWatcher (varName)

Name Type Description
varName ?

depth ()number inherited

Returns:
Type Description
number

destroy () inherited

developersMenu ()MenuMorph inherited overrides

Returns:
Type Description
MenuMorph

doScreenshot (imgSource, data)

Name Type Description
imgSource ?
data String

doSwitchToCostume (id, noShadow)

Name Type Description
id ?
noShadow boolean

doubleDefinitionsFor (definition)Array.<?>

Name Type Description
definition ?
Returns:
Type Description
Array.<?>

doWearNextCostume ()

doWearPreviousCostume ()

drawCachedTexture () inherited

drawNew () inherited overrides

drawOn (aCanvas, aRect) inherited overrides

Name Type Description
aCanvas HTMLCanvasElement
aRect Rectangle optional

drawTexture (url) inherited

Name Type Description
url String

droppedAudio (anAudio, name) inherited

Name Type Description
anAudio Audio
name String

droppedBinary (anArrayBuffer, name) inherited

Name Type Description
anArrayBuffer Array
name String

droppedImage (aCanvas, name) inherited

Name Type Description
aCanvas HTMLCanvasElement
name String

droppedSVG (anImage, name) inherited

Name Type Description
anImage Image
name String

droppedText (aString, name) inherited

Name Type Description
aString String
name String

edit ()

editScripts ()

escalateEvent (functionName, arg) inherited

Name Type Description
functionName String
arg *

evaluateString (code)* inherited

Name Type Description
code String
Returns:
Type Description
*

extent ()Point inherited

Returns:
Type Description
Point

fadeTo (endAlpha, msecs, easing, onComplete) inherited

Name Type Description
endAlpha number
msecs number optional
easing String | function optional
onComplete function optional

findVariableWatcher (varName)WatcherMorph

Name Type Description
varName ?
Returns:
Type Description
WatcherMorph

fireGreenFlagEvent ()Array.<?>

Returns:
Type Description
Array.<?>

fireKeyEvent (key)?

Name Type Description
key String
Returns:
Type Description
?

fireStopAllEvent ()

forAllChildren (aFunction) inherited

Name Type Description
aFunction function

freshPalette (category)ScrollFrameMorph

Name Type Description
category ?
Returns:
Type Description
ScrollFrameMorph

fullBounds ()Rectangle inherited

Returns:
Type Description
Rectangle

fullBoundsNoShadow ()Rectangle inherited

Returns:
Type Description
Rectangle

fullChanged () inherited

fullCopy ()Morph inherited

Returns:
Type Description
Morph

fullDrawOn (aCanvas, aRect) inherited

Name Type Description
aCanvas HTMLCanvasElement
aRect Rectangle optional

fullImage ()HTMLCanvasElement inherited

Returns:
Type Description
HTMLCanvasElement

fullImageClassic ()HTMLCanvasElement inherited

Returns:
Type Description
HTMLCanvasElement

getCostumeIdx ()number

Returns:
Type Description
number

getGhostEffect ()number

Returns:
Type Description
number

getLastAnswer ()?

Returns:
Type Description
?

getLastMessage ()String

Returns:
Type Description
String

getLocalMethod (spec)?

Name Type Description
spec String
Returns:
Type Description
?

getMethod (spec)?

Name Type Description
spec String
Returns:
Type Description
?

getPixelColor (aPoint)Color overrides

Name Type Description
aPoint Point
Returns:
Type Description
Color

getShadow ()ShadowMorph inherited

Returns:
Type Description
ShadowMorph

getTempo ()number

Returns:
Type Description
number

getTimer ()number

Returns:
Type Description
number

glideTo (endPoint, msecs, easing, onComplete) inherited

Name Type Description
endPoint Point
msecs number optional
easing String | function optional
onComplete function optional

globalVariables ()?

Returns:
Type Description
?

graphicsChanged ()boolean

Returns:
Type Description
boolean

hasSpriteVariable (varName)boolean

Name Type Description
varName String
Returns:
Type Description
boolean

height ()number inherited

Returns:
Type Description
number

hierarchyMenu ()MenuMorph inherited

Returns:
Type Description
MenuMorph

hint (msg) inherited

Name Type Default Description
msg String 'NULL' optional

inform (msg) inherited

Name Type Default Description
msg String 'NULL' optional

inheritedBlocks (valuesOnly)Object.<?, ?> | ?

Name Type Default Description
valuesOnly boolean false optional
Returns:
Type Description
Object.<?, ?> | ?

inheritedVariableNames (shadowedOnly)Array.<String>

Name Type Default Description
shadowedOnly boolean false optional
Returns:
Type Description
Array.<String>

inheritsAttribute (aName)boolean

Name Type Description
aName String
Returns:
Type Description
boolean

init (globals) overrides

Name Type Description
globals ?

inspect (anotherObject) inherited

Name Type Description
anotherObject *

inspectKeyEvent (event)

Name Type Description
event KeyboardEvent

isCorrectingOutsideDrag ()boolean inherited

Returns:
Type Description
boolean

isPickedUp ()boolean inherited

Returns:
Type Description
boolean

isTouching (otherMorph)boolean inherited

Name Type Description
otherMorph Morph
Returns:
Type Description
boolean

isTransparentAt (aPoint)boolean inherited

Name Type Description
aPoint Point
Returns:
Type Description
boolean

isVariableNameInUse (vName, isGlobal)boolean

Name Type Description
vName String
isGlobal boolean
Returns:
Type Description
boolean

justDropped (handMorph) inherited

Name Type Description
handMorph HandMorph

keepAllSubmorphsWithin () inherited

keepInScrollFrame () inherited

keepWithin (aMorph) inherited

Name Type Description
aMorph Morph

left ()number inherited

Returns:
Type Description
number

leftCenter ()Point inherited

Returns:
Type Description
Point

makeBlock ()

makeBlockButton ()PushButtonMorph

Returns:
Type Description
PushButtonMorph

mouseClickLeft (pos) inherited overrides

Name Type Description
pos Point

mouseClickRight (pos) inherited

Name Type Description
pos Point

mouseDoubleClick (pos) inherited

Name Type Description
pos Point

mouseDownLeft (pos) inherited overrides

Name Type Description
pos Point

mouseDownRight (pos) inherited

Name Type Description
pos Point

mouseEnter (pos) inherited overrides

Name Type Description
pos Point

mouseEnterDragging (pos) inherited

Name Type Description
pos Point

mouseLeave (pos) inherited overrides

Name Type Description
pos Point

mouseLeaveDragging (pos) inherited

Name Type Description
pos Point

mouseMove (pos, button) inherited

Name Type Description
pos Point
button String

mouseScroll (pos) inherited overrides

Name Type Description
pos Point

move () inherited

moveBy (delta) inherited

Name Type Description
delta number | Point

moveCenter () inherited

newClone ()

newCostumeName (name, ignoredCostume)String

Name Type Description
name String
ignoredCostume boolean
Returns:
Type Description
String

nextEntryField (current)Morph inherited

Name Type Description
current number
Returns:
Type Description
Morph

nextSteps (arrayOfFunctions) inherited

Name Type Description
arrayOfFunctions Array.<function()>

nextTab (editField) inherited

Name Type Description
editField Morph

numericalSetters ()Array.<String> inherited

Returns:
Type Description
Array.<String>

overlappedMorphs ()Array.<Morph> inherited

Returns:
Type Description
Array.<Morph>

overlappingImage (otherMorph)HTMLCanvasElement inherited

Name Type Description
otherMorph Morph
Returns:
Type Description
HTMLCanvasElement

ownBlocks ()Object.<?, ?>

Returns:
Type Description
Object.<?, ?>

palette (category)

Name Type Description
category ?

paletteBlockInstance (definition)BlockMorph

Name Type Description
definition ?
Returns:
Type Description
BlockMorph

parentThatIsA (constructor)Node inherited

Name Type Description
constructor function
Returns:
Type Description
Node

parentThatIsAnyOf (constructors)Node inherited

Name Type Description
constructors Array.<function()>
Returns:
Type Description
Node

pauseAllActiveSounds ()

penTrails ()HTMLCanvasElement inherited overrides

Returns:
Type Description
HTMLCanvasElement

penTrailsMorph ()Morph

Returns:
Type Description
Morph

perish (msecs, onComplete) inherited

Name Type Description
msecs number optional
onComplete function optional

pickColor (msg, callback, environment, defaultContents) inherited

Name Type Default Description
msg String '' optional
callback function optional
environment String optional
defaultContents String '' optional

pickUp (wrrld) inherited

Name Type Description
wrrld WorldMorph optional

playSound (name)boolean

Name Type Description
name ?
Returns:
Type Description
boolean

position ()Point inherited

Returns:
Type Description
Point

prepareToBeGrabbed (handMorph) inherited

Name Type Description
handMorph HandMorph

previousEntryField (current)Morph inherited

Name Type Description
current number
Returns:
Type Description
Morph

previousTab (editField) inherited

Name Type Description
editField Morph

processKeyDown (event) inherited overrides

Name Type Description
event KeyboardEvent

processKeyEvent ()

processKeyPress (event) inherited overrides

Name Type Description
event KeyboardEvent

processKeyUp (event) inherited overrides

Name Type Description
event KeyboardEvent

prompt (msg, callback, environment, defaultContents, width, floorNum, ceilingNum, isRounded) inherited

Name Type Default Description
msg String '' optional
callback function optional
environment String optional
defaultContents String '' optional
width number 100 optional
floorNum number optional
ceilingNum number optional
isRounded boolean false optional

reachableGlobalVariableNames (sorted)Array.<String>

Name Type Default Description
sorted boolean false optional
Returns:
Type Description
Array.<String>

reactToChoice (arg) inherited

Name Type Description
arg *

reactToDropOf (aMorph, handMorph) inherited overrides

Name Type Description
aMorph Morph
handMorph HandMorph

reactToGrabOf (grabbedMorph) inherited

Name Type Description
grabbedMorph Morph

reactToKeystroke (event) inherited

Name Type Description
event KeyboardEvent

reactToTemplateCopy () inherited

receiveUserInteraction (interaction)Array.<?>

Name Type Description
interaction ?
Returns:
Type Description
Array.<?>

refactorVariableInstances (oldName, newName, isGlobal)

Name Type Description
oldName ?
newName ?
isGlobal boolean

removeAllClones ()

removeChild (aNode) inherited

Name Type Description
aNode Node

removePressedKey (key)

Name Type Description
key String

removeShadow () inherited

replaceDoubleDefinitionsFor (definition)

Name Type Description
definition ?

reportCostumes ()?

Returns:
Type Description
?

reporterize (expressionString)?

Name Type Description
expressionString String
Returns:
Type Description
?

reportMouseX ()number

Returns:
Type Description
number

reportMouseY ()number

Returns:
Type Description
number

reportPenTrailsAsCostume ()Costume

Returns:
Type Description
Costume

reportSounds ()?

Returns:
Type Description
?

reportThreadCount ()number

Returns:
Type Description
number

resetTimer ()

resize () inherited

resumeAllActiveSounds ()

Returns:
Type Description
number

rightCenter ()Point inherited

Returns:
Type Description
Point

root ()Node inherited

Returns:
Type Description
Node

rootForGrab ()Morph inherited

Returns:
Type Description
Morph

scrollIntoView () inherited

searchBlocks (searchString, types, varNames, scriptFocus)

Name Type Default Description
searchString String '' optional
types Array.<String> optional
varNames Array.<String> optional
scriptFocus ScriptFocusMorph optional

selectForEdit ()Morph inherited

Returns:
Type Description
Morph

setAlphaScaled (alpha) inherited

Name Type Description
alpha number

setBottom (y) inherited

Name Type Description
y number

setCenter (aPoint) inherited

Name Type Description
aPoint Point

setColor (aColor) inherited

Name Type Description
aColor Color

setEffect (effect, value)

Name Type Description
effect ?
value number

setExtent (aPoint, silently) inherited

Name Type Default Description
aPoint Point
silently boolean false optional

setFullCenter (aPoint) inherited

Name Type Description
aPoint Point

setHeight (height) inherited

Name Type Description
height number

setLeft (x) inherited

Name Type Description
x number

setName (string)

Name Type Description
string String

setPosition (aPoint) inherited

Name Type Description
aPoint Point

setRight (x) inherited

Name Type Description
x number

setScale (number)

Name Type Description
number number

setTempo (bpm)

Name Type Description
bpm number

setTop (y) inherited

Name Type Description
y number

setWidth (width) inherited

Name Type Description
width number

shadow (off, a, color)ShadowMorph inherited

Name Type Description
off Point optional
a number optional
color Color optional
Returns:
Type Description
ShadowMorph

shadowAttribute (aName)

Name Type Description
aName String

shadowImage (off, color)HTMLCanvasElement inherited

Name Type Description
off Point optional
color Color optional
Returns:
Type Description
HTMLCanvasElement

shadowImageBlurred (off, color)HTMLCanvasElement inherited

Name Type Description
off Point optional
color Color optional
Returns:
Type Description
HTMLCanvasElement

showAll ()

showingVariableWatcher (varName)boolean

Name Type Description
varName ?
Returns:
Type Description
boolean

showingWatcher (selector)boolean

Name Type Description
selector ?
Returns:
Type Description
boolean

showingWatcher (selector)boolean

Name Type Description
selector ?
Returns:
Type Description
boolean

siblings ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

silentMoveBy (delta) inherited

Name Type Description
delta number | Point

silentSetExtent (aPoint) inherited

Name Type Description
aPoint Point

silentSetHeight (height) inherited

Name Type Description
height number

silentSetPosition (aPoint) inherited

Name Type Description
aPoint Point

silentSetWidth (width) inherited

Name Type Description
width number

situation ()Object inherited

Returns:
Type Description
Object

slideBackTo (situation, msecs, onBeforeDrop, onComplete) inherited

Name Type Description
situation Object
msecs number optional
onBeforeDrop function optional
onComplete function optional

specimens ()?

Returns:
Type Description
?

stepFrame () inherited

stepGenericConditions (stopAll)

Name Type Description
stopAll ?

stopAllActiveSounds ()

submorphBounds ()Rectangle inherited

Returns:
Type Description
Rectangle

tab (editField) inherited

Name Type Description
editField Morph

thumbnail (extentPoint, excludedSprite)HTMLCanvasElement

Name Type Description
extentPoint Point
excludedSprite SpriteMorph
Returns:
Type Description
HTMLCanvasElement

toggleIsDraggable () inherited

toggleVariableWatcher (varName, isGlobal)WatcherMorph

Name Type Description
varName ?
isGlobal boolean
Returns:
Type Description
WatcherMorph

toggleVisibility () inherited

toggleWatcher (selector, label, color)

Name Type Description
selector ?
label ?
color ?

top ()number inherited

Returns:
Type Description
number

topCenter ()Point inherited

Returns:
Type Description
Point

topLeft ()Point inherited

Returns:
Type Description
Point

topMorphAt (point)Morph inherited

Name Type Description
point Point
Returns:
Type Description
Morph

topMorphSuchThat (predicate)Morph inherited

Name Type Description
predicate function
Returns:
Type Description
Morph

topRight ()Point inherited

Returns:
Type Description
Point

toString ()String inherited

Returns:
Type Description
String
Example
'a Morph 10 [0@0 | 50@40]'

updateReferences (map) inherited

Name Type Description
map Map
Returns:
Type Description
MenuMorph

usesBlockInstance (definition, forRemoval, skipGlobals, skipBlocks)boolean

Name Type Description
definition ?
forRemoval boolean optional
skipGlobals boolean optional
skipBlocks boolean optional
Returns:
Type Description
boolean

visibleBounds ()Rectangle inherited

Returns:
Type Description
Rectangle

wantsDropOf (aMorph)boolean inherited overrides

Name Type Description
aMorph Morph
Returns:
Type Description
boolean

watcherFor (stage, selector)WatcherMorph

Name Type Description
stage StageMorph
selector ?
Returns:
Type Description
WatcherMorph

watchers (leftPos)Array.<?>

Name Type Description
leftPos number optional
Returns:
Type Description
Array.<?>

wearCostume (costume, noShadow)

Name Type Default Description
costume ?
noShadow boolean false optional

width ()number inherited

Returns:
Type Description
number
Returns:
Type Description
WorldMorph