constants.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. export { GraphTypes, SecondaryGraphTypes, slideSettings, DefaultDisplayParams } from './Setting'
  21. export enum DisplayOperations {
  22. AddSlide = 1,
  23. Preview,
  24. Share
  25. }
  26. export enum SlideOperations {
  27. AddGraph = 11
  28. }
  29. export enum LayerOperations {
  30. MoveUp = 111,
  31. MoveDown,
  32. MoveLeft,
  33. MoveRight,
  34. BringToUpper,
  35. BringToFront,
  36. SendToNext,
  37. SendToBottom,
  38. Delete,
  39. Copy,
  40. Paste,
  41. // @TODO undo redo with slides
  42. Undo,
  43. Redo
  44. }
  45. export enum LayerAlignmentTypes {
  46. Left,
  47. HorizontalCenter,
  48. VerticalCenter,
  49. Right,
  50. Top,
  51. Bottom
  52. }
  53. export const LayerCommands = [
  54. {
  55. title: '上移一层',
  56. icon: 'icon-bring-upper',
  57. operation: LayerOperations.BringToUpper
  58. },
  59. {
  60. title: '下移一层',
  61. icon: 'icon-send-next',
  62. operation: LayerOperations.SendToNext
  63. },
  64. {
  65. title: '置顶',
  66. icon: 'icon-bring-front',
  67. operation: LayerOperations.BringToFront
  68. },
  69. {
  70. title: '置底',
  71. icon: 'icon-send-bottom',
  72. operation: LayerOperations.SendToBottom
  73. }
  74. ]