Jarek Foksa
Jarek Foksa
@indragiek I'm specifying custom images as demonstrated here: https://gist.github.com/jarek-foksa/10618949. If I find some free time next month I'll try to implement this feature.
I would use Schneider's path fitting algorithm: - demo http://paperjs.org/examples/path-simplification/ - original implementation: http://tog.acm.org/resources/GraphicsGems/gems/FitCurves.c - JavaScript port: https://github.com/paperjs/paper.js/blob/master/src/path/PathFitter.js
You could add support for embedding of PNG files via drag & drop with something like this: https://gist.github.com/jarek-foksa/8613003
@MagnaMike the gist just demonstrates how to use the DOM API in order to implement this functionality, it's not supposed to work out of the box (it's not even CoffeeScript).
You could improve performance by moving to WebKit 2 / WKWebView. I wouldn't bet too much on the synchronous WebKit 1 API as it's very likely going to be deprecated...
Electron is not recreating Cocoa widgets, it just provides a JS API to interact with the native implementation (menubar, dock, tabs, window).
Check out the [Xel project](https://github.com/jarek-foksa/xel) which has very similar goals.
Similar components: - [TinyMCE](https://www.tiny.cloud/) - [CKEditor 5](https://ckeditor.com/ckeditor-5/) - [CKEditor 4](https://ckeditor.com/ckeditor-4/) - [Medium Editor](http://yabwe.github.io/medium-editor/) - [Trix](https://trix-editor.org/) - [Froala](https://www.froala.com/wysiwyg-editor) - [Redactor](https://imperavi.com/redactor/) - [wysihtml](http://wysihtml.com/) - [Slate.js](https://www.slatejs.org/) - [Alloy Editor](https://alloyeditor.com/) - [Summernote](https://summernote.org/) - [Textbox.io](https://textbox.io/)...
I would like to support WebKit at some point in future, currently there is at least one important API ([Constructable Stylesheets](https://caniuse.com/?search=Constructable%20Stylesheets)) missing.
[Constructable Stylesheets](https://caniuse.com/?search=Constructable%20Stylesheets) and [adoptedStyleSheets](https://caniuse.com/mdn-api_document_adoptedstylesheets) APIs are needed for dynamic theme switching, no matter whether you use meta tags or JS API.