The editor
| Language | Plain JavaScript, in strict mode |
|---|---|
| Size | About 34 000 lines in 28 script files, one stylesheet |
| Framework | None |
| Build step | None. The files in the folder are the files the browser runs. |
| Libraries | None. Every line is fennzo's own. |
| Drawing | Canvas 2D |
| Heavy work | Web Workers, for camera RAW decoding. WebCodecs, the browser's own encoders, for writing a video |
The scripts share one namespace, PS, and each one owns a part:
editor.js: the window, the panels, the keyspipeline.js: every Develop sliderlayers.js,tools.js,filters.js: Layers moderaw.js,rawcodec.js,rawworker.js: camera RAW filesfilemenu.js,imagemenu.js,menu.js: the three menushistory.js: undo and redoagent.js,brief.js,profiles.js,provider.js,agents.js: Ask AIfeedback.js: the Feedback sheetvideo.js,videoexport.js: Video mode, and the WebM / MKV writer
Each script's URL carries the build number, so your browser keeps a whole build together and asks the server for nothing while it has one. A new version is picked up when you refresh the page, or with Reload fennzo in the File menu.