pxt-core 7.4.10 → 7.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/pxt.js +13 -13
- package/built/pxtblockly.js +3 -3
- package/built/pxtlib.js +13 -13
- package/built/target.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtblockly.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/skillmap/js/{main.d5bb4f6b.chunk.js → main.55881627.chunk.js} +1 -1
- package/package.json +2 -2
- package/webapp/public/blockly/blockly_compressed.js +3 -3
- package/webapp/public/skillmap.html +1 -1
package/built/pxt.js
CHANGED
|
@@ -101667,7 +101667,7 @@ var pxt;
|
|
|
101667
101667
|
'pxt_controls_for': {
|
|
101668
101668
|
name: pxt.Util.lf("a loop that repeats the number of times you say"),
|
|
101669
101669
|
tooltip: pxt.Util.lf("Have the variable '{0}' take on the values from 0 to the end number, counting by 1, and do the specified blocks."),
|
|
101670
|
-
url: 'blocks/loops/for',
|
|
101670
|
+
url: '/blocks/loops/for',
|
|
101671
101671
|
category: 'loops',
|
|
101672
101672
|
block: {
|
|
101673
101673
|
message0: pxt.Util.lf("for %1 from 0 to %2"),
|
|
@@ -101678,7 +101678,7 @@ var pxt;
|
|
|
101678
101678
|
'controls_simple_for': {
|
|
101679
101679
|
name: pxt.Util.lf("a loop that repeats the number of times you say"),
|
|
101680
101680
|
tooltip: pxt.Util.lf("Have the variable '{0}' take on the values from 0 to the end number, counting by 1, and do the specified blocks."),
|
|
101681
|
-
url: 'blocks/loops/for',
|
|
101681
|
+
url: '/blocks/loops/for',
|
|
101682
101682
|
category: 'loops',
|
|
101683
101683
|
block: {
|
|
101684
101684
|
message0: pxt.Util.lf("for %1 from 0 to %2"),
|
|
@@ -101689,7 +101689,7 @@ var pxt;
|
|
|
101689
101689
|
'pxt_controls_for_of': {
|
|
101690
101690
|
name: pxt.Util.lf("a loop that repeats for each value in an array"),
|
|
101691
101691
|
tooltip: pxt.Util.lf("Have the variable '{0}' take the value of each item in the array one by one, and do the specified blocks."),
|
|
101692
|
-
url: 'blocks/loops/for-of',
|
|
101692
|
+
url: '/blocks/loops/for-of',
|
|
101693
101693
|
category: 'loops',
|
|
101694
101694
|
block: {
|
|
101695
101695
|
message0: pxt.Util.lf("for element %1 of %2"),
|
|
@@ -101700,7 +101700,7 @@ var pxt;
|
|
|
101700
101700
|
'controls_for_of': {
|
|
101701
101701
|
name: pxt.Util.lf("a loop that repeats for each value in an array"),
|
|
101702
101702
|
tooltip: pxt.Util.lf("Have the variable '{0}' take the value of each item in the array one by one, and do the specified blocks."),
|
|
101703
|
-
url: 'blocks/loops/for-of',
|
|
101703
|
+
url: '/blocks/loops/for-of',
|
|
101704
101704
|
category: 'loops',
|
|
101705
101705
|
block: {
|
|
101706
101706
|
message0: pxt.Util.lf("for element %1 of %2"),
|
|
@@ -101985,7 +101985,7 @@ var pxt;
|
|
|
101985
101985
|
'text': {
|
|
101986
101986
|
name: pxt.Util.lf("a piece of text"),
|
|
101987
101987
|
tooltip: pxt.Util.lf("A letter, word, or line of text."),
|
|
101988
|
-
url: 'types/string',
|
|
101988
|
+
url: '/types/string',
|
|
101989
101989
|
category: 'text',
|
|
101990
101990
|
block: {
|
|
101991
101991
|
search: pxt.Util.lf("a piece of text") // Only used for search; this string is not surfaced in the block's text
|
|
@@ -101994,7 +101994,7 @@ var pxt;
|
|
|
101994
101994
|
'text_length': {
|
|
101995
101995
|
name: pxt.Util.lf("number of characters in the string"),
|
|
101996
101996
|
tooltip: pxt.Util.lf("Returns the number of letters (including spaces) in the provided text."),
|
|
101997
|
-
url: 'reference/text/length',
|
|
101997
|
+
url: '/reference/text/length',
|
|
101998
101998
|
category: 'text',
|
|
101999
101999
|
block: {
|
|
102000
102000
|
TEXT_LENGTH_TITLE: pxt.Util.lf("length of %1")
|
|
@@ -102003,7 +102003,7 @@ var pxt;
|
|
|
102003
102003
|
'text_join': {
|
|
102004
102004
|
name: pxt.Util.lf("join items to create text"),
|
|
102005
102005
|
tooltip: pxt.Util.lf("Create a piece of text by joining together any number of items."),
|
|
102006
|
-
url: 'reference/text/join',
|
|
102006
|
+
url: '/reference/text/join',
|
|
102007
102007
|
category: 'text',
|
|
102008
102008
|
block: {
|
|
102009
102009
|
TEXT_JOIN_TITLE_CREATEWITH: pxt.Util.lf("join")
|
|
@@ -102012,7 +102012,7 @@ var pxt;
|
|
|
102012
102012
|
'procedures_defnoreturn': {
|
|
102013
102013
|
name: pxt.Util.lf("define the function"),
|
|
102014
102014
|
tooltip: pxt.Util.lf("Create a function."),
|
|
102015
|
-
url: 'types/function/define',
|
|
102015
|
+
url: '/types/function/define',
|
|
102016
102016
|
category: 'functions',
|
|
102017
102017
|
block: {
|
|
102018
102018
|
PROCEDURES_DEFNORETURN_TITLE: pxt.Util.lf("function"),
|
|
@@ -102022,7 +102022,7 @@ var pxt;
|
|
|
102022
102022
|
'procedures_callnoreturn': {
|
|
102023
102023
|
name: pxt.Util.lf("call the function"),
|
|
102024
102024
|
tooltip: pxt.Util.lf("Call the user-defined function."),
|
|
102025
|
-
url: 'types/function/call',
|
|
102025
|
+
url: '/types/function/call',
|
|
102026
102026
|
category: 'functions',
|
|
102027
102027
|
block: {
|
|
102028
102028
|
PROCEDURES_CALLNORETURN_TITLE: pxt.Util.lf("call function")
|
|
@@ -102031,7 +102031,7 @@ var pxt;
|
|
|
102031
102031
|
'function_return': {
|
|
102032
102032
|
name: pxt.Util.lf("return a value from within a function"),
|
|
102033
102033
|
tooltip: pxt.Util.lf("Return a value from within a user-defined function."),
|
|
102034
|
-
url: 'types/function/return',
|
|
102034
|
+
url: '/types/function/return',
|
|
102035
102035
|
category: 'functions',
|
|
102036
102036
|
block: {
|
|
102037
102037
|
message_with_value: pxt.Util.lf("return %1"),
|
|
@@ -102041,7 +102041,7 @@ var pxt;
|
|
|
102041
102041
|
'function_definition': {
|
|
102042
102042
|
name: pxt.Util.lf("define the function"),
|
|
102043
102043
|
tooltip: pxt.Util.lf("Create a function."),
|
|
102044
|
-
url: 'types/function/define',
|
|
102044
|
+
url: '/types/function/define',
|
|
102045
102045
|
category: 'functions',
|
|
102046
102046
|
block: {
|
|
102047
102047
|
FUNCTIONS_EDIT_OPTION: pxt.Util.lf("Edit Function")
|
|
@@ -102050,7 +102050,7 @@ var pxt;
|
|
|
102050
102050
|
'function_call': {
|
|
102051
102051
|
name: pxt.Util.lf("call the function"),
|
|
102052
102052
|
tooltip: pxt.Util.lf("Call the user-defined function."),
|
|
102053
|
-
url: 'types/function/call',
|
|
102053
|
+
url: '/types/function/call',
|
|
102054
102054
|
category: 'functions',
|
|
102055
102055
|
block: {
|
|
102056
102056
|
FUNCTIONS_CALL_TITLE: pxt.Util.lf("call"),
|
|
@@ -102060,7 +102060,7 @@ var pxt;
|
|
|
102060
102060
|
'function_call_output': {
|
|
102061
102061
|
name: pxt.Util.lf("call the function with a return value"),
|
|
102062
102062
|
tooltip: pxt.Util.lf("Call the user-defined function with a return value."),
|
|
102063
|
-
url: 'types/function/call',
|
|
102063
|
+
url: '/types/function/call',
|
|
102064
102064
|
category: 'functions',
|
|
102065
102065
|
block: {}
|
|
102066
102066
|
}
|
package/built/pxtblockly.js
CHANGED
|
@@ -1656,7 +1656,7 @@ return Blockly.Functions.namesInUse(b,null,a)[c]?(Blockly.alert(Blockly.Msg.VARI
|
|
|
1656
1656
|
Blockly.Functions.mutateCallersAndDefinition=function(a,b,c){var d=Blockly.Functions.getDefinition(a,b);d?(a=Blockly.Functions.getCallers(a,d.workspace),a.push(d),Blockly.Events.setGroup(!0),a.forEach(function(a){var b=a.mutationToDom(),e=b&&Blockly.Xml.domToText(b);a.domToMutation(c);var h=a.mutationToDom(),k=h&&Blockly.Xml.domToText(h);if(e!=k)if(Blockly.Events.fire(new Blockly.Events.BlockChange(a,"mutation",null,e,k)),a.id==d.id){var l=Blockly.Functions.getArgMap(b),m=Blockly.Functions.getArgMap(h,
|
|
1657
1657
|
!0);d.getDescendants().forEach(function(a){if(Blockly.pxtBlocklyUtils.isFunctionArgumentReporter(a)){var b=a.getFieldValue("VALUE"),c=l[b];m[c]?m[c]!==b&&a.setFieldValue(m[c],"VALUE"):a.dispose()}})}else setTimeout(function(){a.bumpNeighbours()},Blockly.BUMP_DELAY)}),Blockly.Events.setGroup(!1)):console.warn("Attempted to change function "+a+", but no definition block was found on the workspace")};
|
|
1658
1658
|
Blockly.Functions.createFlyout=function(a,b){var c=new Blockly.Options({scrollbars:!0,disabledPatternId:a.options.disabledPatternId,parentWorkspace:a,rtl:a.RTL,oneBasedIndex:a.options.oneBasedIndex,horizontalLayout:a.horizontalLayout,toolboxPosition:a.options.toolboxPosition,zoomOptions:a.options.zoomOptions,renderer:a.options.renderer,rendererOverrides:a.options.rendererOverrides,newFunctions:a.options.newFunctions,move:{scrollbars:!0}});c=c.horizontalLayout?new Blockly.HorizontalFlyout(c):new Blockly.VerticalFlyout(c);
|
|
1659
|
-
var d=c.createDom("svg");goog.dom.insertSiblingAfter(d,b);c.init(a);return c};Blockly.VERSION="4.0.
|
|
1659
|
+
var d=c.createDom("svg");goog.dom.insertSiblingAfter(d,b);c.init(a);return c};Blockly.VERSION="4.0.6";Blockly.mainWorkspace=null;Blockly.selected=null;Blockly.draggingConnections=[];Blockly.clipboardXml_=null;Blockly.clipboardSource_=null;Blockly.clipboardTypeCounts_=null;Blockly.cache3dSupported_=null;Blockly.parentContainer=null;Blockly.svgSize=function(a){Blockly.utils.deprecation.warn("Blockly.svgSize","March 2021","March 2022","workspace.getCachedParentSvgSize");return new Blockly.utils.Size(a.cachedWidth_,a.cachedHeight_)};Blockly.resizeSvgContents=function(a){a.resizeContents()};
|
|
1660
1660
|
Blockly.svgResize=function(a){for(;a.options.parentWorkspace;)a=a.options.parentWorkspace;var b=a.getParentSvg(),c=a.getCachedParentSvgSize(),d=b.parentNode;if(d){var e=d.offsetWidth;d=d.offsetHeight;c.width!=e&&(b.setAttribute("width",e+"px"),a.setCachedParentSvgSize(e,null));c.height!=d&&(b.setAttribute("height",d+"px"),a.setCachedParentSvgSize(null,d));a.resize()}};
|
|
1661
1661
|
Blockly.onKeyDown=function(a){var b=Blockly.mainWorkspace;if(b&&!(Blockly.utils.isTargetInput(a)||b.rendered&&!b.isVisible()))Blockly.ShortcutRegistry.registry.onKeyDown(b,a)};Blockly.deleteBlock=function(a){a.workspace.isFlyout||(Blockly.Events.setGroup(!0),Blockly.hideChaff(),a.outputConnection?a.dispose(!1,!0):a.dispose(!0,!0),Blockly.Events.setGroup(!1))};Blockly.copy=function(a){if(a=a.toCopyData())Blockly.clipboardXml_=a.xml,Blockly.clipboardSource_=a.source,Blockly.clipboardTypeCounts_=a.typeCounts};
|
|
1662
1662
|
Blockly.paste=function(){if(!Blockly.clipboardXml_)return!1;var a=Blockly.clipboardSource_;a.isFlyout&&(a=a.targetWorkspace);return Blockly.clipboardTypeCounts_&&a.isCapacityAvailable(Blockly.clipboardTypeCounts_)?(Blockly.Events.setGroup(!0),a.paste(Blockly.clipboardXml_),Blockly.Events.setGroup(!1),!0):!1};
|
|
@@ -2291,7 +2291,7 @@ Blockly.FieldColourSlider.prototype.setGradient_=function(a,b){b=this.createColo
|
|
|
2291
2291
|
Blockly.FieldColourSlider.prototype.updateDom_=function(){this.hueSlider_&&(this.setGradient_(this.hueSlider_.getElement(),"hue"),this.setGradient_(this.saturationSlider_.getElement(),"saturation"),this.setGradient_(this.brightnessSlider_.getElement(),"brightness"),this.hueReadout_.textContent=Math.floor(100*this.hue_/360).toFixed(0),this.saturationReadout_.textContent=Math.floor(100*this.saturation_).toFixed(0),this.brightnessReadout_.textContent=Math.floor(100*this.brightness_/255).toFixed(0))};
|
|
2292
2292
|
Blockly.FieldColourSlider.prototype.updateSliderHandles_=function(){this.hueSlider_&&(this.hueSlider_.setValue(this.hue_),this.saturationSlider_.setValue(this.saturation_),this.brightnessSlider_.setValue(this.brightness_))};Blockly.FieldColourSlider.prototype.getText=function(){var a=this.colour_,b=a.match(/^#(.)\1(.)\2(.)\3$/);b&&(a="#"+b[1]+b[2]+b[3]);return a};
|
|
2293
2293
|
Blockly.FieldColourSlider.prototype.createLabelDom_=function(a){var b=document.createElement("div");b.setAttribute("class","blocklyColourPickerLabel");var c=document.createElement("span");c.setAttribute("class","blocklyColourPickerReadout");var d=document.createElement("span");d.setAttribute("class","blocklyColourPickerLabelText");d.textContent=a;b.appendChild(d);b.appendChild(c);return[b,c]};
|
|
2294
|
-
Blockly.FieldColourSlider.prototype.sliderCallbackFactory_=function(a){var b=this;return function(c){c=c.target.getValue();var d=Blockly.utils.colour.hexToHsv(b.getValue());switch(a){case "hue":d[0]=b.hue_=c;break;case "saturation":d[1]=b.saturation_=c;break;case "brightness":d[2]=b.brightness_=c}c=Blockly.utils.colour.hsvToHex(d[0],d[1],d[2]);
|
|
2294
|
+
Blockly.FieldColourSlider.prototype.sliderCallbackFactory_=function(a){var b=this;return function(c){c=c.target.getValue();var d=Blockly.utils.colour.hexToHsv(b.getValue());switch(a){case "hue":d[0]=b.hue_=c;break;case "saturation":d[1]=b.saturation_=c;break;case "brightness":d[2]=b.brightness_=c}c=Blockly.utils.colour.hsvToHex(d[0],d[1],d[2]);null!==c&&b.setValue(c,!0)}};
|
|
2295
2295
|
Blockly.FieldColourSlider.prototype.showEditor_=function(){Blockly.DropDownDiv.hideWithoutAnimation();Blockly.DropDownDiv.clearContent();var a=Blockly.DropDownDiv.getContentDiv(),b=Blockly.utils.colour.hexToHsv(this.getValue());this.hue_=b[0];this.saturation_=b[1];this.brightness_=b[2];b=this.createLabelDom_("Hue");a.appendChild(b[0]);this.hueReadout_=b[1];this.hueSlider_=new goog.ui.Slider;this.hueSlider_.setUnitIncrement(5);this.hueSlider_.setMinimum(0);this.hueSlider_.setMaximum(360);this.hueSlider_.render(a);
|
|
2296
2296
|
b=this.createLabelDom_("Saturation");a.appendChild(b[0]);this.saturationReadout_=b[1];this.saturationSlider_=new goog.ui.Slider;this.saturationSlider_.setUnitIncrement(.01);this.saturationSlider_.setStep(.001);this.saturationSlider_.setMinimum(0);this.saturationSlider_.setMaximum(1);this.saturationSlider_.render(a);b=this.createLabelDom_("Brightness");a.appendChild(b[0]);this.brightnessReadout_=b[1];this.brightnessSlider_=new goog.ui.Slider;this.brightnessSlider_.setUnitIncrement(2);this.brightnessSlider_.setMinimum(0);
|
|
2297
2297
|
this.brightnessSlider_.setMaximum(255);this.brightnessSlider_.render(a);Blockly.FieldColourSlider.hueChangeEventKey_=goog.events.listen(this.hueSlider_,goog.ui.Component.EventType.CHANGE,this.sliderCallbackFactory_("hue"));Blockly.FieldColourSlider.saturationChangeEventKey_=goog.events.listen(this.saturationSlider_,goog.ui.Component.EventType.CHANGE,this.sliderCallbackFactory_("saturation"));Blockly.FieldColourSlider.brightnessChangeEventKey_=goog.events.listen(this.brightnessSlider_,goog.ui.Component.EventType.CHANGE,
|
|
@@ -2458,7 +2458,7 @@ Blockly.FieldSlider.prototype.init=function(){Blockly.FieldTextInput.superClass_
|
|
|
2458
2458
|
Blockly.FieldSlider.prototype.showEditor_=function(a){Blockly.FieldSlider.superClass_.showEditor_.call(this,a);Infinity!=this.max_&&-Infinity!=this.min_&&(this.showSlider_(),this.setValue(this.getValue()))};
|
|
2459
2459
|
Blockly.FieldSlider.prototype.showSlider_=function(){Blockly.DropDownDiv.hideWithoutAnimation();Blockly.DropDownDiv.clearContent();var a=Blockly.DropDownDiv.getContentDiv();a.setAttribute("role","menu");a.setAttribute("aria-haspopup","true");this.addSlider_(a);Blockly.DropDownDiv.setColour("#ffffff","#dddddd");Blockly.DropDownDiv.showPositionedByBlock(this,this.sourceBlock_);this.slider_&&this.slider_.setVisible(!0)};
|
|
2460
2460
|
Blockly.FieldSlider.prototype.addSlider_=function(a){if(this.labelText_){var b=this.createLabelDom_(this.labelText_);a.appendChild(b[0]);this.readout_=b[1]}this.slider_=new goog.ui.Slider;this.slider_.setMinimum(this.min_);this.slider_.setMaximum(this.max_);this.slider_.setMoveToPointEnabled(!this.step_);this.step_&&this.slider_.setBlockIncrement(this.step_);this.slider_.setRightToLeft(this.sourceBlock_.RTL);b=parseFloat(this.getValue());b=isNaN(b)?0:b;this.slider_.setValue(b);this.slider_.render(a);
|
|
2461
|
-
var c=this;Blockly.FieldSlider.changeEventKey_=goog.events.listen(this.slider_,goog.ui.Component.EventType.CHANGE,function(a){a=a.target.getValue()||0;
|
|
2461
|
+
var c=this;Blockly.FieldSlider.changeEventKey_=goog.events.listen(this.slider_,goog.ui.Component.EventType.CHANGE,function(a){a=a.target.getValue()||0;if(null!==a){c.setValue(a);var b=c.htmlInput_;b&&(b.value=a,b.focus())}});Blockly.FieldSlider.focusEventKey_=goog.events.listen(this.slider_.getElement(),goog.ui.Component.EventType.FOCUS,function(){c.htmlInput_.focus()})};
|
|
2462
2462
|
Blockly.FieldSlider.prototype.createLabelDom_=function(a){var b=document.createElement("div");b.setAttribute("class","blocklyFieldSliderLabel");var c=document.createElement("span");c.setAttribute("class","blocklyFieldSliderReadout");var d=document.createElement("span");d.setAttribute("class","blocklyFieldSliderLabelText");d.innerHTML=a;b.appendChild(d);b.appendChild(c);return[b,c]};
|
|
2463
2463
|
Blockly.FieldSlider.prototype.setValue=function(a){Blockly.FieldSlider.superClass_.setValue.call(this,a);this.updateSliderHandles_();this.updateDom_()};Blockly.FieldSlider.prototype.updateDom_=function(){this.slider_&&this.readout_&&(this.setBackground_(this.slider_.getElement()),this.setReadout_(this.readout_,this.getValue()))};
|
|
2464
2464
|
Blockly.FieldSlider.prototype.setBackground_=function(a){this.sliderColor_?goog.style.setStyle(a,"background",this.sliderColor_):this.sourceBlock_.isShadow()&&this.sourceBlock_.parentBlock_&&goog.style.setStyle(a,"background",this.sourceBlock_.parentBlock_.getColourTertiary())};Blockly.FieldSlider.prototype.setReadout_=function(a,b){a.innerHTML=b};Blockly.FieldSlider.prototype.updateSliderHandles_=function(){this.slider_&&this.slider_.setValue(parseFloat(this.getValue()))};
|
package/built/pxtlib.js
CHANGED
|
@@ -3981,7 +3981,7 @@ var pxt;
|
|
|
3981
3981
|
'pxt_controls_for': {
|
|
3982
3982
|
name: pxt.Util.lf("a loop that repeats the number of times you say"),
|
|
3983
3983
|
tooltip: pxt.Util.lf("Have the variable '{0}' take on the values from 0 to the end number, counting by 1, and do the specified blocks."),
|
|
3984
|
-
url: 'blocks/loops/for',
|
|
3984
|
+
url: '/blocks/loops/for',
|
|
3985
3985
|
category: 'loops',
|
|
3986
3986
|
block: {
|
|
3987
3987
|
message0: pxt.Util.lf("for %1 from 0 to %2"),
|
|
@@ -3992,7 +3992,7 @@ var pxt;
|
|
|
3992
3992
|
'controls_simple_for': {
|
|
3993
3993
|
name: pxt.Util.lf("a loop that repeats the number of times you say"),
|
|
3994
3994
|
tooltip: pxt.Util.lf("Have the variable '{0}' take on the values from 0 to the end number, counting by 1, and do the specified blocks."),
|
|
3995
|
-
url: 'blocks/loops/for',
|
|
3995
|
+
url: '/blocks/loops/for',
|
|
3996
3996
|
category: 'loops',
|
|
3997
3997
|
block: {
|
|
3998
3998
|
message0: pxt.Util.lf("for %1 from 0 to %2"),
|
|
@@ -4003,7 +4003,7 @@ var pxt;
|
|
|
4003
4003
|
'pxt_controls_for_of': {
|
|
4004
4004
|
name: pxt.Util.lf("a loop that repeats for each value in an array"),
|
|
4005
4005
|
tooltip: pxt.Util.lf("Have the variable '{0}' take the value of each item in the array one by one, and do the specified blocks."),
|
|
4006
|
-
url: 'blocks/loops/for-of',
|
|
4006
|
+
url: '/blocks/loops/for-of',
|
|
4007
4007
|
category: 'loops',
|
|
4008
4008
|
block: {
|
|
4009
4009
|
message0: pxt.Util.lf("for element %1 of %2"),
|
|
@@ -4014,7 +4014,7 @@ var pxt;
|
|
|
4014
4014
|
'controls_for_of': {
|
|
4015
4015
|
name: pxt.Util.lf("a loop that repeats for each value in an array"),
|
|
4016
4016
|
tooltip: pxt.Util.lf("Have the variable '{0}' take the value of each item in the array one by one, and do the specified blocks."),
|
|
4017
|
-
url: 'blocks/loops/for-of',
|
|
4017
|
+
url: '/blocks/loops/for-of',
|
|
4018
4018
|
category: 'loops',
|
|
4019
4019
|
block: {
|
|
4020
4020
|
message0: pxt.Util.lf("for element %1 of %2"),
|
|
@@ -4299,7 +4299,7 @@ var pxt;
|
|
|
4299
4299
|
'text': {
|
|
4300
4300
|
name: pxt.Util.lf("a piece of text"),
|
|
4301
4301
|
tooltip: pxt.Util.lf("A letter, word, or line of text."),
|
|
4302
|
-
url: 'types/string',
|
|
4302
|
+
url: '/types/string',
|
|
4303
4303
|
category: 'text',
|
|
4304
4304
|
block: {
|
|
4305
4305
|
search: pxt.Util.lf("a piece of text") // Only used for search; this string is not surfaced in the block's text
|
|
@@ -4308,7 +4308,7 @@ var pxt;
|
|
|
4308
4308
|
'text_length': {
|
|
4309
4309
|
name: pxt.Util.lf("number of characters in the string"),
|
|
4310
4310
|
tooltip: pxt.Util.lf("Returns the number of letters (including spaces) in the provided text."),
|
|
4311
|
-
url: 'reference/text/length',
|
|
4311
|
+
url: '/reference/text/length',
|
|
4312
4312
|
category: 'text',
|
|
4313
4313
|
block: {
|
|
4314
4314
|
TEXT_LENGTH_TITLE: pxt.Util.lf("length of %1")
|
|
@@ -4317,7 +4317,7 @@ var pxt;
|
|
|
4317
4317
|
'text_join': {
|
|
4318
4318
|
name: pxt.Util.lf("join items to create text"),
|
|
4319
4319
|
tooltip: pxt.Util.lf("Create a piece of text by joining together any number of items."),
|
|
4320
|
-
url: 'reference/text/join',
|
|
4320
|
+
url: '/reference/text/join',
|
|
4321
4321
|
category: 'text',
|
|
4322
4322
|
block: {
|
|
4323
4323
|
TEXT_JOIN_TITLE_CREATEWITH: pxt.Util.lf("join")
|
|
@@ -4326,7 +4326,7 @@ var pxt;
|
|
|
4326
4326
|
'procedures_defnoreturn': {
|
|
4327
4327
|
name: pxt.Util.lf("define the function"),
|
|
4328
4328
|
tooltip: pxt.Util.lf("Create a function."),
|
|
4329
|
-
url: 'types/function/define',
|
|
4329
|
+
url: '/types/function/define',
|
|
4330
4330
|
category: 'functions',
|
|
4331
4331
|
block: {
|
|
4332
4332
|
PROCEDURES_DEFNORETURN_TITLE: pxt.Util.lf("function"),
|
|
@@ -4336,7 +4336,7 @@ var pxt;
|
|
|
4336
4336
|
'procedures_callnoreturn': {
|
|
4337
4337
|
name: pxt.Util.lf("call the function"),
|
|
4338
4338
|
tooltip: pxt.Util.lf("Call the user-defined function."),
|
|
4339
|
-
url: 'types/function/call',
|
|
4339
|
+
url: '/types/function/call',
|
|
4340
4340
|
category: 'functions',
|
|
4341
4341
|
block: {
|
|
4342
4342
|
PROCEDURES_CALLNORETURN_TITLE: pxt.Util.lf("call function")
|
|
@@ -4345,7 +4345,7 @@ var pxt;
|
|
|
4345
4345
|
'function_return': {
|
|
4346
4346
|
name: pxt.Util.lf("return a value from within a function"),
|
|
4347
4347
|
tooltip: pxt.Util.lf("Return a value from within a user-defined function."),
|
|
4348
|
-
url: 'types/function/return',
|
|
4348
|
+
url: '/types/function/return',
|
|
4349
4349
|
category: 'functions',
|
|
4350
4350
|
block: {
|
|
4351
4351
|
message_with_value: pxt.Util.lf("return %1"),
|
|
@@ -4355,7 +4355,7 @@ var pxt;
|
|
|
4355
4355
|
'function_definition': {
|
|
4356
4356
|
name: pxt.Util.lf("define the function"),
|
|
4357
4357
|
tooltip: pxt.Util.lf("Create a function."),
|
|
4358
|
-
url: 'types/function/define',
|
|
4358
|
+
url: '/types/function/define',
|
|
4359
4359
|
category: 'functions',
|
|
4360
4360
|
block: {
|
|
4361
4361
|
FUNCTIONS_EDIT_OPTION: pxt.Util.lf("Edit Function")
|
|
@@ -4364,7 +4364,7 @@ var pxt;
|
|
|
4364
4364
|
'function_call': {
|
|
4365
4365
|
name: pxt.Util.lf("call the function"),
|
|
4366
4366
|
tooltip: pxt.Util.lf("Call the user-defined function."),
|
|
4367
|
-
url: 'types/function/call',
|
|
4367
|
+
url: '/types/function/call',
|
|
4368
4368
|
category: 'functions',
|
|
4369
4369
|
block: {
|
|
4370
4370
|
FUNCTIONS_CALL_TITLE: pxt.Util.lf("call"),
|
|
@@ -4374,7 +4374,7 @@ var pxt;
|
|
|
4374
4374
|
'function_call_output': {
|
|
4375
4375
|
name: pxt.Util.lf("call the function with a return value"),
|
|
4376
4376
|
tooltip: pxt.Util.lf("Call the user-defined function with a return value."),
|
|
4377
|
-
url: 'types/function/call',
|
|
4377
|
+
url: '/types/function/call',
|
|
4378
4378
|
category: 'functions',
|
|
4379
4379
|
block: {}
|
|
4380
4380
|
}
|