提交 57341698 编写于 作者: A Abby

3.20200123.0

上级 f8fc7480
{
"editor.tabSize": 2,
"editor.rulers":[80,120]
}
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
Blockly.NewCursor = function() {
Blockly.NewCursor.superClass_.constructor.call(this);
};
Blockly.utils.object.inherits(Blockly.NewCursor, Blockly.BasicCursor);
/**
* Skip all nodes except for fields.
* @param {Blockly.ASTNode} node The AST node to check whether it is valid.
* @return {boolean} True if the node should be visited, false otherwise.
* @override
*/
Blockly.NewCursor.prototype.validNode_ = function(node) {
var isValid = false;
var type = node && node.getType();
if (node) {
var location = node.getLocation();
if (type == Blockly.ASTNode.types.FIELD) {
isValid = true;
}
}
return isValid;
};
\ No newline at end of file
{
"@metadata": {
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
"lastupdated": "2020-01-21 14:09:44.811078",
"lastupdated": "2020-01-23 14:51:40.095209",
"locale": "en",
"messagedocumentation" : "qqq"
},
......
{
"name": "blockly",
"version": "3.20191014.0-develop",
"version": "3.20200123.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "blockly",
"version": "3.20191014.0-develop",
"version": "3.20200123.0",
"description": "Blockly is a library for building visual programming editors.",
"keywords": [
"blockly"
......
/**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Modern theme.
* Same colours as classic, but single coloured border.
*/
'use strict';
goog.provide('Blockly.Themes.Test');
goog.require('Blockly.Theme');
// Temporary holding object.
Blockly.Themes.Test = {};
Blockly.Themes.Test.defaultBlockStyles = {
"colour_blocks": {
"colourPrimary": "#a5745b",
"colourSecondary": "#dbc7bd",
"colourTertiary": "#845d49"
},
"list_blocks": {
"colourPrimary": "#745ba5",
"colourSecondary": "#c7bddb",
"colourTertiary": "#5d4984"
},
"logic_blocks": {
"colourPrimary": "#5b80a5",
"colourSecondary": "#bdccdb",
"colourTertiary": "#496684"
},
"loop_blocks": {
"colourPrimary": "#5ba55b",
"colourSecondary": "#bddbbd",
"colourTertiary": "#498449"
},
"math_blocks": {
"colourPrimary": "#5b67a5",
"colourSecondary": "#bdc2db",
"colourTertiary": "#495284"
},
"procedure_blocks": {
"colourPrimary": "#995ba5",
"colourSecondary": "#d6bddb",
"colourTertiary": "#7a4984"
},
"text_blocks": {
"colourPrimary": "#5ba58c",
"colourSecondary": "#bddbd1",
"colourTertiary": "#498470"
},
"variable_blocks": {
"colourPrimary": "#a55b99",
"colourSecondary": "#dbbdd6",
"colourTertiary": "#84497a"
},
"variable_dynamic_blocks": {
"colourPrimary": "#a55b99",
"colourSecondary": "#dbbdd6",
"colourTertiary": "#84497a"
},
"hat_blocks": {
"colourPrimary": "#a55b99",
"colourSecondary": "#dbbdd6",
"colourTertiary": "#84497a",
"hat": "cap"
}
};
Blockly.Themes.Test.categoryStyles = {
"colour_category": {
"colour": "#a5745b"
},
"list_category": {
"colour": "#745ba5"
},
"logic_category": {
"colour": "#5b80a5"
},
"loop_category": {
"colour": "#5ba55b"
},
"math_category": {
"colour": "#5b67a5"
},
"procedure_category": {
"colour": "#995ba5"
},
"text_category": {
"colour": "#5ba58c"
},
"variable_category": {
"colour": "#a55b99"
},
"variable_dynamic_category": {
"colour": "#a55b99"
}
};
// This style is still being fleshed out and may change.
Blockly.Themes.Test =
new Blockly.Theme(Blockly.Themes.Test.defaultBlockStyles,
Blockly.Themes.Test.categoryStyles);
Executing compile.sh from /Users/aschmiedt/workspace/blockly
Found npm google-closure-compiler:
/Users/aschmiedt/workspace/blockly/node_modules/google-closure-compiler-java/compiler.jar
└── google-closure-compiler@20190618.0.0
Compiling Blockly...
java -jar /Users/aschmiedt/workspace/blockly/node_modules/google-closure-compiler-java/compiler.jar --js='./tests/compile/main.js' --js='./temp_core/**.js' --js='./blocks/**.js' --js='./generators/**.js' --js='./msg/js/**.js' --generate_exports --externs ./externs/svg-externs.js --compilation_level ADVANCED_OPTIMIZATIONS --dependency_mode=STRICT --entry_point=Main --js_output_file ./tests/compile/main_compressed.js
Compiler exit code: 0
Compilation SUCCESS.
#! /usr/bin/env bash
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token zKh47Z86eEmAz-LyXlUIKw" \
-d '{ "quiet": true }' \
https://api.travis-ci.org/job/564198801/debug
/**
* @license
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
goog.provide('Blockly.TestBlocks');
Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
{
"type": "test_style_hex1",
"message0": "Block color: Bright purple %1 %2 %3 %4",
"args0": [
{
"type": "field_input",
"name": "TEXT",
"text": "#992aff"
},
{
"type": "field_dropdown",
"name": "DROPDOWN",
"options": [
[ "option", "ONE" ],
[ "option", "TWO" ]
]
},
{
"type": "field_checkbox",
"name": "NAME",
"checked": true
},
{
"type": "input_value",
"name": "NAME"
}
],
"previousStatement": null,
"nextStatement": null,
"colour": "#992aff"
}
]); // END JSON EXTRACT (Do not delete this comment.)
Blockly.Themes.Classic.setComponentStyle('workspace', '#1e1e1e');
Blockly.Themes.Classic.setComponentStyle('toolbox', '#333');
Blockly.Themes.Classic.setComponentStyle('toolboxText', '#fff');
Blockly.Themes.Classic.setComponentStyle('flyout', '#252526');
Blockly.Themes.Classic.setComponentStyle('flyoutText', '#ccc');
Blockly.Themes.Classic.setComponentStyle('flyoutOpacity', 1);
Blockly.Themes.Classic.setComponentStyle('scrollbar', '#797979');
Blockly.Themes.Classic.setComponentStyle('scrollbarOpacity', 0.4);
Blockly.Themes.Classic.setBlockStyle('colour_blocks',{
"colourPrimary": "#4aa832",
"colourSecondary": "#0000e6",
"colourTertiary": "#0000e6"
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册