Element.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { i18n } from '../../../../lang/index'
  2. export const SVGURI = 'http://www.w3.org/2000/svg'
  3. export const SVGPATH = "http://www.w3.org/1999/xlink"
  4. export const STATE_CHILD = '__state'
  5. export const POINT = 'point'
  6. export const DOOR = 'door'
  7. export const DOUBLEDOOR = 'double_door'
  8. export const COLUMN = 'column'
  9. export const CASEMENT = 'casement'
  10. export const SLIDEDOOR = 'slideDoor'
  11. export const TAGGING = 'tagging'
  12. export const GROUNDCASE = 'groundCase'
  13. export const BAYCASE = 'bayCase'
  14. export const FURNCOLUMN = 'furnColumn'
  15. export const FURNFLUE = 'furnFlue'
  16. export const LINE = 'line'
  17. export const SEFTLINE = 'seftline'
  18. export const ARCH = {
  19. [POINT]: i18n.t('modules.model.point'),
  20. [DOOR]: i18n.t('modules.model.door'),
  21. [DOUBLEDOOR]: i18n.t('modules.model.double_door'),
  22. [COLUMN]: i18n.t('modules.model.column'),
  23. [CASEMENT]: i18n.t('modules.model.casement'),
  24. [SLIDEDOOR]: i18n.t('modules.model.slideDoor'),
  25. [TAGGING]: i18n.t('modules.model.tagging'),
  26. [GROUNDCASE]: i18n.t('modules.model.groundCase'),
  27. [BAYCASE]: i18n.t('modules.model.bayCase'),
  28. [FURNCOLUMN]: i18n.t('modules.model.furnColumn'),
  29. [FURNFLUE]: i18n.t('modules.model.furnFlue'),
  30. [LINE]: i18n.t('modules.model.line'),
  31. [SEFTLINE]: i18n.t('modules.model.line')
  32. }
  33. export const DEFAULT = {
  34. [DOOR]: {
  35. width: 0.8,
  36. height: 2
  37. },
  38. [DOUBLEDOOR]: {
  39. width: 1.6,
  40. height: 2
  41. },
  42. [SLIDEDOOR]: {
  43. width: 1.5,
  44. height: 2
  45. },
  46. [CASEMENT]: {
  47. width: 0.8,
  48. height: 1.2
  49. },
  50. [BAYCASE]: {
  51. width: 1.5,
  52. height: 1.2
  53. },
  54. [GROUNDCASE]: {
  55. width: 1.5,
  56. height: 2
  57. },
  58. [COLUMN]: {
  59. width: 0.65,
  60. tick: 0.65
  61. },
  62. [FURNCOLUMN]: {
  63. width: 0.65,
  64. tick: 0.65
  65. },
  66. [FURNFLUE]: {
  67. width: 0.65,
  68. tick: 0.65
  69. },
  70. [LINE]: {
  71. width: 0.5
  72. }
  73. }