mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Added Max Instances Property to Workspace Options (#2130)
* Added Max Instances property to Blocks * eslint cleanup * eslint cleanup 2 * Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches. * eslint cleanup * Changed checking types to map. Added hasBlockLimits. Fixed Nits. * Added limit_instances test block. eslint fixes. * fixup! Added limit_instances test block. eslint fixes. * Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc * Reverted .gitignore file. * Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,4 +11,4 @@ npm-debug.log
|
||||
tests/compile/main_compressed.js
|
||||
tests/compile/*compiler*.jar
|
||||
local_build/*compiler*.jar
|
||||
local_build/local_blockly_compressed.js
|
||||
local_build/local_blockly_compressed.js
|
||||
Reference in New Issue
Block a user