Commit graph

8 commits

Author SHA1 Message Date
Karishma Chadha
bea66d6c2d fix(sb3_definitions): prevent sprites from being named _stage_
add test fixture and unit test for this change
2018-12-19 11:09:06 -05:00
Karishma Chadha
f8f8c33c64 fix(sb3_definitions): allow sprites to be named 'stage' or 'Stage'
#49
2018-12-18 18:19:59 -05:00
Karishma Chadha
5a9d618a62 fix(sb3_definitions): fix comment position validation
A comment's x and y can be null. This will occur if a project is imported from 2.0, a sprite that is
not currently selected has comments, and that project is immediately saved in 3.0 without switching
to the other sprite that has comments.
2018-08-13 14:28:13 -04:00
Karishma Chadha
8eb3c30108 fix(sb3_definitions): fix validation error
fix a validation error where projects with certain custom procedure blocks were failing to load
2018-08-09 15:17:00 -04:00
Karishma Chadha
d2fe285a8c feat: add layerOrder informaiton to stage and sprites
Validates the new layerOrder property for the stage and the sprites, adds tests for validation.
2018-07-24 17:00:38 -04:00
Karishma Chadha
328b5a32da fix(sb3_definitions): add comment text character limit 2018-06-15 17:48:53 -04:00
Karishma Chadha
1f8a651ac8 feat(sb3_schema): add comment validation for sb3 2018-06-15 10:53:14 -04:00
Karishma Chadha
b808e7447f feat(schemas): add support for sprite files for 2.0 and 3.0
refactor schemas to support sprite2 and sprite3 files, while reusing rules in common with sb2 and
sb3 files

BREAKING CHANGE: Change to main API which now takes an additional boolean argument indicating
whether a sprite or project is being validated
2018-05-02 23:46:26 -04:00