Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « drawio « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e1e074db3bbd466f974b2b9f621461670690415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * TODO: Make this URL configurable
 */
export const DRAWIO_EDITOR_URL =
  'https://embed.diagrams.net/?ui=sketch&noSaveBtn=1&saveAndExit=1&keepmodified=1&spin=1&embed=1&libraries=1&configure=1&proto=json&toSvg=1'; // TODO Make it configurable

export const DRAWIO_FRAME_ID = 'drawio-frame';

export const DARK_BACKGROUND_COLOR = '#202020';

export const DIAGRAM_BACKGROUND_COLOR = '#ffffff';

export const DRAWIO_IFRAME_TIMEOUT = 4000;

export const DIAGRAM_MAX_SIZE = 10 * 1024 * 1024; // 1MB