summaryrefslogtreecommitdiff
path: root/filter/source/svg/presentation_engine.js
AgeCommit message (Collapse)Author
2019-06-23Fix typoAndrea Gelmini
Change-Id: If1f6d73088e87db6e91916ba338725054f63b5ac Reviewed-on: https://gerrit.libreoffice.org/73231 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2019-04-24tdf#124197 Improve "Unexpected error" user-visible error message wordingDarkByt31
Change-Id: I11c2ac4855a5fec2d26255ec3ab14ffe50e0fbbe Reviewed-on: https://gerrit.libreoffice.org/71066 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-02-24tdf#122582: Add touch gestures to iOS app slideshow, also for exiting itTor Lillqvist
Left swipt shows the next slide, right swipe shows the previoius slide. Up or down swipe exit the slideshow. Use the same hammer.js as Online does for touch gestures in dialogs. With one addition that was necessary to avoid a runtime error: look for a comment starting with '// tml:'. No idea why this is not needed in Online. Change-Id: I7a22b16dfbc069dcdc1be344005ab7503dcd1ba7
2019-02-22tdf#122582: Add ways to exit the slideshow in the iOS appTor Lillqvist
Either going past the end, or pressing the 'q' key on a hardware keyboard will exit the slideshow by posting an 'EXITSLIDESHOW' message to the app. (The app will have to handle that, of course, will commit in a moment.) Change-Id: I075e5e3fa86cc632cb3071d6546721b010ff77a2
2019-02-22Handle arrow keys (from a hardware keyboard) on iOSTor Lillqvist
Change-Id: Ia5946a77215eba565c3ff8c4dfbc08b95af493c0
2018-12-21svg.js: the SVG Path polyfill doesn't work with Firefox 59 and laterMarco Cecchetti
We use a drop-in replacement for the SVGPathSeg and SVGPathSegList APIs that were removed from SVG2. Unfortunately the embedded version of this polyfill doesn't work anymore with Firefox 59 and later. It has been needed to adapt a new version of the same polyfill. (See https://github.com/progers/pathseg) Change-Id: Ib5208d67022e585b7a5fb24e37cc446f50e57ee3 (cherry picked from commit 1b2aedb7b9f81bb6b43b64559cab00956c189f82) Reviewed-on: https://gerrit.libreoffice.org/65548 Tested-by: Jenkins Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2018-12-08Remove misguided FALLTHROUGH commentsStephan Bergmann
...between adjacent switch labels without any intervening statements Change-Id: Ieb8a0d9f71ea4382b5f7d005cdf7111d06aeb5d0 Reviewed-on: https://gerrit.libreoffice.org/64789 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-08-29Fix typoAndrea Gelmini
Change-Id: Ice092364268cdae09ad5ac31a922bbde049cfd8f Reviewed-on: https://gerrit.libreoffice.org/59105 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-08-16Fix typo: s/an other/another/gAndrea Gelmini
Change-Id: I203c546cfca841e7853282267190e20b60919add Reviewed-on: https://gerrit.libreoffice.org/59098 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-07-18Related: rhbz#1602589 dead_error_line: Execution cannot reach this statementCaolán McNamara
Change-Id: If0e4ea982ede92d564aafb247c789cc6cc3013ca Reviewed-on: https://gerrit.libreoffice.org/57638 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-07-18Related: rhbz#1602589 copy_paste_error: 'getKeyTimes'Caolán McNamara
Change-Id: I2b48d8c75af42429ce41a8f809fc3ac82cb354de Reviewed-on: https://gerrit.libreoffice.org/57636 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-04-16Use https instead of httpGulsah Kose
Use "https://cgit.freedesktop.org/libreoffice/core" instead of "http://cgit.freedesktop.org/libreoffice/core" Change-Id: Ic7248eeb2a9452da7236eeee08414a77714dd234 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-09-03svg.js: fix undefined variablefxwan
Change-Id: I9f79d400e78e42b47ebb4078e2618789c34da85a Reviewed-on: https://gerrit.libreoffice.org/37640 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-09-03svg.js: lift Source & Builder Class outta _parsePath func for less GCfxwan
Change-Id: Id45021a7a7aa4c60d59afa86363d0bd54a7948ff Reviewed-on: https://gerrit.libreoffice.org/37638 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-05-15filter: svg: presentation engine: modify/revert some eslint fixMarco Cecchetti
Change-Id: Iee9bc3d4cdec016f8b08ba50906aa154a0b03a9b Reviewed-on: https://gerrit.libreoffice.org/37604 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-05-01filter: get svg JS code warning-freeThorsten Behrens
Subsequent submissions need to pass 'eslint filter/source/svg/presentation_engine.js' w/o error. Change-Id: If79c43844d48602d19cde8d4dd12d7e7eef674fe
2017-05-01tdf#51358 Add Support for BoxSnakesWipePath transition in SVG ExportRohan Kumar
Ported the class BoxSnakesWipe Change-Id: I024f982998571d5a90252b10f873c0fc344af2ff Reviewed-on: https://gerrit.libreoffice.org/36902 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-05-01Fixed my mistake: Fix Rotation issue in ParallelSnakesWipeRohan Kumar
seems like SVGMatrix.translate() and its counterparts doesn't modify the matrix inplace. Change-Id: I3ccfbe99f58cd455e291d4d41657a104ec197e83 Reviewed-on: https://gerrit.libreoffice.org/36903 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-17svg filter: fix SweepWipePath.perform (found by eslint no-undef)Thorsten Behrens
Change-Id: I98d64618d28a06a04ce4e191be6ed90bc9af07bb
2017-04-17svg filter: fix eslint no-redeclareThorsten Behrens
Change-Id: I8435d991c582d2b3102d3a42984bb773fddae87c
2017-04-17svg filter: fix eslint no-undef - var-declare stuffThorsten Behrens
Change-Id: I4cd00616f972a0be14ceff9311aafee39561ac35
2017-04-17svg filter: fix eslint no-constant-conditionThorsten Behrens
Change-Id: I8ac187702a3014f78bb711409770b4e8504bcd7d
2017-04-17svg filter: fix eslint no-unused-varsThorsten Behrens
Change-Id: Ia3e80992d2c5310e0a2c810ef74d710f7a0e1e0b
2017-04-17svg filter: fix eslint no-unreachableThorsten Behrens
Change-Id: I111c30c9e379a04a17ee057e196efe7930758933
2017-04-17svg filter: fix eslint no-extra-semiThorsten Behrens
Change-Id: I21aa1bad2302536803d3da931cded84742733e05
2017-04-17svg filter: fix eslint no-fallthroughThorsten Behrens
Change-Id: I2cbc4757042ed3934b0badff03fa291c9f36b6da
2017-04-17svg filter: fix eslint no-dupe-keysThorsten Behrens
Change-Id: Iea60d96b6b0c3ba84caa20dd4a0b429af20a5d09
2017-04-17svg filter: fix eslint assigned-not-used no-unused-vars errorsThorsten Behrens
Change-Id: I15390770b908b281319c4f620732964755aea862
2017-04-17svg filter: remove reams of commented-out JS codeThorsten Behrens
Change-Id: I620bb3ee72653ecc595c5da9fe0558defaf96a44
2017-04-17svg filter: fix eslint no-unused-vars errorsThorsten Behrens
Change-Id: I1ef6d22f21069afd8dcef5842cf819ca2fef5287
2017-04-17tdf#51358 Add Support for ParallelSnakesWipe transition in SVG ExportRohan Kumar
Ported the class ParallelSnakesWipePath Change-Id: Ife99723792d3d3614c7fff6bcf6abaf199568075 Reviewed-on: https://gerrit.libreoffice.org/35723 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-17tdf#51358 Added Support for DoubleDiamondWipePath in Impress SVG ExportRohan Kumar
Ported the class DoubleDiamondWipe Change-Id: Ic4432018278c7b3567996bc9463b0f8fc96ebbec Reviewed-on: https://gerrit.libreoffice.org/35225 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-17tdf#51358 Add support for SpiralWipe transition in svg exportRohan Kumar
Ported the class SpiralWipePath Change-Id: I3f24c3e32fb2994db0edb48e6c2bd017337c208a Reviewed-on: https://gerrit.libreoffice.org/35139 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-06tdf#51358 Add Support for more slide transitions to Impress SVG ExportRohan Kumar
Ported the class WaterfallWipe. Change-Id: I4856243c4b29e45f16ee780db42c2f742a6b1dc1 Reviewed-on: https://gerrit.libreoffice.org/35107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-06tdf#51358 Support for SweepWipe transition in SVG ExportRohan Kumar
Ported the class SweepWipe Change-Id: Ia67b50ba53900efab977a4cb284f7d1514ff8113 Reviewed-on: https://gerrit.libreoffice.org/34906 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-06tdf#51358 Add Support for FanWipe classRohan Kumar
Ported the class FanWipe In SVG engine. Change-Id: I8a067f2df32968bb00d5b3adc020bc9ee8296f33 Reviewed-on: https://gerrit.libreoffice.org/33910 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-06tdf#51358 Support for ZigZag-Wipe transition animation in SVG supportRohan Kumar
Ported classes ZigZagWipe and BarnZigZagWipe Change-Id: Ib15929c24dc952944ac4de5b71c541cdd99affcc Reviewed-on: https://gerrit.libreoffice.org/33763 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-15Fixed my mistake: fix flipOnYAxis for SVGPathElementRohan Kumar
Fix flipOnYAxis() method which was the cause of some SnakeWipePath transition subtypes not working. Change-Id: I1bea5bdddf6c6312384f59d8614a0a2bc1a6e3ba Reviewed-on: https://gerrit.libreoffice.org/35191 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-07tdf#51358 Support for BarnDoorWipe transition animation in SVG supportRohan Kumar
ported the class BarnDoorWipe Change-Id: I10c98cf575c76bb0c96a9622721d1ab368941dca Reviewed-on: https://gerrit.libreoffice.org/33323 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-06Fix flip issue in Snake animation subtypeRohan Kumar
Fix flipOnYAxis function, alongwith minor tweaks. Change-Id: If8958de9eb651a15f86963f2e40eb364011ce41f Reviewed-on: https://gerrit.libreoffice.org/33918 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-06tdf#51358 Importing ClockWipe in SVG engineRohan Kumar
Most of the constants and transition info table were already written, i just added the perform method. Change-Id: Ib8e2d8e7ca7e26dc54a1e309a2b6271ee7603f34 Reviewed-on: https://gerrit.libreoffice.org/33847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-06tdf#51358 Support for VeeWipe transition in SVG SupportRohan Kumar
Ported the class Veewipe Change-Id: I13b9d7235967e3dd1b1b1638c27e76d11708d1e0 Reviewed-on: https://gerrit.libreoffice.org/33764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-01-28tdf#51358 Support for SnakeWipe transition animation in SVG supportRohan Kumar
ported the class SnakeWipe. Change-Id: Icb41072bbd276e0edf3ef2ecea6148c81110b53e Reviewed-on: https://gerrit.libreoffice.org/23285 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-01-23Remove aTransitionSubtypeOutMap and aTransitionTypeOutMapRohan Kumar
reverse mapping can be done at run time Change-Id: Id04688ffb62cfa494d0eeaf6b73feb5ade58d53c Reviewed-on: https://gerrit.libreoffice.org/32903 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-01-23tdf#51358 Support for BoxWipe transition in SVG ExportRohan Kumar
Ported the class BoxWipe Change-Id: Iad93bfa9e414028ba842c3d43edcb8a94c15a104 Reviewed-on: https://gerrit.libreoffice.org/32933 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2017-01-09tdf#51358 Support for IrisWipe transition animation in SVG ExportRohan Kumar
Ported the class IrisWipe Change-Id: If56f846e9a48941cdd240adfb15f5b36674cadd3 Reviewed-on: https://gerrit.libreoffice.org/32421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-07-01svg-export - Removal of the SVG 1.1 path API in ChromeMarco Cecchetti
On Chrome browser most of shape effects and slide transitions did not work anymore: that was due to the fact that several animations exploit the DOM api for handling path segments of the svg:path element. Starting from version 48 such an api has been removed from Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=539385 ; Moreover Chrome does not yet provide an implementation for the new svgpath api introduced in SVG 2.0 draft: so there is no native support for handling path data directly. The present patch adapts the JavaScript implementation of the old SVG 1.1 path api proposed here: https://github.com/progers/pathseg . Change-Id: I536202291e0b8895f91d9e499a32fa57c110b2c1 Reviewed-on: https://gerrit.libreoffice.org/26839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-07-01bccu#1910 - better handling of not supported animation nodes.Marco Cecchetti
Earlier, when a not supported animation node was hit all effects in the same slide was ignored since the whole animation tree was invalidated. This patch tries to minimize the impact of this issue by removing only all children nodes of the direct parent container of the not supported animation node. Change-Id: I31896cf29d18e64ff44d7d4bcdc60392ac1c1ec3 Reviewed-on: https://gerrit.libreoffice.org/26838 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-07-01bccu#1900 - added support for discrete activitiesMarco Cecchetti
Change-Id: Ib11f32faf50ba9616b0d5d517ae3820806ed42d2 Reviewed-on: https://gerrit.libreoffice.org/26837 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-07-01bccu#1900 - additive and calc mode were not parsed correctlyMarco Cecchetti
Change-Id: I00c4af6a6c992fc41c4b993621cded59800b5e06 Reviewed-on: https://gerrit.libreoffice.org/26836 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>