constants.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. import { LayerAlignmentItemConfig, LayerAlignmentTypes } from './types'
  21. export { LayerAlignmentTypes } from './types'
  22. export const AlignmentGroups: LayerAlignmentItemConfig[][] = [
  23. [
  24. {
  25. title: '上对齐',
  26. type: LayerAlignmentTypes.Top,
  27. icon: 'icon-align-top'
  28. }
  29. ],
  30. [
  31. {
  32. title: '左对齐',
  33. type: LayerAlignmentTypes.Left,
  34. icon: 'icon-align-left'
  35. },
  36. {
  37. title: '水平居中',
  38. type: LayerAlignmentTypes.HorizontalCenter,
  39. icon: 'icon-horizontal-center'
  40. },
  41. {
  42. title: '垂直居中',
  43. type: LayerAlignmentTypes.VerticalCenter,
  44. icon: 'icon-vertical-center'
  45. },
  46. {
  47. title: '右对齐',
  48. type: LayerAlignmentTypes.Right,
  49. icon: 'icon-align-right'
  50. }
  51. ],
  52. [
  53. {
  54. title: '下对齐',
  55. type: LayerAlignmentTypes.Bottom,
  56. icon: 'icon-align-bottom'
  57. }
  58. ]
  59. ]