You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * Fixed name of the whiteboard fake participant.
  3. */
  4. export const WHITEBOARD_PARTICIPANT_NAME = 'Whiteboard';
  5. /**
  6. * Whiteboard ID.
  7. */
  8. export const WHITEBOARD_ID = 'whiteboard';
  9. /**
  10. * Whiteboard UI Options.
  11. */
  12. export const WHITEBOARD_UI_OPTIONS = {
  13. canvasActions: {
  14. allowedShapes: [
  15. 'arrow', 'diamond', 'ellipse', 'freedraw', 'line', 'rectangle', 'selection', 'text'
  16. ],
  17. allowedShortcuts: [
  18. 'cut', 'deleteSelectedElements', 'redo', 'selectAll', 'undo'
  19. ],
  20. disableAlignItems: true,
  21. disableFileDrop: true,
  22. disableGrouping: true,
  23. disableHints: true,
  24. disableLink: true,
  25. disableShortcuts: true,
  26. disableVerticalAlignOptions: true,
  27. fontSizeOptions: [ 's', 'm', 'l' ],
  28. hideArrowHeadsOptions: true,
  29. hideColorInput: true,
  30. hideClearCanvas: true,
  31. hideFontFamily: true,
  32. hideHelpDialog: true,
  33. hideIOActions: true,
  34. hideLayers: true,
  35. hideLibraries: true,
  36. hideLockButton: true,
  37. hideOpacityInput: true,
  38. hideSharpness: true,
  39. hideStrokeStyle: true,
  40. hideTextAlign: true,
  41. hideThemeControls: true,
  42. hideUserList: true,
  43. saveAsImageOptions: {
  44. defaultBackgroundValue: true,
  45. disableScale: true,
  46. disableSelection: true,
  47. disableClipboard: true,
  48. disableSceneEmbed: true,
  49. hideTheme: true
  50. }
  51. }
  52. };
  53. /**
  54. * Whiteboard default lower limit.
  55. */
  56. export const MIN_USER_LIMIT = 10;
  57. /**
  58. * Whiteboard soft limit diff.
  59. */
  60. export const USER_LIMIT_THRESHOLD = 5;
  61. /**
  62. * The pathName for the whiteboard page.
  63. *
  64. * @type {string}
  65. */
  66. export const WHITEBOARD_PATH_NAME = 'static/whiteboard.html';