Wykres commitów

73 Commity (c80e059807859c99c77dbaa96dc91170a562fdee)

Autor SHA1 Wiadomość Data
Jens Mönig df0269f5cc support for viewing 2D lists as tables 2016-02-24 11:35:18 +01:00
Jens Mönig 291555d9e1 fixed a zebra coloring glitch in the block editor 2016-01-18 17:39:44 +01:00
Jens Mönig 8001845706 preserve custom block instances’ block var values when editing their definition 2016-01-17 23:44:30 +01:00
Jens Mönig d443d662c0 fix it again, Sam ;-) 2016-01-11 20:25:42 +01:00
Jens Mönig 29b7a31f84 fixed #1107 2016-01-11 14:05:37 +01:00
Jens Mönig 30ca6e8121 fixed #1098 2016-01-08 14:24:45 +01:00
Michael Ball e27a7f245e Resolve merge with 4.0.4 2015-12-15 03:46:27 -08:00
Jens Mönig f24b65f673 towards v4.0.4 - under construction -
* Show result bubble when the user clicks on a command script that uses
REPORT (You can now click on REPORT and it actually does something)
* New generic “When” hat block, enhances red stop button behavior
* New block (instance) variables feature (experimental)
* evaluator performance optimizations
* Morphic grab-threshold fix for scroll frames
* fixed several block rendering glitches
* List category LENGTH reporter now also works on text
* Changed “any” to “random” (in English only)
* new FILL primitive in the Pen category
* switched to animation frame scheduling, please use TURBO for music
* Updated German translation
2015-12-15 10:14:56 +01:00
Michael Ball 9490b65270 Cleanup filenames and references to `ide` 2015-12-01 01:45:58 -08:00
Michael Ball 396be20b18 Some code cleanup and variable name fix 2015-11-17 02:42:17 -08:00
Michael Ball e1e73d8feb Fix syntax error, and accessing IDE bug exporting blocks 2015-11-16 19:41:20 -08:00
Michael Ball fa1a24a4bd Fix syntax error, and accessing IDE bug exporting blocks 2015-11-16 18:41:54 -08:00
Michael Ball dafb6146f6 Fix merge conflicts, and cleanup saveFileAs code 2015-11-16 18:12:33 -08:00
Michael Ball fa6f168bc0 Merge in 4.0.3, resolve conflicts with scriptpics 2015-11-16 17:53:17 -08:00
Jens Mönig f5ffcea231 fix two zebra-coloring related glitches
… which I’ve introduced in trying to avoid “redundant” redraws earlier
2015-11-16 18:02:35 +01:00
Jens Mönig 6061403a89 Prepare for v4.0.3
* fixed occasional horizontal rendering artifacts in block “holes”
(C-shaped slots and Ring holes)
* improved user editing of input slots and fixed cursor behavior (note:
the text cursor inside input slots also blinks again, as it should have)
* always export comments attached to prototype hat blocks in the block
editor along with script pic
* when first opening a block editor on a custom block definition make
it big enough to show everything (as much as fits on the screen)
* remember block editor position and dimensions for each edited custom
block definition when acknowledging (pressing OK or APPLY) for the
session
* speed up stacking of commands and loading of projects by suppressing
redundant block redraws
* introducing a “grab threshold” preference to suppress accidental
grabbing through micro-movements of the hand. This addresses the
“cannot-click-on-drop-downs-in-Chrome-under-Windows” set of bug
reports, and also the issues that arise out of accidentally dragging
off a copy of a parameter blob when trying to just click on it to
rename it
* new hidden (shift-click) option to adjust the grab threshold in the
settings menu for the current session
* expand list watchers inside result bubbles and speech/thought
balloons to show everything (as much of the list’s first level as fist
into either the scripting area for result bubbles or the stage for
speech balloons - note resizing the stage affects the size of the list
watchers inside speech balloons, i.e. making the stage bigger increases
the number of visible elements even while the balloon is showing)
* fixed a bug that make an occasional gray rectangle appear at the
mouse pointer
* added a way to invoke blocks synchronously in JavaScript - under
construction (possibly to be used for generic “When” hat blocks and
user-customizable drop-downs)
* added methods to cache morphs’ fullImage and fullBounds while dragging
* Reporters (also nested reporters) and sprite icons (in the corral)
are now semi-transparent when being dragged, so you can see possible
drop target halos /through/ them
* in “prefer empty slot drops” mode (default) it is now much harder to
drop reporters onto non-static C-slots inside custom blocks (e.g. in
FOR loops) and onto variadic input arrowheads (to replace the whole
input with an input list)
* ScriptsMorphs are now noticing transparent clicks (addresses #997)
* %interaction slots are now static, fixed #982 (it is no longer
possible to drop reporters into the input slot of a “When I am…” hat
block (never was intended that it should be possible)
* fixed ctrl-f for the block editor in all situations (thanks, Brian,
for the bug report)
2015-11-16 12:18:40 +01:00
Michael Ball 212aa7bdda implement a save*As function for all remaining data types 2015-11-12 04:31:27 -08:00
Michael Ball e47dcb0ebf Improve saveAs refactoring (WIP across all Snap!)
- added TODO comments to all functions that need updating (byob, blocks)
- separate out the code into 3 new functions for readability:
  - `saveFileAs` is a generic method
  - `saveCanvasAs` and `saveXMLAs` are wrappers which aid in exporting images and all XML files which together cover almost all export cases.
  - In other cases, you can call `saveFileAs` directly with some additional input.
- `saveCanvasAs` in particular uses a new `Canvas.toBlob()` option when it is available (FF and IE currently) that should greatly reduce memory.
(Chrome and Safari both have open bugs and may at somepoint implement this function.)
- I have added in code to detect bugs in chrome, including when a new window is being opened. If a new window cannot be opened, the a (to be written) warning message will appear.
- a few functions (namely those in morphic.js) have not touched. However, these are functions which should only occur in a small subset of cases and are behind hidden features.
2015-11-09 15:14:23 -08:00
Jens Mönig 72bf4cfb8c New feature: Remove Unused Global Blocks
* BYOB, Objects, GUI: New “Remove Unused Global Blocks” Feature
* GUI, Lists: “Export Project Summary” improvements:
  - show variable values as watcher pics
  - expand list watcher pics to show their complete contents (1. level)
  - url for shared projects
  - table of contents
  - basic support for sprite nesting and inheritance
  - make the summary “browsable” instead of editable
  - outline around sprite / stage snapshots
  - experimental hidden (shift-click) “drop-shadows” option
* GUI: Rearrange project menu, only show global blocks-related ops if
there are any
* GUI: Remove URL location.hash information when loading a new project
* Store: Fix deserialization support for projects using inheritance
* German translation update
2015-10-07 13:38:19 +02:00
Jens Mönig 2172084dae New feature: Export Project Summary
* opens a new browser tab on an editable HTML document containing an
overview of the current project which can be further processed (saved,
edited, printed, turned into a PDF) to create a project report.

* now, when you export script pics attached comments get included.

* also new: Support to detect and react to “any” keystroke (hat and
sensing blocks)
2015-10-02 12:39:41 +02:00
Jens Mönig 4e0fe2458c eep BlockEditors open when <enter> or <esc> keys are pressed 2015-07-28 12:22:46 +02:00
Jens Mönig e8172e83dd update history 2015-07-27 01:12:12 +02:00
Jens Mönig 76d9d6bd49 keyboard editing support
activate:
      - shift + click on a scripting pane's background
      - shift + click on any block
      - shift + enter in the IDE's edit mode

    stop editing:
      - left-click on scripting pane's background
      - esc

    navigate among scripts:
      - tab: next script
      - backtab (shift + tab): last script

    start editing a new script:
      - shift + enter

    navigate among commands within a script:
      - down arrow: next command
      - up arrow: last command

    navigate among all elements within a script:
      - right arrow: next element (block or input)
      - left arrow: last element

    move the currently edited script (stack of blocks):
      - shift + arrow keys (left, right, up, down)

    editing scripts:

      - backspace:
        * delete currently focused reporter
        * delete command above current insertion mark (blinking)
        * collapse currently focused variadic input by one element

      - enter:
        * edit currently focused input slot
        * expand currently focused variadic input by one element

      - space:
        * activate currently focused input slot's pull-down menu, if any
        * show a menu of reachable variables for the focused input or
reporter

      - any other key:
        start searching for insertable matching blocks

      - in menus triggered by this feature:
        * navigate with up / down arrow keys
        * trigger selection with enter
        * cancel menu with esc

      - in the search bar triggered b this feature:
        * keep typing / deleting to narrow and update matches
        * navigate among shown matches with up / down arrow keys
        * insert selected match at the focus' position with enter
        * cancel searching and inserting with esc

    running the currently edited script:
        * shift+ctrl+enter simulates clicking the edited script with
the mouse
2015-07-26 23:37:10 +02:00
jmoenig 4c21c9f187 Revert to "new" for object creation
and prepare for new release
2015-06-25 15:11:51 +02:00
Nathan Dinsmore 87c2503571 Use Object.create(…) instead of new …() for inheritance (faster) 2015-06-17 17:11:40 -04:00
Jens Mönig b5f30002a5 fix block library export encoding glitch 2015-05-23 00:36:21 +02:00
Jens Mönig e005d71601 Fix encoding for exported libraries of global blocks 2015-05-21 20:09:21 +02:00
Jens Mönig c46d8093ef indicate numeric inputs in the block prototype with the # sign 2015-05-01 11:56:42 -04:00
Jens Mönig 168c328836 fixed #730
caching is evil, haha!
2015-03-02 00:39:13 -08:00
Jens Mönig b1d7853255 fixed #716 2015-02-28 06:09:01 -08:00
jmoenig fee92b65f2 Generate ScriptsPaneTexture programmatically 2015-01-21 12:18:46 +01:00
jmoenig 14821611fa fixed #702 2015-01-13 08:36:41 +01:00
jmoenig 4768102b09 integrate percent sign fix for JSLint 2014-11-20 15:13:21 +01:00
natashasandy 413e6a0e6a Fixed percent symbols in custom blocks
This fixes issue #476
2014-10-21 18:03:15 -07:00
jmoenig ab3e1b3aab updated history 2014-09-30 09:33:27 +02:00
Gubolin 55d04ca5f2 allow percent symbols in custom block texts (fix #361) 2014-08-02 16:31:20 +02:00
jmoenig 7f8d5a3d1e relabelling custom blocks (experimental) 2014-06-06 13:57:45 +02:00
jmoenig 50203901ea BYOB: new scriptsPicture() method for custom block definitions 2014-06-04 12:40:03 +02:00
jmoenig f6561867d2 fixed #407 (custom-block coloring w/ zebra off) 2014-05-02 10:55:03 +02:00
jmoenig a469f44afc partial fix for #407
the label still is wrong
2014-04-30 14:41:51 +02:00
jmoenig ebb4b93010 integrate localisation changes 2014-04-30 12:30:19 +02:00
Manuel Menezes de Sequeira 1f0e4f7480 Add localization support for SymbolMorph menu items. 2014-03-09 21:59:32 +00:00
jmoenig 9d63d129a6 Fixed #291 (readonly custom menus become non-readonly when block is edited) 2014-01-10 12:43:22 +01:00
jmoenig fba8387359 Fixed #292 (pulldowns loose lines when exported as library) 2014-01-10 12:18:24 +01:00
jmoenig fa88fdc761 validated all source files against the latest JSLint version
and pushed to this date
2014-01-09 18:50:38 +01:00
jmoenig d9a1a2224b Localization update 2013-11-26 11:07:22 +01:00
Manuel Menezes de Sequeira f64749bd2e Add localization to Edit Slot Options text. 2013-11-22 18:47:28 +00:00
jmoenig 81654e7299 „read-only“ option for editable custom block input slots
also custom block input slots reverting to default now show their
default value (useful in combination with the new "read-only" option
2013-11-15 11:18:45 +01:00
jmoenig 651f44ebdf customizable drop-down menus for input slots 2013-11-12 11:44:39 +01:00
jmoenig 8a60ec998e customizable drop-down menus for input slots
still experimental and incomplete and therefore commented out
(inactive) for now
2013-11-04 17:55:11 +01:00