Commit Graph

13 Commits (master)

Author SHA1 Message Date
kts of kettek 1c9d0ee138 Add ability to load and save HTML fragments
These HTML fragments are presumed to have no body or head tags, just
basic HTML markup. It really should check for the presence of:

  * html
  * head
  * body

And adjust saving accordingly.
2017-08-30 05:16:15 -07:00
kts of kettek 3ed7d531ef Move settings loading to under ready event 2017-08-12 13:43:46 -07:00
kts of kettek (nyaa) 141de5bd76 Add stub timeline controller icons 2017-08-12 13:37:21 -07:00
kts of kettek (nyaa) 768c1b37b7 Add timeline-controls id 2017-08-04 17:41:29 -07:00
kts of kettek (nyaa) 096430258b Add timeline and CatStyles stubs 2017-08-04 17:41:03 -07:00
kts of kettek (nyaa) a94f972868 Move timeline/controls to be in same box as view 2017-08-04 16:19:48 -07:00
kts of kettek (nyaa) 3a487a8850 CatProject now handles more project specifics
This includes: handling of CatAnimation(s) generation, storing a
reference to the iframe's contentDocument, and providing methods for
acquiring the body and animations. elements-view and animations-view now
properly use this information via the project-focused and project-loaded
events.
2017-08-04 15:58:50 -07:00
kts of kettek (Urami) 4cf6a261ca Add CatEmitter class, CatProject and Cat inherit from it
Also adjusted Cat and CatProject so that CatProject emits `loaded`
on its own `view` on `loaded` event. This is a step towards placing
all project-specific events being handled and emitted by a CatProject
itself.
2017-08-03 09:24:30 -07:00
kts of kettek (Urami) 0754af48cf Fix open file dialog cancelling error 2017-08-02 18:10:18 -07:00
kts of kettek (Urami) 2cfeab01c4 Store window position/size/maximized settings
Cat will now remember the position, size, and maximized state of the
main window when restarted.
2017-08-02 18:09:13 -07:00
kts of kettek (Urami) 732426a64e Add partially complete timeline element
This element provides a timeline that can be used for playback, keyframe
position visualization, and more!

Also added light testing code before the more major refactor of data
into the Project itself rather than being handled so directly by the
animations or elements tree modules (and other modules soon enough).
2017-08-02 18:06:32 -07:00
kts of kettek (nyaa) 4a9880dce7 Add dubious Animation struct and animations tree
CatAnimation struct provides an interface for accessing, changing,
and removing CSS animations and keyframes. It provides a more
JavaScript programming friendly interface by using basic Objects
to represent keyframes and their properties.

Add functionality to properly set the tree heads and rows outside
of the rather hackish build from DOM method.

The animations tree module and accompanying HTML provides a means
to select, add, and delete animations stored in the project HTML
file. It is incomplete as of yet.

Additionally, fixed a minor bug in Cat's emit method that made all
functions that returned a non-truthy value (such as no return) to
abort all proceeding listeners.
2017-08-02 14:05:36 -07:00
kts of kettek (nyaa) 918b3c8ebe Add initial pre-alpha codebase for Cat
This provides some basic structure and functionality for
Cat, albeit with a messy and somewhat incoherent structure.
2017-07-27 08:45:41 -07:00