team-vibe-labs / blockly-samples

Plugins, codelabs, and examples related to the Blockly library.
http://github.com/google/blockly
Apache License 2.0
0 stars 0 forks source link

SE 464 Project #25

Open MatoPlus opened 1 year ago

MatoPlus commented 1 year ago

NOTE from Chris:

arch

remove as much as possible from blockly itself

core

fields (getting too much, thus samples) lib blocks, renderer (core) - racheal is good to ask block svg that live in workspace svg input/field class 4 core blockly classes

also has machinery for serialization, XML, shifting to json

generating events, replaying events -> undo/redo

abstraction by moving out of core outto samples

plugins are not always "plugins" - related to core fields

enables maint.

layered architecture style, core and additional

changes to core shouldn't make samples

notion of public API via accessible from Blockly core object

blocks

generic blocks, different blocks blocks & block svg, instance of one created data properties with respect to type of block has problem with typescript (eng problem), bags are properties are not classes. breaks existing block definition, high tech debt backwards compact, keep code that is not very nice... - hacks has been added starting point events (can ignore until connections understood) block class workspace inject.ts inputs/field

ref: https://developers.google.com/blockly/guides/create-custom-blocks/define-blocks https://blockly.games/

d-projects commented 1 year ago

More notes about architecture: https://www.notion.so/c95ef92f25364f728c09bddb2e184c55?v=3c68369f07754b34b6ebbe7462a2433d&p=82958945ab6948b89892e8b9755c64a2&pm=s