Questions tagged [blockly]

Blockly is an open-source web-based, graphical programming environment that enables users to write JavaScript, Python, PHP, and Dart programs by moving around blocks. Developers can extend it to integrate with their own apps. It has been translated into over 40 (human) languages.

197 questions
1
vote
1 answer

Only first block works in a series in Blockly

Description I tried making my own custom blocks in google blockly and made them generate C++ code. They work, but only when separated and aren't attached. However, when they are connected together in a series, only the first block generates code and…
1
vote
1 answer

Blockly element prevents scrolling when mouse is hovering over it

As seen in the image. If you hover over the gray area it prevents scrolling. We're using this in an app where our blockly instance is much larger. This is confusing our clients. Is there a way we could make this blockly component behave more like…
Chris Vouga
  • 555
  • 6
  • 8
1
vote
1 answer

REGEX - JavaScript / Blockly

I have two (or more) different export from our system in raw data. I would like to separete it by using regex without using IF foreach case. Bellow are two examples: <14>Apr 29 10:00:00 nimble1-A NMBL: Array:nimblegroup Type:14883 Time:Fri Apr 29…
user17200221
1
vote
1 answer

'value.isInitialized': is not true || Flutter desktop error

I am working on Blockly(Blockly is a client-side library for the programming language JavaScript for creating block-based visual programming languages and editors) for the flutter desktop windows. I am using the webview_windows package to display…
1
vote
1 answer

MUI Dialog does not allow select an option of Blockly component with multiple choices

I'm using a dialog to display a blocky based workspace, but I found that input blocks were not editable. For example, I was not able to type something in a text block neither select an option of component with multiple choices (e.g., logic_compare,…
Humberto
  • 328
  • 3
  • 12
1
vote
1 answer

Blocklys Textblock input fields can not be edited when in a Material-UI Modal

I only found https://groups.google.com/g/blockly/c/SDUosMpAFAk to my problem, but it has no answers that could help me, so I created a Codesandbox to reproduce the behavior. https://codesandbox.io/s/gallant-galois-bqjjb The button in the Sandbox…
Marcel Rösler
  • 181
  • 3
  • 14
1
vote
0 answers

Mutators in blockly

I'm adapting nmap API to Blocks programming using Blockly. I'm trying to create a mutator to write methods like: cassandra.describe_cluster_name(socket,cassinc) and I need the inputs to be dynamic. I can't reuse code from the demo because I can't…
danic
  • 11
  • 1
1
vote
1 answer

Blockly: Update other inputDummy dropdown fields based on selection of a inputDummy dropdown field

I've been trying to make a custom block in the Blockly workspace that changes the options in drop-down fields based on the selection of a previous drop-down field in the same block. About the block:- There are three dropdown fields All are…
1
vote
0 answers

How to make custom programming language in blockly by react

By now I know what the format of the generator is, the only question is I don't know where the 'goog' comes from. Here is the partial code from my 'generator/arduino.js' import * as Blockly from 'blockly/core' // goog.provide('Blockly.Arduino') //…
Harold HH
  • 33
  • 4
1
vote
3 answers

Calling function within a Function

I have a situation where I generate code from within a Blockly component. The resulting code will have a function that I want to call. According to the Blockly "Generating and Running JavaScript" documentation, I should use eval(). When I look up…
bleuthoot
  • 75
  • 1
  • 7
1
vote
1 answer

Implement Blockly widget into Flutter

I'm new into Flutter and I'm trying to add Blockly into Flutter for an app for kids. I want to be able to program some code into a Flutter app with Blockly, practically I'm trying to create a route with inside a Blockly widget in which the kid,…
1
vote
2 answers

How to get statement stack from input_statement in Blockly?

So this is the block in question Screenshot { "type": "local", "message0": "%{BKY_LOCAL_TITLE}", "args0": [ { "type": "input_dummy" }, { "type": "input_statement", "name": "DEFINE", …
Student01
  • 93
  • 7
1
vote
1 answer

Unable to find Blockly Generator function in Angular application

I am trying to build a Blockly Application using Angular. I installed Blockly using npm . I also added the following scripts in angular.json "scripts": [ "node_modules/blockly/blockly_compressed.js", …
Arbaz Sheikh
  • 217
  • 2
  • 10
1
vote
1 answer

how can i get the code of the blocks connected to my custom block by blockly

everyone. Hope you are doing well. I have created my custom block using block factory. The code for block definition is Blockly.Blocks['web'] = { init: function() { this.appendDummyInput() .appendField("When ") .appendField(new…
1
vote
0 answers

Autocomplete in blockly text

I'm just starting into blockly. I have seen that you can ask inputs to the users with a js popup. Is there a way of providing the users with more complex selectors such as an autocomplete textfield? For the moment, calling a jquery and getting the…
Yampeku
  • 583
  • 1
  • 4
  • 21