Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History of file src/fossil.pikchr.js at check-in 83f03e91c455e513
|
2021-02-22
| ||
| 12:23 | Added a missing 'return this'. ... (file: [158c2a880b] check-in: [4ce90f0170] user: stephan branch: trunk, size: 3098) | |
|
2020-09-18
| ||
| 19:06 | Reimplemented pikchr show/hide entirely in CSS, so it's now controlled by toggling the 'source' class on the outermost DIV element. Less JS and easier to implement in 3rd-party pikchr clients. ... (file: [5fafa0c5ec] check-in: [947c039073] user: stephan branch: trunk, size: 3081) | |
| 04:10 | pikchr js: hide/show the SVG's parent element instead of the SVG, so that output from pikchr print commands is hidden when the source is shown. ... (file: [abd651bfd9] check-in: [43116c73fd] user: stephan branch: trunk, size: 3386) | |
| 01:21 | pixchr layout changes requested at [https://pikchr.org/home/forumpost/504f54f61b]. See the comments about alt/ctrl/meta keys. ... (file: [a706426af7] check-in: [cd22f0f07d] user: stephan branch: trunk, size: 3440) | |
|
2020-09-17
| ||
| 23:25 | Removed some console.debug() output and fixed extraneous breaks which caused markdown_to_html() to stop afer processing a single tag. ... (file: [81d873dabc] check-in: [67060c5090] user: stephan branch: trunk, size: 3055) | |
| 23:11 | Renovated the pikchr click handling as discussed off-list with drh. ... (file: [c322105324] check-in: [938bb6c708] user: stephan branch: trunk, size: 3096) | |
| 17:17 | Pedantic CSS tweaks. ... (file: [512c5a88f7] check-in: [5b93a4da73] user: stephan branch: trunk, size: 9193) | |
| 17:13 | pikchr source view: tentatively re-added the copy button (only in source view, not SVG), but it now switches back to SVG mode if it successfully copies the source code. ... (file: [b68a23e53b] check-in: [d369f4f389] user: stephan branch: trunk, size: 9182) | |
| 16:52 | pikchr mode swap: tapping on an SVG switches modes and enables the mode-select button. Leaving source view mode requires activating that button (which works like before, but is only visible in source mode). ... (file: [09c1fa1fd9] check-in: [2a2be01319] user: stephan branch: trunk, size: 8843) | |
| 16:31 | Implemented most of the feedback from [https://pikchr.org/home/forumpost/f538d8e7f7], with the exceptions being documented in that thread. /pikchrshow now longer uses the mode-swap feature (seems superfluous there) and tapping anywhere in the body, outside of the source/svg container element, now turns off those buttons on all pikchrs where they are currently visible. Consolidated pikchr-rendering impl for markdown/fossil/pikchrshow/pikchr command. ... (file: [1801cfe3bc] check-in: [4f69773183] user: stephan branch: trunk, size: 8359) | |
|
2020-09-15
| ||
| 16:40 | fossil.pikchr.addSrcView() now tags each processed SVG element to avoid potentially processing the same one multiple times. Added fossil.pikchr support to /doc, /wiki, and /wikiedit/fileedit previews. This is harmless if there are no pikchrs or JS is disabled. ... (file: [508eeaabc6] check-in: [83f03e91c4] user: stephan branch: trunk, size: 8923) | |
| 14:54 | Restrict pikchr svg/source toggle to clicks, per forum feedback. ... (file: [1b3943965d] check-in: [4e757d8c48] user: stephan branch: trunk, size: 8590) | |
| 04:42 | Found a couple snazzy icons for the pikchr view mode change button. ... (file: [e792be5512] check-in: [927c90e88f] user: stephan branch: trunk, size: 8496) | |
|
2020-09-14
| ||
| 15:08 | pikchr: experimentally only show the source/svg and copy buttons when the mouse is over the pikchr area or the user taps on it (which toggles the buttons). This allows us to make them a bit bigger and keeps them from blocking nearby UI elements when they're not needed. ... (file: [c465b6fcb3] check-in: [460376e6a4] user: stephan branch: trunk, size: 7222) | |
| 13:36 | pikchr: documented what appears to be a fundamental incompatibility between our desire to open the source view in the same size/pos as the SVG view and how centering is handled. We seem to have two evils to choose from and currently use what seems to be the lesser of them. ... (file: [38f69c3b6c] check-in: [a35126bf28] user: stephan branch: trunk, size: 6348) | |
| 11:17 | When toggling pikchr SVG/src view, unset parent element's max-width for src view and re-install it for SVG view. This allows small images to have a sanely-sized source view. ... (file: [1847cb0b6f] check-in: [212d01c1ae] user: stephan branch: trunk, size: 4731) | |
| 11:12 | Had to move the pikchr svg/source buttons along the top to keep them from getting truncated off-screen in the forum. Added them to the forum. There are sizing problems of the source view for small pics because the parent element has a fixed max-width. ... (file: [9040bb04ab] check-in: [4e6aeb5fb3] user: stephan branch: trunk, size: 4468) | |
| 10:48 | Renamed fossil.pikchr-util.js to fossil.pikchr.js. Minor UI tweaks in the pikchr-related bits. ... (file: [d36fdcfb26] check-in: [f5c040869d] user: stephan branch: trunk, size: 4223) | |
| 09:19 | Moved SVG/pikchr mode buttons to the left of the SVG so that their positions remain stable when switching images in pikchrshow or resizing them via window-resize in other views. CSS-animated the mode-change button toggle. ... (file: [793ae46fbe] check-in: [b74d1a3fd1] user: stephan branch: trunk, size: 4192) | |
| 09:05 | Added UI control to toggle arbitrary pikchr SVG files between SVG and source views, along with a copy button to copy the source of the currently-selected view. Requires pikchr.c code which is not currently in the fossil tree, but once that code is imported, this feature will activate automatically. Currently only used by pikchrshow, but is trivial to activate in arbitrary pages. fossil.copybutton API now uses flashOnce as its default oncopy event handler, to simplify its most common usage. ... (file: [b77daa3f73] check-in: [475b3a7fbb] user: stephan branch: trunk, size: 4111) | |