mxConstants.js 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340
  1. /**
  2. * Copyright (c) 2006-2015, JGraph Ltd
  3. * Copyright (c) 2006-2015, Gaudenz Alder
  4. */
  5. var mxConstants =
  6. {
  7. /**
  8. * Class: mxConstants
  9. *
  10. * Defines various global constants.
  11. *
  12. * Variable: DEFAULT_HOTSPOT
  13. *
  14. * Defines the portion of the cell which is to be used as a connectable
  15. * region. Default is 0.3. Possible values are 0 < x <= 1.
  16. */
  17. DEFAULT_HOTSPOT: 0.3,
  18. /**
  19. * Variable: MIN_HOTSPOT_SIZE
  20. *
  21. * Defines the minimum size in pixels of the portion of the cell which is
  22. * to be used as a connectable region. Default is 8.
  23. */
  24. MIN_HOTSPOT_SIZE: 8,
  25. /**
  26. * Variable: MAX_HOTSPOT_SIZE
  27. *
  28. * Defines the maximum size in pixels of the portion of the cell which is
  29. * to be used as a connectable region. Use 0 for no maximum. Default is 0.
  30. */
  31. MAX_HOTSPOT_SIZE: 0,
  32. /**
  33. * Variable: RENDERING_HINT_EXACT
  34. *
  35. * Defines the exact rendering hint.
  36. */
  37. RENDERING_HINT_EXACT: 'exact',
  38. /**
  39. * Variable: RENDERING_HINT_FASTER
  40. *
  41. * Defines the faster rendering hint.
  42. */
  43. RENDERING_HINT_FASTER: 'faster',
  44. /**
  45. * Variable: RENDERING_HINT_FASTEST
  46. *
  47. * Defines the fastest rendering hint.
  48. */
  49. RENDERING_HINT_FASTEST: 'fastest',
  50. /**
  51. * Variable: DIALECT_SVG
  52. *
  53. * Defines the SVG display dialect name.
  54. */
  55. DIALECT_SVG: 'svg',
  56. /**
  57. * Variable: DIALECT_VML
  58. *
  59. * Defines the VML display dialect name.
  60. */
  61. DIALECT_VML: 'vml',
  62. /**
  63. * Variable: DIALECT_MIXEDHTML
  64. *
  65. * Defines the mixed HTML display dialect name.
  66. */
  67. DIALECT_MIXEDHTML: 'mixedHtml',
  68. /**
  69. * Variable: DIALECT_PREFERHTML
  70. *
  71. * Defines the preferred HTML display dialect name.
  72. */
  73. DIALECT_PREFERHTML: 'preferHtml',
  74. /**
  75. * Variable: DIALECT_STRICTHTML
  76. *
  77. * Defines the strict HTML display dialect.
  78. */
  79. DIALECT_STRICTHTML: 'strictHtml',
  80. /**
  81. * Variable: NS_SVG
  82. *
  83. * Defines the SVG namespace.
  84. */
  85. NS_SVG: 'http://www.w3.org/2000/svg',
  86. /**
  87. * Variable: NS_XHTML
  88. *
  89. * Defines the XHTML namespace.
  90. */
  91. NS_XHTML: 'http://www.w3.org/1999/xhtml',
  92. /**
  93. * Variable: NS_XLINK
  94. *
  95. * Defines the XLink namespace.
  96. */
  97. NS_XLINK: 'http://www.w3.org/1999/xlink',
  98. /**
  99. * Variable: SHADOWCOLOR
  100. *
  101. * Defines the color to be used to draw shadows in shapes and windows.
  102. * Default is gray.
  103. */
  104. SHADOWCOLOR: 'gray',
  105. /**
  106. * Variable: VML_SHADOWCOLOR
  107. *
  108. * Used for shadow color in filters where transparency is not supported
  109. * (Microsoft Internet Explorer). Default is gray.
  110. */
  111. VML_SHADOWCOLOR: 'gray',
  112. /**
  113. * Variable: SHADOW_OFFSET_X
  114. *
  115. * Specifies the x-offset of the shadow. Default is 2.
  116. */
  117. SHADOW_OFFSET_X: 2,
  118. /**
  119. * Variable: SHADOW_OFFSET_Y
  120. *
  121. * Specifies the y-offset of the shadow. Default is 3.
  122. */
  123. SHADOW_OFFSET_Y: 3,
  124. /**
  125. * Variable: SHADOW_OPACITY
  126. *
  127. * Defines the opacity for shadows. Default is 1.
  128. */
  129. SHADOW_OPACITY: 1,
  130. /**
  131. * Variable: NODETYPE_ELEMENT
  132. *
  133. * DOM node of type ELEMENT.
  134. */
  135. NODETYPE_ELEMENT: 1,
  136. /**
  137. * Variable: NODETYPE_ATTRIBUTE
  138. *
  139. * DOM node of type ATTRIBUTE.
  140. */
  141. NODETYPE_ATTRIBUTE: 2,
  142. /**
  143. * Variable: NODETYPE_TEXT
  144. *
  145. * DOM node of type TEXT.
  146. */
  147. NODETYPE_TEXT: 3,
  148. /**
  149. * Variable: NODETYPE_CDATA
  150. *
  151. * DOM node of type CDATA.
  152. */
  153. NODETYPE_CDATA: 4,
  154. /**
  155. * Variable: NODETYPE_ENTITY_REFERENCE
  156. *
  157. * DOM node of type ENTITY_REFERENCE.
  158. */
  159. NODETYPE_ENTITY_REFERENCE: 5,
  160. /**
  161. * Variable: NODETYPE_ENTITY
  162. *
  163. * DOM node of type ENTITY.
  164. */
  165. NODETYPE_ENTITY: 6,
  166. /**
  167. * Variable: NODETYPE_PROCESSING_INSTRUCTION
  168. *
  169. * DOM node of type PROCESSING_INSTRUCTION.
  170. */
  171. NODETYPE_PROCESSING_INSTRUCTION: 7,
  172. /**
  173. * Variable: NODETYPE_COMMENT
  174. *
  175. * DOM node of type COMMENT.
  176. */
  177. NODETYPE_COMMENT: 8,
  178. /**
  179. * Variable: NODETYPE_DOCUMENT
  180. *
  181. * DOM node of type DOCUMENT.
  182. */
  183. NODETYPE_DOCUMENT: 9,
  184. /**
  185. * Variable: NODETYPE_DOCUMENTTYPE
  186. *
  187. * DOM node of type DOCUMENTTYPE.
  188. */
  189. NODETYPE_DOCUMENTTYPE: 10,
  190. /**
  191. * Variable: NODETYPE_DOCUMENT_FRAGMENT
  192. *
  193. * DOM node of type DOCUMENT_FRAGMENT.
  194. */
  195. NODETYPE_DOCUMENT_FRAGMENT: 11,
  196. /**
  197. * Variable: NODETYPE_NOTATION
  198. *
  199. * DOM node of type NOTATION.
  200. */
  201. NODETYPE_NOTATION: 12,
  202. /**
  203. * Variable: TOOLTIP_VERTICAL_OFFSET
  204. *
  205. * Defines the vertical offset for the tooltip.
  206. * Default is 16.
  207. */
  208. TOOLTIP_VERTICAL_OFFSET: 16,
  209. /**
  210. * Variable: DEFAULT_VALID_COLOR
  211. *
  212. * Specifies the default valid color. Default is #0000FF.
  213. */
  214. DEFAULT_VALID_COLOR: '#00FF00',
  215. /**
  216. * Variable: DEFAULT_INVALID_COLOR
  217. *
  218. * Specifies the default invalid color. Default is #FF0000.
  219. */
  220. DEFAULT_INVALID_COLOR: '#FF0000',
  221. /**
  222. * Variable: OUTLINE_HIGHLIGHT_COLOR
  223. *
  224. * Specifies the default highlight color for shape outlines.
  225. * Default is #0000FF. This is used in <mxEdgeHandler>.
  226. */
  227. OUTLINE_HIGHLIGHT_COLOR: '#00FF00',
  228. /**
  229. * Variable: OUTLINE_HIGHLIGHT_COLOR
  230. *
  231. * Defines the strokewidth to be used for shape outlines.
  232. * Default is 5. This is used in <mxEdgeHandler>.
  233. */
  234. OUTLINE_HIGHLIGHT_STROKEWIDTH: 5,
  235. /**
  236. * Variable: HIGHLIGHT_STROKEWIDTH
  237. *
  238. * Defines the strokewidth to be used for the highlights.
  239. * Default is 3.
  240. */
  241. HIGHLIGHT_STROKEWIDTH: 3,
  242. /**
  243. * Variable: CONSTRAINT_HIGHLIGHT_SIZE
  244. *
  245. * Size of the constraint highlight (in px). Default is 2.
  246. */
  247. HIGHLIGHT_SIZE: 2,
  248. /**
  249. * Variable: HIGHLIGHT_OPACITY
  250. *
  251. * Opacity (in %) used for the highlights (including outline).
  252. * Default is 100.
  253. */
  254. HIGHLIGHT_OPACITY: 100,
  255. /**
  256. * Variable: CURSOR_MOVABLE_VERTEX
  257. *
  258. * Defines the cursor for a movable vertex. Default is 'move'.
  259. */
  260. CURSOR_MOVABLE_VERTEX: 'move',
  261. /**
  262. * Variable: CURSOR_MOVABLE_EDGE
  263. *
  264. * Defines the cursor for a movable edge. Default is 'move'.
  265. */
  266. CURSOR_MOVABLE_EDGE: 'move',
  267. /**
  268. * Variable: CURSOR_LABEL_HANDLE
  269. *
  270. * Defines the cursor for a movable label. Default is 'default'.
  271. */
  272. CURSOR_LABEL_HANDLE: 'default',
  273. /**
  274. * Variable: CURSOR_TERMINAL_HANDLE
  275. *
  276. * Defines the cursor for a terminal handle. Default is 'pointer'.
  277. */
  278. CURSOR_TERMINAL_HANDLE: 'pointer',
  279. /**
  280. * Variable: CURSOR_BEND_HANDLE
  281. *
  282. * Defines the cursor for a movable bend. Default is 'crosshair'.
  283. */
  284. CURSOR_BEND_HANDLE: 'crosshair',
  285. /**
  286. * Variable: CURSOR_VIRTUAL_BEND_HANDLE
  287. *
  288. * Defines the cursor for a movable bend. Default is 'crosshair'.
  289. */
  290. CURSOR_VIRTUAL_BEND_HANDLE: 'crosshair',
  291. /**
  292. * Variable: CURSOR_CONNECT
  293. *
  294. * Defines the cursor for a connectable state. Default is 'pointer'.
  295. */
  296. CURSOR_CONNECT: 'pointer',
  297. /**
  298. * Variable: HIGHLIGHT_COLOR
  299. *
  300. * Defines the color to be used for the cell highlighting.
  301. * Use 'none' for no color. Default is #00FF00.
  302. */
  303. HIGHLIGHT_COLOR: '#00FF00',
  304. /**
  305. * Variable: TARGET_HIGHLIGHT_COLOR
  306. *
  307. * Defines the color to be used for highlighting a target cell for a new
  308. * or changed connection. Note that this may be either a source or
  309. * target terminal in the graph. Use 'none' for no color.
  310. * Default is #0000FF.
  311. */
  312. CONNECT_TARGET_COLOR: '#0000FF',
  313. /**
  314. * Variable: INVALID_CONNECT_TARGET_COLOR
  315. *
  316. * Defines the color to be used for highlighting a invalid target cells
  317. * for a new or changed connections. Note that this may be either a source
  318. * or target terminal in the graph. Use 'none' for no color. Default is
  319. * #FF0000.
  320. */
  321. INVALID_CONNECT_TARGET_COLOR: '#FF0000',
  322. /**
  323. * Variable: DROP_TARGET_COLOR
  324. *
  325. * Defines the color to be used for the highlighting target parent cells
  326. * (for drag and drop). Use 'none' for no color. Default is #0000FF.
  327. */
  328. DROP_TARGET_COLOR: '#0000FF',
  329. /**
  330. * Variable: VALID_COLOR
  331. *
  332. * Defines the color to be used for the coloring valid connection
  333. * previews. Use 'none' for no color. Default is #FF0000.
  334. */
  335. VALID_COLOR: '#00FF00',
  336. /**
  337. * Variable: INVALID_COLOR
  338. *
  339. * Defines the color to be used for the coloring invalid connection
  340. * previews. Use 'none' for no color. Default is #FF0000.
  341. */
  342. INVALID_COLOR: '#FF0000',
  343. /**
  344. * Variable: EDGE_SELECTION_COLOR
  345. *
  346. * Defines the color to be used for the selection border of edges. Use
  347. * 'none' for no color. Default is #00FF00.
  348. */
  349. EDGE_SELECTION_COLOR: '#00FF00',
  350. /**
  351. * Variable: VERTEX_SELECTION_COLOR
  352. *
  353. * Defines the color to be used for the selection border of vertices. Use
  354. * 'none' for no color. Default is #00FF00.
  355. */
  356. VERTEX_SELECTION_COLOR: '#00FF00',
  357. /**
  358. * Variable: VERTEX_SELECTION_STROKEWIDTH
  359. *
  360. * Defines the strokewidth to be used for vertex selections.
  361. * Default is 1.
  362. */
  363. VERTEX_SELECTION_STROKEWIDTH: 1,
  364. /**
  365. * Variable: EDGE_SELECTION_STROKEWIDTH
  366. *
  367. * Defines the strokewidth to be used for edge selections.
  368. * Default is 1.
  369. */
  370. EDGE_SELECTION_STROKEWIDTH: 1,
  371. /**
  372. * Variable: SELECTION_DASHED
  373. *
  374. * Defines the dashed state to be used for the vertex selection
  375. * border. Default is true.
  376. */
  377. VERTEX_SELECTION_DASHED: true,
  378. /**
  379. * Variable: SELECTION_DASHED
  380. *
  381. * Defines the dashed state to be used for the edge selection
  382. * border. Default is true.
  383. */
  384. EDGE_SELECTION_DASHED: true,
  385. /**
  386. * Variable: GUIDE_COLOR
  387. *
  388. * Defines the color to be used for the guidelines in mxGraphHandler.
  389. * Default is #FF0000.
  390. */
  391. GUIDE_COLOR: '#FF0000',
  392. /**
  393. * Variable: GUIDE_STROKEWIDTH
  394. *
  395. * Defines the strokewidth to be used for the guidelines in mxGraphHandler.
  396. * Default is 1.
  397. */
  398. GUIDE_STROKEWIDTH: 1,
  399. /**
  400. * Variable: OUTLINE_COLOR
  401. *
  402. * Defines the color to be used for the outline rectangle
  403. * border. Use 'none' for no color. Default is #0099FF.
  404. */
  405. OUTLINE_COLOR: '#0099FF',
  406. /**
  407. * Variable: OUTLINE_STROKEWIDTH
  408. *
  409. * Defines the strokewidth to be used for the outline rectangle
  410. * stroke width. Default is 3.
  411. */
  412. OUTLINE_STROKEWIDTH: (mxClient.IS_IE) ? 2 : 3,
  413. /**
  414. * Variable: HANDLE_SIZE
  415. *
  416. * Defines the default size for handles. Default is 6.
  417. */
  418. HANDLE_SIZE: 6,
  419. /**
  420. * Variable: LABEL_HANDLE_SIZE
  421. *
  422. * Defines the default size for label handles. Default is 4.
  423. */
  424. LABEL_HANDLE_SIZE: 4,
  425. /**
  426. * Variable: HANDLE_FILLCOLOR
  427. *
  428. * Defines the color to be used for the handle fill color. Use 'none' for
  429. * no color. Default is #00FF00 (green).
  430. */
  431. HANDLE_FILLCOLOR: '#00FF00',
  432. /**
  433. * Variable: HANDLE_STROKECOLOR
  434. *
  435. * Defines the color to be used for the handle stroke color. Use 'none' for
  436. * no color. Default is black.
  437. */
  438. HANDLE_STROKECOLOR: 'black',
  439. /**
  440. * Variable: LABEL_HANDLE_FILLCOLOR
  441. *
  442. * Defines the color to be used for the label handle fill color. Use 'none'
  443. * for no color. Default is yellow.
  444. */
  445. LABEL_HANDLE_FILLCOLOR: 'yellow',
  446. /**
  447. * Variable: CONNECT_HANDLE_FILLCOLOR
  448. *
  449. * Defines the color to be used for the connect handle fill color. Use
  450. * 'none' for no color. Default is #0000FF (blue).
  451. */
  452. CONNECT_HANDLE_FILLCOLOR: '#0000FF',
  453. /**
  454. * Variable: LOCKED_HANDLE_FILLCOLOR
  455. *
  456. * Defines the color to be used for the locked handle fill color. Use
  457. * 'none' for no color. Default is #FF0000 (red).
  458. */
  459. LOCKED_HANDLE_FILLCOLOR: '#FF0000',
  460. /**
  461. * Variable: OUTLINE_HANDLE_FILLCOLOR
  462. *
  463. * Defines the color to be used for the outline sizer fill color. Use
  464. * 'none' for no color. Default is #00FFFF.
  465. */
  466. OUTLINE_HANDLE_FILLCOLOR: '#00FFFF',
  467. /**
  468. * Variable: OUTLINE_HANDLE_STROKECOLOR
  469. *
  470. * Defines the color to be used for the outline sizer stroke color. Use
  471. * 'none' for no color. Default is #0033FF.
  472. */
  473. OUTLINE_HANDLE_STROKECOLOR: '#0033FF',
  474. /**
  475. * Variable: DEFAULT_FONTFAMILY
  476. *
  477. * Defines the default family for all fonts. Default is Arial,Helvetica.
  478. */
  479. DEFAULT_FONTFAMILY: 'Arial,Helvetica',
  480. /**
  481. * Variable: DEFAULT_FONTSIZE
  482. *
  483. * Defines the default size (in px). Default is 11.
  484. */
  485. DEFAULT_FONTSIZE: 11,
  486. /**
  487. * Variable: DEFAULT_TEXT_DIRECTION
  488. *
  489. * Defines the default value for the <STYLE_TEXT_DIRECTION> if no value is
  490. * defined for it in the style. Default value is an empty string which means
  491. * the default system setting is used and no direction is set.
  492. */
  493. DEFAULT_TEXT_DIRECTION: '',
  494. /**
  495. * Variable: LINE_HEIGHT
  496. *
  497. * Defines the default line height for text labels. Default is 1.2.
  498. */
  499. LINE_HEIGHT: 1.2,
  500. /**
  501. * Variable: WORD_WRAP
  502. *
  503. * Defines the CSS value for the word-wrap property. Default is "normal".
  504. * Change this to "break-word" to allow long words to be able to be broken
  505. * and wrap onto the next line.
  506. */
  507. WORD_WRAP: 'normal',
  508. /**
  509. * Variable: ABSOLUTE_LINE_HEIGHT
  510. *
  511. * Specifies if absolute line heights should be used (px) in CSS. Default
  512. * is false. Set this to true for backwards compatibility.
  513. */
  514. ABSOLUTE_LINE_HEIGHT: false,
  515. /**
  516. * Variable: DEFAULT_FONTSTYLE
  517. *
  518. * Defines the default style for all fonts. Default is 0. This can be set
  519. * to any combination of font styles as follows.
  520. *
  521. * (code)
  522. * mxConstants.DEFAULT_FONTSTYLE = mxConstants.FONT_BOLD | mxConstants.FONT_ITALIC;
  523. * (end)
  524. */
  525. DEFAULT_FONTSTYLE: 0,
  526. /**
  527. * Variable: DEFAULT_STARTSIZE
  528. *
  529. * Defines the default start size for swimlanes. Default is 40.
  530. */
  531. DEFAULT_STARTSIZE: 40,
  532. /**
  533. * Variable: DEFAULT_MARKERSIZE
  534. *
  535. * Defines the default size for all markers. Default is 6.
  536. */
  537. DEFAULT_MARKERSIZE: 6,
  538. /**
  539. * Variable: DEFAULT_IMAGESIZE
  540. *
  541. * Defines the default width and height for images used in the
  542. * label shape. Default is 24.
  543. */
  544. DEFAULT_IMAGESIZE: 24,
  545. /**
  546. * Variable: ENTITY_SEGMENT
  547. *
  548. * Defines the length of the horizontal segment of an Entity Relation.
  549. * This can be overridden using <mxConstants.STYLE_SEGMENT> style.
  550. * Default is 30.
  551. */
  552. ENTITY_SEGMENT: 30,
  553. /**
  554. * Variable: RECTANGLE_ROUNDING_FACTOR
  555. *
  556. * Defines the rounding factor for rounded rectangles in percent between
  557. * 0 and 1. Values should be smaller than 0.5. Default is 0.15.
  558. */
  559. RECTANGLE_ROUNDING_FACTOR: 0.15,
  560. /**
  561. * Variable: LINE_ARCSIZE
  562. *
  563. * Defines the size of the arcs for rounded edges. Default is 20.
  564. */
  565. LINE_ARCSIZE: 20,
  566. /**
  567. * Variable: ARROW_SPACING
  568. *
  569. * Defines the spacing between the arrow shape and its terminals. Default is 0.
  570. */
  571. ARROW_SPACING: 0,
  572. /**
  573. * Variable: ARROW_WIDTH
  574. *
  575. * Defines the width of the arrow shape. Default is 30.
  576. */
  577. ARROW_WIDTH: 30,
  578. /**
  579. * Variable: ARROW_SIZE
  580. *
  581. * Defines the size of the arrowhead in the arrow shape. Default is 30.
  582. */
  583. ARROW_SIZE: 30,
  584. /**
  585. * Variable: PAGE_FORMAT_A4_PORTRAIT
  586. *
  587. * Defines the rectangle for the A4 portrait page format. The dimensions
  588. * of this page format are 826x1169 pixels.
  589. */
  590. PAGE_FORMAT_A4_PORTRAIT: new mxRectangle(0, 0, 827, 1169),
  591. /**
  592. * Variable: PAGE_FORMAT_A4_PORTRAIT
  593. *
  594. * Defines the rectangle for the A4 portrait page format. The dimensions
  595. * of this page format are 826x1169 pixels.
  596. */
  597. PAGE_FORMAT_A4_LANDSCAPE: new mxRectangle(0, 0, 1169, 827),
  598. /**
  599. * Variable: PAGE_FORMAT_LETTER_PORTRAIT
  600. *
  601. * Defines the rectangle for the Letter portrait page format. The
  602. * dimensions of this page format are 850x1100 pixels.
  603. */
  604. PAGE_FORMAT_LETTER_PORTRAIT: new mxRectangle(0, 0, 850, 1100),
  605. /**
  606. * Variable: PAGE_FORMAT_LETTER_PORTRAIT
  607. *
  608. * Defines the rectangle for the Letter portrait page format. The dimensions
  609. * of this page format are 850x1100 pixels.
  610. */
  611. PAGE_FORMAT_LETTER_LANDSCAPE: new mxRectangle(0, 0, 1100, 850),
  612. /**
  613. * Variable: NONE
  614. *
  615. * Defines the value for none. Default is "none".
  616. */
  617. NONE: 'none',
  618. /**
  619. * Variable: STYLE_PERIMETER
  620. *
  621. * Defines the key for the perimeter style. This is a function that defines
  622. * the perimeter around a particular shape. Possible values are the
  623. * functions defined in <mxPerimeter>. Alternatively, the constants in this
  624. * class that start with "PERIMETER_" may be used to access
  625. * perimeter styles in <mxStyleRegistry>. Value is "perimeter".
  626. */
  627. STYLE_PERIMETER: 'perimeter',
  628. /**
  629. * Variable: STYLE_SOURCE_PORT
  630. *
  631. * Defines the ID of the cell that should be used for computing the
  632. * perimeter point of the source for an edge. This allows for graphically
  633. * connecting to a cell while keeping the actual terminal of the edge.
  634. * Value is "sourcePort".
  635. */
  636. STYLE_SOURCE_PORT: 'sourcePort',
  637. /**
  638. * Variable: STYLE_TARGET_PORT
  639. *
  640. * Defines the ID of the cell that should be used for computing the
  641. * perimeter point of the target for an edge. This allows for graphically
  642. * connecting to a cell while keeping the actual terminal of the edge.
  643. * Value is "targetPort".
  644. */
  645. STYLE_TARGET_PORT: 'targetPort',
  646. /**
  647. * Variable: STYLE_PORT_CONSTRAINT
  648. *
  649. * Defines the direction(s) that edges are allowed to connect to cells in.
  650. * Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH,
  651. * DIRECTION_EAST" and "DIRECTION_WEST". Value is
  652. * "portConstraint".
  653. */
  654. STYLE_PORT_CONSTRAINT: 'portConstraint',
  655. /**
  656. * Variable: STYLE_PORT_CONSTRAINT_ROTATION
  657. *
  658. * Define whether port constraint directions are rotated with vertex
  659. * rotation. 0 (default) causes port constraints to remain absolute,
  660. * relative to the graph, 1 causes the constraints to rotate with
  661. * the vertex. Value is "portConstraintRotation".
  662. */
  663. STYLE_PORT_CONSTRAINT_ROTATION: 'portConstraintRotation',
  664. /**
  665. * Variable: STYLE_SOURCE_PORT_CONSTRAINT
  666. *
  667. * Defines the direction(s) that edges are allowed to connect to sources in.
  668. * Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST"
  669. * and "DIRECTION_WEST". Value is "sourcePortConstraint".
  670. */
  671. STYLE_SOURCE_PORT_CONSTRAINT: 'sourcePortConstraint',
  672. /**
  673. * Variable: STYLE_TARGET_PORT_CONSTRAINT
  674. *
  675. * Defines the direction(s) that edges are allowed to connect to targets in.
  676. * Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST"
  677. * and "DIRECTION_WEST". Value is "targetPortConstraint".
  678. */
  679. STYLE_TARGET_PORT_CONSTRAINT: 'targetPortConstraint',
  680. /**
  681. * Variable: STYLE_OPACITY
  682. *
  683. * Defines the key for the opacity style. The type of the value is
  684. * numeric and the possible range is 0-100. Value is "opacity".
  685. */
  686. STYLE_OPACITY: 'opacity',
  687. /**
  688. * Variable: STYLE_FILL_OPACITY
  689. *
  690. * Defines the key for the fill opacity style. The type of the value is
  691. * numeric and the possible range is 0-100. Value is "fillOpacity".
  692. */
  693. STYLE_FILL_OPACITY: 'fillOpacity',
  694. /**
  695. * Variable: STYLE_STROKE_OPACITY
  696. *
  697. * Defines the key for the stroke opacity style. The type of the value is
  698. * numeric and the possible range is 0-100. Value is "strokeOpacity".
  699. */
  700. STYLE_STROKE_OPACITY: 'strokeOpacity',
  701. /**
  702. * Variable: STYLE_TEXT_OPACITY
  703. *
  704. * Defines the key for the text opacity style. The type of the value is
  705. * numeric and the possible range is 0-100. Value is "textOpacity".
  706. */
  707. STYLE_TEXT_OPACITY: 'textOpacity',
  708. /**
  709. * Variable: STYLE_TEXT_DIRECTION
  710. *
  711. * Defines the key for the text direction style. Possible values are
  712. * "TEXT_DIRECTION_DEFAULT, TEXT_DIRECTION_AUTO, TEXT_DIRECTION_LTR"
  713. * and "TEXT_DIRECTION_RTL". Value is "textDirection".
  714. * The default value for the style is defined in <DEFAULT_TEXT_DIRECTION>.
  715. * It is used is no value is defined for this key in a given style. This is
  716. * an experimental style that is currently ignored in the backends.
  717. */
  718. STYLE_TEXT_DIRECTION: 'textDirection',
  719. /**
  720. * Variable: STYLE_OVERFLOW
  721. *
  722. * Defines the key for the overflow style. Possible values are 'visible',
  723. * 'hidden', 'fill' and 'width'. The default value is 'visible'. This value
  724. * specifies how overlapping vertex labels are handled. A value of
  725. * 'visible' will show the complete label. A value of 'hidden' will clip
  726. * the label so that it does not overlap the vertex bounds. A value of
  727. * 'fill' will use the vertex bounds and a value of 'width' will use the
  728. * vertex width for the label. See <mxGraph.isLabelClipped>. Note that
  729. * the vertical alignment is ignored for overflow fill and for horizontal
  730. * alignment, left should be used to avoid pixel offsets in Internet Explorer
  731. * 11 and earlier or if foreignObjects are disabled. Value is "overflow".
  732. */
  733. STYLE_OVERFLOW: 'overflow',
  734. /**
  735. * Variable: STYLE_ORTHOGONAL
  736. *
  737. * Defines if the connection points on either end of the edge should be
  738. * computed so that the edge is vertical or horizontal if possible and
  739. * if the point is not at a fixed location. Default is false. This is
  740. * used in <mxGraph.isOrthogonal>, which also returns true if the edgeStyle
  741. * of the edge is an elbow or entity. Value is "orthogonal".
  742. */
  743. STYLE_ORTHOGONAL: 'orthogonal',
  744. /**
  745. * Variable: STYLE_EXIT_X
  746. *
  747. * Defines the key for the horizontal relative coordinate connection point
  748. * of an edge with its source terminal. Value is "exitX".
  749. */
  750. STYLE_EXIT_X: 'exitX',
  751. /**
  752. * Variable: STYLE_EXIT_Y
  753. *
  754. * Defines the key for the vertical relative coordinate connection point
  755. * of an edge with its source terminal. Value is "exitY".
  756. */
  757. STYLE_EXIT_Y: 'exitY',
  758. /**
  759. * Variable: STYLE_EXIT_DX
  760. *
  761. * Defines the key for the horizontal offset of the connection point
  762. * of an edge with its source terminal. Value is "exitDx".
  763. */
  764. STYLE_EXIT_DX: 'exitDx',
  765. /**
  766. * Variable: STYLE_EXIT_DY
  767. *
  768. * Defines the key for the vertical offset of the connection point
  769. * of an edge with its source terminal. Value is "exitDy".
  770. */
  771. STYLE_EXIT_DY: 'exitDy',
  772. /**
  773. * Variable: STYLE_EXIT_PERIMETER
  774. *
  775. * Defines if the perimeter should be used to find the exact entry point
  776. * along the perimeter of the source. Possible values are 0 (false) and
  777. * 1 (true). Default is 1 (true). Value is "exitPerimeter".
  778. */
  779. STYLE_EXIT_PERIMETER: 'exitPerimeter',
  780. /**
  781. * Variable: STYLE_ENTRY_X
  782. *
  783. * Defines the key for the horizontal relative coordinate connection point
  784. * of an edge with its target terminal. Value is "entryX".
  785. */
  786. STYLE_ENTRY_X: 'entryX',
  787. /**
  788. * Variable: STYLE_ENTRY_Y
  789. *
  790. * Defines the key for the vertical relative coordinate connection point
  791. * of an edge with its target terminal. Value is "entryY".
  792. */
  793. STYLE_ENTRY_Y: 'entryY',
  794. /**
  795. * Variable: STYLE_ENTRY_DX
  796. *
  797. * Defines the key for the horizontal offset of the connection point
  798. * of an edge with its target terminal. Value is "entryDx".
  799. */
  800. STYLE_ENTRY_DX: 'entryDx',
  801. /**
  802. * Variable: STYLE_ENTRY_DY
  803. *
  804. * Defines the key for the vertical offset of the connection point
  805. * of an edge with its target terminal. Value is "entryDy".
  806. */
  807. STYLE_ENTRY_DY: 'entryDy',
  808. /**
  809. * Variable: STYLE_ENTRY_PERIMETER
  810. *
  811. * Defines if the perimeter should be used to find the exact entry point
  812. * along the perimeter of the target. Possible values are 0 (false) and
  813. * 1 (true). Default is 1 (true). Value is "entryPerimeter".
  814. */
  815. STYLE_ENTRY_PERIMETER: 'entryPerimeter',
  816. /**
  817. * Variable: STYLE_WHITE_SPACE
  818. *
  819. * Defines the key for the white-space style. Possible values are 'nowrap'
  820. * and 'wrap'. The default value is 'nowrap'. This value specifies how
  821. * white-space inside a HTML vertex label should be handled. A value of
  822. * 'nowrap' means the text will never wrap to the next line until a
  823. * linefeed is encountered. A value of 'wrap' means text will wrap when
  824. * necessary. This style is only used for HTML labels.
  825. * See <mxGraph.isWrapping>. Value is "whiteSpace".
  826. */
  827. STYLE_WHITE_SPACE: 'whiteSpace',
  828. /**
  829. * Variable: STYLE_ROTATION
  830. *
  831. * Defines the key for the rotation style. The type of the value is
  832. * numeric and the possible range is 0-360. Value is "rotation".
  833. */
  834. STYLE_ROTATION: 'rotation',
  835. /**
  836. * Variable: STYLE_FILLCOLOR
  837. *
  838. * Defines the key for the fill color. Possible values are all HTML color
  839. * names or HEX codes, as well as special keywords such as 'swimlane,
  840. * 'inherit' or 'indicated' to use the color code of a related cell or the
  841. * indicator shape. Value is "fillColor".
  842. */
  843. STYLE_FILLCOLOR: 'fillColor',
  844. /**
  845. * Variable: STYLE_POINTER_EVENTS
  846. *
  847. * Specifies if pointer events should be fired on transparent backgrounds.
  848. * This style is currently only supported in <mxRectangleShape>. Default
  849. * is true. Value is "pointerEvents". This is typically set to
  850. * false in groups where the transparent part should allow any underlying
  851. * cells to be clickable.
  852. */
  853. STYLE_POINTER_EVENTS: 'pointerEvents',
  854. /**
  855. * Variable: STYLE_SWIMLANE_FILLCOLOR
  856. *
  857. * Defines the key for the fill color of the swimlane background. Possible
  858. * values are all HTML color names or HEX codes. Default is no background.
  859. * Value is "swimlaneFillColor".
  860. */
  861. STYLE_SWIMLANE_FILLCOLOR: 'swimlaneFillColor',
  862. /**
  863. * Variable: STYLE_MARGIN
  864. *
  865. * Defines the key for the margin between the ellipses in the double ellipse shape.
  866. * Possible values are all positive numbers. Value is "margin".
  867. */
  868. STYLE_MARGIN: 'margin',
  869. /**
  870. * Variable: STYLE_GRADIENTCOLOR
  871. *
  872. * Defines the key for the gradient color. Possible values are all HTML color
  873. * names or HEX codes, as well as special keywords such as 'swimlane,
  874. * 'inherit' or 'indicated' to use the color code of a related cell or the
  875. * indicator shape. This is ignored if no fill color is defined. Value is
  876. * "gradientColor".
  877. */
  878. STYLE_GRADIENTCOLOR: 'gradientColor',
  879. /**
  880. * Variable: STYLE_GRADIENT_DIRECTION
  881. *
  882. * Defines the key for the gradient direction. Possible values are
  883. * <DIRECTION_EAST>, <DIRECTION_WEST>, <DIRECTION_NORTH> and
  884. * <DIRECTION_SOUTH>. Default is <DIRECTION_SOUTH>. Generally, and by
  885. * default in mxGraph, gradient painting is done from the value of
  886. * <STYLE_FILLCOLOR> to the value of <STYLE_GRADIENTCOLOR>. Taking the
  887. * example of <DIRECTION_NORTH>, this means <STYLE_FILLCOLOR> color at the
  888. * bottom of paint pattern and <STYLE_GRADIENTCOLOR> at top, with a
  889. * gradient in-between. Value is "gradientDirection".
  890. */
  891. STYLE_GRADIENT_DIRECTION: 'gradientDirection',
  892. /**
  893. * Variable: STYLE_STROKECOLOR
  894. *
  895. * Defines the key for the strokeColor style. Possible values are all HTML
  896. * color names or HEX codes, as well as special keywords such as 'swimlane,
  897. * 'inherit', 'indicated' to use the color code of a related cell or the
  898. * indicator shape or 'none' for no color. Value is "strokeColor".
  899. */
  900. STYLE_STROKECOLOR: 'strokeColor',
  901. /**
  902. * Variable: STYLE_SEPARATORCOLOR
  903. *
  904. * Defines the key for the separatorColor style. Possible values are all
  905. * HTML color names or HEX codes. This style is only used for
  906. * <SHAPE_SWIMLANE> shapes. Value is "separatorColor".
  907. */
  908. STYLE_SEPARATORCOLOR: 'separatorColor',
  909. /**
  910. * Variable: STYLE_STROKEWIDTH
  911. *
  912. * Defines the key for the strokeWidth style. The type of the value is
  913. * numeric and the possible range is any non-negative value larger or equal
  914. * to 1. The value defines the stroke width in pixels. Note: To hide a
  915. * stroke use strokeColor none. Value is "strokeWidth".
  916. */
  917. STYLE_STROKEWIDTH: 'strokeWidth',
  918. /**
  919. * Variable: STYLE_ALIGN
  920. *
  921. * Defines the key for the align style. Possible values are <ALIGN_LEFT>,
  922. * <ALIGN_CENTER> and <ALIGN_RIGHT>. This value defines how the lines of
  923. * the label are horizontally aligned. <ALIGN_LEFT> mean label text lines
  924. * are aligned to left of the label bounds, <ALIGN_RIGHT> to the right of
  925. * the label bounds and <ALIGN_CENTER> means the center of the text lines
  926. * are aligned in the center of the label bounds. Note this value doesn't
  927. * affect the positioning of the overall label bounds relative to the
  928. * vertex, to move the label bounds horizontally, use
  929. * <STYLE_LABEL_POSITION>. Value is "align".
  930. */
  931. STYLE_ALIGN: 'align',
  932. /**
  933. * Variable: STYLE_VERTICAL_ALIGN
  934. *
  935. * Defines the key for the verticalAlign style. Possible values are
  936. * <ALIGN_TOP>, <ALIGN_MIDDLE> and <ALIGN_BOTTOM>. This value defines how
  937. * the lines of the label are vertically aligned. <ALIGN_TOP> means the
  938. * topmost label text line is aligned against the top of the label bounds,
  939. * <ALIGN_BOTTOM> means the bottom-most label text line is aligned against
  940. * the bottom of the label bounds and <ALIGN_MIDDLE> means there is equal
  941. * spacing between the topmost text label line and the top of the label
  942. * bounds and the bottom-most text label line and the bottom of the label
  943. * bounds. Note this value doesn't affect the positioning of the overall
  944. * label bounds relative to the vertex, to move the label bounds
  945. * vertically, use <STYLE_VERTICAL_LABEL_POSITION>. Value is "verticalAlign".
  946. */
  947. STYLE_VERTICAL_ALIGN: 'verticalAlign',
  948. /**
  949. * Variable: STYLE_LABEL_WIDTH
  950. *
  951. * Defines the key for the width of the label if the label position is not
  952. * center. Value is "labelWidth".
  953. */
  954. STYLE_LABEL_WIDTH: 'labelWidth',
  955. /**
  956. * Variable: STYLE_LABEL_POSITION
  957. *
  958. * Defines the key for the horizontal label position of vertices. Possible
  959. * values are <ALIGN_LEFT>, <ALIGN_CENTER> and <ALIGN_RIGHT>. Default is
  960. * <ALIGN_CENTER>. The label align defines the position of the label
  961. * relative to the cell. <ALIGN_LEFT> means the entire label bounds is
  962. * placed completely just to the left of the vertex, <ALIGN_RIGHT> means
  963. * adjust to the right and <ALIGN_CENTER> means the label bounds are
  964. * vertically aligned with the bounds of the vertex. Note this value
  965. * doesn't affect the positioning of label within the label bounds, to move
  966. * the label horizontally within the label bounds, use <STYLE_ALIGN>.
  967. * Value is "labelPosition".
  968. */
  969. STYLE_LABEL_POSITION: 'labelPosition',
  970. /**
  971. * Variable: STYLE_VERTICAL_LABEL_POSITION
  972. *
  973. * Defines the key for the vertical label position of vertices. Possible
  974. * values are <ALIGN_TOP>, <ALIGN_BOTTOM> and <ALIGN_MIDDLE>. Default is
  975. * <ALIGN_MIDDLE>. The label align defines the position of the label
  976. * relative to the cell. <ALIGN_TOP> means the entire label bounds is
  977. * placed completely just on the top of the vertex, <ALIGN_BOTTOM> means
  978. * adjust on the bottom and <ALIGN_MIDDLE> means the label bounds are
  979. * horizontally aligned with the bounds of the vertex. Note this value
  980. * doesn't affect the positioning of label within the label bounds, to move
  981. * the label vertically within the label bounds, use
  982. * <STYLE_VERTICAL_ALIGN>. Value is "verticalLabelPosition".
  983. */
  984. STYLE_VERTICAL_LABEL_POSITION: 'verticalLabelPosition',
  985. /**
  986. * Variable: STYLE_IMAGE_ASPECT
  987. *
  988. * Defines the key for the image aspect style. Possible values are 0 (do
  989. * not preserve aspect) or 1 (keep aspect). This is only used in
  990. * <mxImageShape>. Default is 1. Value is "imageAspect".
  991. */
  992. STYLE_IMAGE_ASPECT: 'imageAspect',
  993. /**
  994. * Variable: STYLE_IMAGE_ALIGN
  995. *
  996. * Defines the key for the align style. Possible values are <ALIGN_LEFT>,
  997. * <ALIGN_CENTER> and <ALIGN_RIGHT>. The value defines how any image in the
  998. * vertex label is aligned horizontally within the label bounds of a
  999. * <SHAPE_LABEL> shape. Value is "imageAlign".
  1000. */
  1001. STYLE_IMAGE_ALIGN: 'imageAlign',
  1002. /**
  1003. * Variable: STYLE_IMAGE_VERTICAL_ALIGN
  1004. *
  1005. * Defines the key for the verticalAlign style. Possible values are
  1006. * <ALIGN_TOP>, <ALIGN_MIDDLE> and <ALIGN_BOTTOM>. The value defines how
  1007. * any image in the vertex label is aligned vertically within the label
  1008. * bounds of a <SHAPE_LABEL> shape. Value is "imageVerticalAlign".
  1009. */
  1010. STYLE_IMAGE_VERTICAL_ALIGN: 'imageVerticalAlign',
  1011. /**
  1012. * Variable: STYLE_GLASS
  1013. *
  1014. * Defines the key for the glass style. Possible values are 0 (disabled) and
  1015. * 1(enabled). The default value is 0. This is used in <mxLabel>. Value is
  1016. * "glass".
  1017. */
  1018. STYLE_GLASS: 'glass',
  1019. /**
  1020. * Variable: STYLE_IMAGE
  1021. *
  1022. * Defines the key for the image style. Possible values are any image URL,
  1023. * the type of the value is String. This is the path to the image that is
  1024. * to be displayed within the label of a vertex. Data URLs should use the
  1025. * following format: data:image/png,xyz where xyz is the base64 encoded
  1026. * data (without the "base64"-prefix). Note that Data URLs are only
  1027. * supported in modern browsers. Value is "image".
  1028. */
  1029. STYLE_IMAGE: 'image',
  1030. /**
  1031. * Variable: STYLE_IMAGE_WIDTH
  1032. *
  1033. * Defines the key for the imageWidth style. The type of this value is
  1034. * int, the value is the image width in pixels and must be greater than 0.
  1035. * Value is "imageWidth".
  1036. */
  1037. STYLE_IMAGE_WIDTH: 'imageWidth',
  1038. /**
  1039. * Variable: STYLE_IMAGE_HEIGHT
  1040. *
  1041. * Defines the key for the imageHeight style. The type of this value is
  1042. * int, the value is the image height in pixels and must be greater than 0.
  1043. * Value is "imageHeight".
  1044. */
  1045. STYLE_IMAGE_HEIGHT: 'imageHeight',
  1046. /**
  1047. * Variable: STYLE_IMAGE_BACKGROUND
  1048. *
  1049. * Defines the key for the image background color. This style is only used
  1050. * in <mxImageShape>. Possible values are all HTML color names or HEX
  1051. * codes. Value is "imageBackground".
  1052. */
  1053. STYLE_IMAGE_BACKGROUND: 'imageBackground',
  1054. /**
  1055. * Variable: STYLE_IMAGE_BORDER
  1056. *
  1057. * Defines the key for the image border color. This style is only used in
  1058. * <mxImageShape>. Possible values are all HTML color names or HEX codes.
  1059. * Value is "imageBorder".
  1060. */
  1061. STYLE_IMAGE_BORDER: 'imageBorder',
  1062. /**
  1063. * Variable: STYLE_FLIPH
  1064. *
  1065. * Defines the key for the horizontal image flip. This style is only used
  1066. * in <mxImageShape>. Possible values are 0 and 1. Default is 0. Value is
  1067. * "flipH".
  1068. */
  1069. STYLE_FLIPH: 'flipH',
  1070. /**
  1071. * Variable: STYLE_FLIPV
  1072. *
  1073. * Defines the key for the vertical flip. Possible values are 0 and 1.
  1074. * Default is 0. Value is "flipV".
  1075. */
  1076. STYLE_FLIPV: 'flipV',
  1077. /**
  1078. * Variable: STYLE_NOLABEL
  1079. *
  1080. * Defines the key for the noLabel style. If this is true then no label is
  1081. * visible for a given cell. Possible values are true or false (1 or 0).
  1082. * Default is false. Value is "noLabel".
  1083. */
  1084. STYLE_NOLABEL: 'noLabel',
  1085. /**
  1086. * Variable: STYLE_NOEDGESTYLE
  1087. *
  1088. * Defines the key for the noEdgeStyle style. If this is true then no edge
  1089. * style is applied for a given edge. Possible values are true or false
  1090. * (1 or 0). Default is false. Value is "noEdgeStyle".
  1091. */
  1092. STYLE_NOEDGESTYLE: 'noEdgeStyle',
  1093. /**
  1094. * Variable: STYLE_LABEL_BACKGROUNDCOLOR
  1095. *
  1096. * Defines the key for the label background color. Possible values are all
  1097. * HTML color names or HEX codes. Value is "labelBackgroundColor".
  1098. */
  1099. STYLE_LABEL_BACKGROUNDCOLOR: 'labelBackgroundColor',
  1100. /**
  1101. * Variable: STYLE_LABEL_BORDERCOLOR
  1102. *
  1103. * Defines the key for the label border color. Possible values are all
  1104. * HTML color names or HEX codes. Value is "labelBorderColor".
  1105. */
  1106. STYLE_LABEL_BORDERCOLOR: 'labelBorderColor',
  1107. /**
  1108. * Variable: STYLE_LABEL_PADDING
  1109. *
  1110. * Defines the key for the label padding, ie. the space between the label
  1111. * border and the label. Value is "labelPadding".
  1112. */
  1113. STYLE_LABEL_PADDING: 'labelPadding',
  1114. /**
  1115. * Variable: STYLE_INDICATOR_SHAPE
  1116. *
  1117. * Defines the key for the indicator shape used within an <mxLabel>.
  1118. * Possible values are all SHAPE_* constants or the names of any new
  1119. * shapes. The indicatorShape has precedence over the indicatorImage.
  1120. * Value is "indicatorShape".
  1121. */
  1122. STYLE_INDICATOR_SHAPE: 'indicatorShape',
  1123. /**
  1124. * Variable: STYLE_INDICATOR_IMAGE
  1125. *
  1126. * Defines the key for the indicator image used within an <mxLabel>.
  1127. * Possible values are all image URLs. The indicatorShape has
  1128. * precedence over the indicatorImage. Value is "indicatorImage".
  1129. */
  1130. STYLE_INDICATOR_IMAGE: 'indicatorImage',
  1131. /**
  1132. * Variable: STYLE_INDICATOR_COLOR
  1133. *
  1134. * Defines the key for the indicatorColor style. Possible values are all
  1135. * HTML color names or HEX codes, as well as the special 'swimlane' keyword
  1136. * to refer to the color of the parent swimlane if one exists. Value is
  1137. * "indicatorColor".
  1138. */
  1139. STYLE_INDICATOR_COLOR: 'indicatorColor',
  1140. /**
  1141. * Variable: STYLE_INDICATOR_STROKECOLOR
  1142. *
  1143. * Defines the key for the indicator stroke color in <mxLabel>.
  1144. * Possible values are all color codes. Value is "indicatorStrokeColor".
  1145. */
  1146. STYLE_INDICATOR_STROKECOLOR: 'indicatorStrokeColor',
  1147. /**
  1148. * Variable: STYLE_INDICATOR_GRADIENTCOLOR
  1149. *
  1150. * Defines the key for the indicatorGradientColor style. Possible values
  1151. * are all HTML color names or HEX codes. This style is only supported in
  1152. * <SHAPE_LABEL> shapes. Value is "indicatorGradientColor".
  1153. */
  1154. STYLE_INDICATOR_GRADIENTCOLOR: 'indicatorGradientColor',
  1155. /**
  1156. * Variable: STYLE_INDICATOR_SPACING
  1157. *
  1158. * The defines the key for the spacing between the label and the
  1159. * indicator in <mxLabel>. Possible values are in pixels. Value is
  1160. * "indicatorSpacing".
  1161. */
  1162. STYLE_INDICATOR_SPACING: 'indicatorSpacing',
  1163. /**
  1164. * Variable: STYLE_INDICATOR_WIDTH
  1165. *
  1166. * Defines the key for the indicator width. Possible values start at 0 (in
  1167. * pixels). Value is "indicatorWidth".
  1168. */
  1169. STYLE_INDICATOR_WIDTH: 'indicatorWidth',
  1170. /**
  1171. * Variable: STYLE_INDICATOR_HEIGHT
  1172. *
  1173. * Defines the key for the indicator height. Possible values start at 0 (in
  1174. * pixels). Value is "indicatorHeight".
  1175. */
  1176. STYLE_INDICATOR_HEIGHT: 'indicatorHeight',
  1177. /**
  1178. * Variable: STYLE_INDICATOR_DIRECTION
  1179. *
  1180. * Defines the key for the indicatorDirection style. The direction style is
  1181. * used to specify the direction of certain shapes (eg. <mxTriangle>).
  1182. * Possible values are <DIRECTION_EAST> (default), <DIRECTION_WEST>,
  1183. * <DIRECTION_NORTH> and <DIRECTION_SOUTH>. Value is "indicatorDirection".
  1184. */
  1185. STYLE_INDICATOR_DIRECTION: 'indicatorDirection',
  1186. /**
  1187. * Variable: STYLE_SHADOW
  1188. *
  1189. * Defines the key for the shadow style. The type of the value is Boolean.
  1190. * Value is "shadow".
  1191. */
  1192. STYLE_SHADOW: 'shadow',
  1193. /**
  1194. * Variable: STYLE_SEGMENT
  1195. *
  1196. * Defines the key for the segment style. The type of this value is float
  1197. * and the value represents the size of the horizontal segment of the
  1198. * entity relation style. Default is ENTITY_SEGMENT. Value is "segment".
  1199. */
  1200. STYLE_SEGMENT: 'segment',
  1201. /**
  1202. * Variable: STYLE_ENDARROW
  1203. *
  1204. * Defines the key for the end arrow marker. Possible values are all
  1205. * constants with an ARROW-prefix. This is only used in <mxConnector>.
  1206. * Value is "endArrow".
  1207. *
  1208. * Example:
  1209. * (code)
  1210. * style[mxConstants.STYLE_ENDARROW] = mxConstants.ARROW_CLASSIC;
  1211. * (end)
  1212. */
  1213. STYLE_ENDARROW: 'endArrow',
  1214. /**
  1215. * Variable: STYLE_STARTARROW
  1216. *
  1217. * Defines the key for the start arrow marker. Possible values are all
  1218. * constants with an ARROW-prefix. This is only used in <mxConnector>.
  1219. * See <STYLE_ENDARROW>. Value is "startArrow".
  1220. */
  1221. STYLE_STARTARROW: 'startArrow',
  1222. /**
  1223. * Variable: STYLE_ENDSIZE
  1224. *
  1225. * Defines the key for the endSize style. The type of this value is numeric
  1226. * and the value represents the size of the end marker in pixels. Value is
  1227. * "endSize".
  1228. */
  1229. STYLE_ENDSIZE: 'endSize',
  1230. /**
  1231. * Variable: STYLE_STARTSIZE
  1232. *
  1233. * Defines the key for the startSize style. The type of this value is
  1234. * numeric and the value represents the size of the start marker or the
  1235. * size of the swimlane title region depending on the shape it is used for.
  1236. * Value is "startSize".
  1237. */
  1238. STYLE_STARTSIZE: 'startSize',
  1239. /**
  1240. * Variable: STYLE_SWIMLANE_LINE
  1241. *
  1242. * Defines the key for the swimlaneLine style. This style specifies whether
  1243. * the line between the title regio of a swimlane should be visible. Use 0
  1244. * for hidden or 1 (default) for visible. Value is "swimlaneLine".
  1245. */
  1246. STYLE_SWIMLANE_LINE: 'swimlaneLine',
  1247. /**
  1248. * Variable: STYLE_ENDFILL
  1249. *
  1250. * Defines the key for the endFill style. Use 0 for no fill or 1 (default)
  1251. * for fill. (This style is only exported via <mxImageExport>.) Value is
  1252. * "endFill".
  1253. */
  1254. STYLE_ENDFILL: 'endFill',
  1255. /**
  1256. * Variable: STYLE_STARTFILL
  1257. *
  1258. * Defines the key for the startFill style. Use 0 for no fill or 1 (default)
  1259. * for fill. (This style is only exported via <mxImageExport>.) Value is
  1260. * "startFill".
  1261. */
  1262. STYLE_STARTFILL: 'startFill',
  1263. /**
  1264. * Variable: STYLE_DASHED
  1265. *
  1266. * Defines the key for the dashed style. Use 0 (default) for non-dashed or 1
  1267. * for dashed. Value is "dashed".
  1268. */
  1269. STYLE_DASHED: 'dashed',
  1270. /**
  1271. * Variable: STYLE_DASH_PATTERN
  1272. *
  1273. * Defines the key for the dashed pattern style in SVG and image exports.
  1274. * The type of this value is a space separated list of numbers that specify
  1275. * a custom-defined dash pattern. Dash styles are defined in terms of the
  1276. * length of the dash (the drawn part of the stroke) and the length of the
  1277. * space between the dashes. The lengths are relative to the line width: a
  1278. * length of "1" is equal to the line width. VML ignores this style and
  1279. * uses dashStyle instead as defined in the VML specification. This style
  1280. * is only used in the <mxConnector> shape. Value is "dashPattern".
  1281. */
  1282. STYLE_DASH_PATTERN: 'dashPattern',
  1283. /**
  1284. * Variable: STYLE_FIX_DASH
  1285. *
  1286. * Defines the key for the fixDash style. Use 0 (default) for dash patterns
  1287. * that depend on the linewidth and 1 for dash patterns that ignore the
  1288. * line width. Value is "fixDash".
  1289. */
  1290. STYLE_FIX_DASH: 'fixDash',
  1291. /**
  1292. * Variable: STYLE_ROUNDED
  1293. *
  1294. * Defines the key for the rounded style. The type of this value is
  1295. * Boolean. For edges this determines whether or not joins between edges
  1296. * segments are smoothed to a rounded finish. For vertices that have the
  1297. * rectangle shape, this determines whether or not the rectangle is
  1298. * rounded. Use 0 (default) for non-rounded or 1 for rounded. Value is
  1299. * "rounded".
  1300. */
  1301. STYLE_ROUNDED: 'rounded',
  1302. /**
  1303. * Variable: STYLE_CURVED
  1304. *
  1305. * Defines the key for the curved style. The type of this value is
  1306. * Boolean. It is only applicable for connector shapes. Use 0 (default)
  1307. * for non-curved or 1 for curved. Value is "curved".
  1308. */
  1309. STYLE_CURVED: 'curved',
  1310. /**
  1311. * Variable: STYLE_ARCSIZE
  1312. *
  1313. * Defines the rounding factor for a rounded rectangle in percent (without
  1314. * the percent sign). Possible values are between 0 and 100. If this value
  1315. * is not specified then RECTANGLE_ROUNDING_FACTOR * 100 is used. For
  1316. * edges, this defines the absolute size of rounded corners in pixels. If
  1317. * this values is not specified then LINE_ARCSIZE is used.
  1318. * (This style is only exported via <mxImageExport>.) Value is "arcSize".
  1319. */
  1320. STYLE_ARCSIZE: 'arcSize',
  1321. /**
  1322. * Variable: STYLE_ABSOLUTE_ARCSIZE
  1323. *
  1324. * Defines the key for the absolute arc size style. This specifies if
  1325. * arcSize for rectangles is abolute or relative. Possible values are 1
  1326. * and 0 (default). Value is "absoluteArcSize".
  1327. */
  1328. STYLE_ABSOLUTE_ARCSIZE: 'absoluteArcSize',
  1329. /**
  1330. * Variable: STYLE_SOURCE_PERIMETER_SPACING
  1331. *
  1332. * Defines the key for the source perimeter spacing. The type of this value
  1333. * is numeric. This is the distance between the source connection point of
  1334. * an edge and the perimeter of the source vertex in pixels. This style
  1335. * only applies to edges. Value is "sourcePerimeterSpacing".
  1336. */
  1337. STYLE_SOURCE_PERIMETER_SPACING: 'sourcePerimeterSpacing',
  1338. /**
  1339. * Variable: STYLE_TARGET_PERIMETER_SPACING
  1340. *
  1341. * Defines the key for the target perimeter spacing. The type of this value
  1342. * is numeric. This is the distance between the target connection point of
  1343. * an edge and the perimeter of the target vertex in pixels. This style
  1344. * only applies to edges. Value is "targetPerimeterSpacing".
  1345. */
  1346. STYLE_TARGET_PERIMETER_SPACING: 'targetPerimeterSpacing',
  1347. /**
  1348. * Variable: STYLE_PERIMETER_SPACING
  1349. *
  1350. * Defines the key for the perimeter spacing. This is the distance between
  1351. * the connection point and the perimeter in pixels. When used in a vertex
  1352. * style, this applies to all incoming edges to floating ports (edges that
  1353. * terminate on the perimeter of the vertex). When used in an edge style,
  1354. * this spacing applies to the source and target separately, if they
  1355. * terminate in floating ports (on the perimeter of the vertex). Value is
  1356. * "perimeterSpacing".
  1357. */
  1358. STYLE_PERIMETER_SPACING: 'perimeterSpacing',
  1359. /**
  1360. * Variable: STYLE_SPACING
  1361. *
  1362. * Defines the key for the spacing. The value represents the spacing, in
  1363. * pixels, added to each side of a label in a vertex (style applies to
  1364. * vertices only). Value is "spacing".
  1365. */
  1366. STYLE_SPACING: 'spacing',
  1367. /**
  1368. * Variable: STYLE_SPACING_TOP
  1369. *
  1370. * Defines the key for the spacingTop style. The value represents the
  1371. * spacing, in pixels, added to the top side of a label in a vertex (style
  1372. * applies to vertices only). Value is "spacingTop".
  1373. */
  1374. STYLE_SPACING_TOP: 'spacingTop',
  1375. /**
  1376. * Variable: STYLE_SPACING_LEFT
  1377. *
  1378. * Defines the key for the spacingLeft style. The value represents the
  1379. * spacing, in pixels, added to the left side of a label in a vertex (style
  1380. * applies to vertices only). Value is "spacingLeft".
  1381. */
  1382. STYLE_SPACING_LEFT: 'spacingLeft',
  1383. /**
  1384. * Variable: STYLE_SPACING_BOTTOM
  1385. *
  1386. * Defines the key for the spacingBottom style The value represents the
  1387. * spacing, in pixels, added to the bottom side of a label in a vertex
  1388. * (style applies to vertices only). Value is "spacingBottom".
  1389. */
  1390. STYLE_SPACING_BOTTOM: 'spacingBottom',
  1391. /**
  1392. * Variable: STYLE_SPACING_RIGHT
  1393. *
  1394. * Defines the key for the spacingRight style The value represents the
  1395. * spacing, in pixels, added to the right side of a label in a vertex (style
  1396. * applies to vertices only). Value is "spacingRight".
  1397. */
  1398. STYLE_SPACING_RIGHT: 'spacingRight',
  1399. /**
  1400. * Variable: STYLE_HORIZONTAL
  1401. *
  1402. * Defines the key for the horizontal style. Possible values are
  1403. * true or false. This value only applies to vertices. If the <STYLE_SHAPE>
  1404. * is "SHAPE_SWIMLANE" a value of false indicates that the
  1405. * swimlane should be drawn vertically, true indicates to draw it
  1406. * horizontally. If the shape style does not indicate that this vertex is a
  1407. * swimlane, this value affects only whether the label is drawn
  1408. * horizontally or vertically. Value is "horizontal".
  1409. */
  1410. STYLE_HORIZONTAL: 'horizontal',
  1411. /**
  1412. * Variable: STYLE_DIRECTION
  1413. *
  1414. * Defines the key for the direction style. The direction style is used
  1415. * to specify the direction of certain shapes (eg. <mxTriangle>).
  1416. * Possible values are <DIRECTION_EAST> (default), <DIRECTION_WEST>,
  1417. * <DIRECTION_NORTH> and <DIRECTION_SOUTH>. Value is "direction".
  1418. */
  1419. STYLE_DIRECTION: 'direction',
  1420. /**
  1421. * Variable: STYLE_ANCHOR_POINT_DIRECTION
  1422. *
  1423. * Defines the key for the anchorPointDirection style. The defines if the
  1424. * direction style should be taken into account when computing the fixed
  1425. * point location for connected edges. Default is 1 (yes). Set this to 0
  1426. * to ignore the direction style for fixed connection points. Value is
  1427. * "anchorPointDirection".
  1428. */
  1429. STYLE_ANCHOR_POINT_DIRECTION: 'anchorPointDirection',
  1430. /**
  1431. * Variable: STYLE_ELBOW
  1432. *
  1433. * Defines the key for the elbow style. Possible values are
  1434. * <ELBOW_HORIZONTAL> and <ELBOW_VERTICAL>. Default is <ELBOW_HORIZONTAL>.
  1435. * This defines how the three segment orthogonal edge style leaves its
  1436. * terminal vertices. The vertical style leaves the terminal vertices at
  1437. * the top and bottom sides. Value is "elbow".
  1438. */
  1439. STYLE_ELBOW: 'elbow',
  1440. /**
  1441. * Variable: STYLE_FONTCOLOR
  1442. *
  1443. * Defines the key for the fontColor style. Possible values are all HTML
  1444. * color names or HEX codes. Value is "fontColor".
  1445. */
  1446. STYLE_FONTCOLOR: 'fontColor',
  1447. /**
  1448. * Variable: STYLE_FONTFAMILY
  1449. *
  1450. * Defines the key for the fontFamily style. Possible values are names such
  1451. * as Arial; Dialog; Verdana; Times New Roman. The value is of type String.
  1452. * Value is fontFamily.
  1453. */
  1454. STYLE_FONTFAMILY: 'fontFamily',
  1455. /**
  1456. * Variable: STYLE_FONTSIZE
  1457. *
  1458. * Defines the key for the fontSize style (in px). The type of the value
  1459. * is int. Value is "fontSize".
  1460. */
  1461. STYLE_FONTSIZE: 'fontSize',
  1462. /**
  1463. * Variable: STYLE_FONTSTYLE
  1464. *
  1465. * Defines the key for the fontStyle style. Values may be any logical AND
  1466. * (sum) of <FONT_BOLD>, <FONT_ITALIC> and <FONT_UNDERLINE>.
  1467. * The type of the value is int. Value is "fontStyle".
  1468. */
  1469. STYLE_FONTSTYLE: 'fontStyle',
  1470. /**
  1471. * Variable: STYLE_ASPECT
  1472. *
  1473. * Defines the key for the aspect style. Possible values are empty or fixed.
  1474. * If fixed is used then the aspect ratio of the cell will be maintained
  1475. * when resizing. Default is empty. Value is "aspect".
  1476. */
  1477. STYLE_ASPECT: 'aspect',
  1478. /**
  1479. * Variable: STYLE_AUTOSIZE
  1480. *
  1481. * Defines the key for the autosize style. This specifies if a cell should be
  1482. * resized automatically if the value has changed. Possible values are 0 or 1.
  1483. * Default is 0. See <mxGraph.isAutoSizeCell>. This is normally combined with
  1484. * <STYLE_RESIZABLE> to disable manual sizing. Value is "autosize".
  1485. */
  1486. STYLE_AUTOSIZE: 'autosize',
  1487. /**
  1488. * Variable: STYLE_FOLDABLE
  1489. *
  1490. * Defines the key for the foldable style. This specifies if a cell is foldable
  1491. * using a folding icon. Possible values are 0 or 1. Default is 1. See
  1492. * <mxGraph.isCellFoldable>. Value is "foldable".
  1493. */
  1494. STYLE_FOLDABLE: 'foldable',
  1495. /**
  1496. * Variable: STYLE_EDITABLE
  1497. *
  1498. * Defines the key for the editable style. This specifies if the value of
  1499. * a cell can be edited using the in-place editor. Possible values are 0 or
  1500. * 1. Default is 1. See <mxGraph.isCellEditable>. Value is "editable".
  1501. */
  1502. STYLE_EDITABLE: 'editable',
  1503. /**
  1504. * Variable: STYLE_BACKGROUND_OUTLINE
  1505. *
  1506. * Defines the key for the backgroundOutline style. This specifies if a
  1507. * only the background of a cell should be painted when it is highlighted.
  1508. * Possible values are 0 or 1. Default is 0. Value is "backgroundOutline".
  1509. */
  1510. STYLE_BACKGROUND_OUTLINE: 'backgroundOutline',
  1511. /**
  1512. * Variable: STYLE_BENDABLE
  1513. *
  1514. * Defines the key for the bendable style. This specifies if the control
  1515. * points of an edge can be moved. Possible values are 0 or 1. Default is
  1516. * 1. See <mxGraph.isCellBendable>. Value is "bendable".
  1517. */
  1518. STYLE_BENDABLE: 'bendable',
  1519. /**
  1520. * Variable: STYLE_MOVABLE
  1521. *
  1522. * Defines the key for the movable style. This specifies if a cell can
  1523. * be moved. Possible values are 0 or 1. Default is 1. See
  1524. * <mxGraph.isCellMovable>. Value is "movable".
  1525. */
  1526. STYLE_MOVABLE: 'movable',
  1527. /**
  1528. * Variable: STYLE_RESIZABLE
  1529. *
  1530. * Defines the key for the resizable style. This specifies if a cell can
  1531. * be resized. Possible values are 0 or 1. Default is 1. See
  1532. * <mxGraph.isCellResizable>. Value is "resizable".
  1533. */
  1534. STYLE_RESIZABLE: 'resizable',
  1535. /**
  1536. * Variable: STYLE_RESIZE_WIDTH
  1537. *
  1538. * Defines the key for the resizeWidth style. This specifies if a cell's
  1539. * width is resized if the parent is resized. If this is 1 then the width
  1540. * will be resized even if the cell's geometry is relative. If this is 0
  1541. * then the cell's width will not be resized. Default is not defined. Value
  1542. * is "resizeWidth".
  1543. */
  1544. STYLE_RESIZE_WIDTH: 'resizeWidth',
  1545. /**
  1546. * Variable: STYLE_RESIZE_WIDTH
  1547. *
  1548. * Defines the key for the resizeHeight style. This specifies if a cell's
  1549. * height if resize if the parent is resized. If this is 1 then the height
  1550. * will be resized even if the cell's geometry is relative. If this is 0
  1551. * then the cell's height will not be resized. Default is not defined. Value
  1552. * is "resizeHeight".
  1553. */
  1554. STYLE_RESIZE_HEIGHT: 'resizeHeight',
  1555. /**
  1556. * Variable: STYLE_ROTATABLE
  1557. *
  1558. * Defines the key for the rotatable style. This specifies if a cell can
  1559. * be rotated. Possible values are 0 or 1. Default is 1. See
  1560. * <mxGraph.isCellRotatable>. Value is "rotatable".
  1561. */
  1562. STYLE_ROTATABLE: 'rotatable',
  1563. /**
  1564. * Variable: STYLE_CLONEABLE
  1565. *
  1566. * Defines the key for the cloneable style. This specifies if a cell can
  1567. * be cloned. Possible values are 0 or 1. Default is 1. See
  1568. * <mxGraph.isCellCloneable>. Value is "cloneable".
  1569. */
  1570. STYLE_CLONEABLE: 'cloneable',
  1571. /**
  1572. * Variable: STYLE_DELETABLE
  1573. *
  1574. * Defines the key for the deletable style. This specifies if a cell can be
  1575. * deleted. Possible values are 0 or 1. Default is 1. See
  1576. * <mxGraph.isCellDeletable>. Value is "deletable".
  1577. */
  1578. STYLE_DELETABLE: 'deletable',
  1579. /**
  1580. * Variable: STYLE_SHAPE
  1581. *
  1582. * Defines the key for the shape. Possible values are all constants with
  1583. * a SHAPE-prefix or any newly defined shape names. Value is "shape".
  1584. */
  1585. STYLE_SHAPE: 'shape',
  1586. /**
  1587. * Variable: STYLE_EDGE
  1588. *
  1589. * Defines the key for the edge style. Possible values are the functions
  1590. * defined in <mxEdgeStyle>. Value is "edgeStyle".
  1591. */
  1592. STYLE_EDGE: 'edgeStyle',
  1593. /**
  1594. * Variable: STYLE_JETTY_SIZE
  1595. *
  1596. * Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>.
  1597. * Default is 10. Possible values are all numeric values or "auto".
  1598. * Jetty size is the minimum length of the orthogonal segment before
  1599. * it attaches to a shape.
  1600. * Value is "jettySize".
  1601. */
  1602. STYLE_JETTY_SIZE: 'jettySize',
  1603. /**
  1604. * Variable: STYLE_SOURCE_JETTY_SIZE
  1605. *
  1606. * Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>.
  1607. * Default is 10. Possible values are numeric values or "auto". This has
  1608. * precedence over <STYLE_JETTY_SIZE>. Value is "sourceJettySize".
  1609. */
  1610. STYLE_SOURCE_JETTY_SIZE: 'sourceJettySize',
  1611. /**
  1612. * Variable: targetJettySize
  1613. *
  1614. * Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>.
  1615. * Default is 10. Possible values are numeric values or "auto". This has
  1616. * precedence over <STYLE_JETTY_SIZE>. Value is "targetJettySize".
  1617. */
  1618. STYLE_TARGET_JETTY_SIZE: 'targetJettySize',
  1619. /**
  1620. * Variable: STYLE_LOOP
  1621. *
  1622. * Defines the key for the loop style. Possible values are the functions
  1623. * defined in <mxEdgeStyle>. Value is "loopStyle". Default is
  1624. * <mxGraph.defaultLoopStylean>.
  1625. */
  1626. STYLE_LOOP: 'loopStyle',
  1627. /**
  1628. * Variable: STYLE_ORTHOGONAL_LOOP
  1629. *
  1630. * Defines the key for the orthogonal loop style. Possible values are 0 and
  1631. * 1. Default is 0. Value is "orthogonalLoop". Use this style to specify
  1632. * if loops with no waypoints and defined anchor points should be routed
  1633. * using <STYLE_LOOP> or not routed.
  1634. */
  1635. STYLE_ORTHOGONAL_LOOP: 'orthogonalLoop',
  1636. /**
  1637. * Variable: STYLE_ROUTING_CENTER_X
  1638. *
  1639. * Defines the key for the horizontal routing center. Possible values are
  1640. * between -0.5 and 0.5. This is the relative offset from the center used
  1641. * for connecting edges. The type of this value is numeric. Value is
  1642. * "routingCenterX".
  1643. */
  1644. STYLE_ROUTING_CENTER_X: 'routingCenterX',
  1645. /**
  1646. * Variable: STYLE_ROUTING_CENTER_Y
  1647. *
  1648. * Defines the key for the vertical routing center. Possible values are
  1649. * between -0.5 and 0.5. This is the relative offset from the center used
  1650. * for connecting edges. The type of this value is numeric. Value is
  1651. * "routingCenterY".
  1652. */
  1653. STYLE_ROUTING_CENTER_Y: 'routingCenterY',
  1654. /**
  1655. * Variable: FONT_BOLD
  1656. *
  1657. * Constant for bold fonts. Default is 1.
  1658. */
  1659. FONT_BOLD: 1,
  1660. /**
  1661. * Variable: FONT_ITALIC
  1662. *
  1663. * Constant for italic fonts. Default is 2.
  1664. */
  1665. FONT_ITALIC: 2,
  1666. /**
  1667. * Variable: FONT_UNDERLINE
  1668. *
  1669. * Constant for underlined fonts. Default is 4.
  1670. */
  1671. FONT_UNDERLINE: 4,
  1672. /**
  1673. * Variable: FONT_STRIKETHROUGH
  1674. *
  1675. * Constant for strikthrough fonts. Default is 8.
  1676. */
  1677. FONT_STRIKETHROUGH: 8,
  1678. /**
  1679. * Variable: SHAPE_RECTANGLE
  1680. *
  1681. * Name under which <mxRectangleShape> is registered in <mxCellRenderer>.
  1682. * Default is rectangle.
  1683. */
  1684. SHAPE_RECTANGLE: 'rectangle',
  1685. /**
  1686. * Variable: SHAPE_ELLIPSE
  1687. *
  1688. * Name under which <mxEllipse> is registered in <mxCellRenderer>.
  1689. * Default is ellipse.
  1690. */
  1691. SHAPE_ELLIPSE: 'ellipse',
  1692. /**
  1693. * Variable: SHAPE_DOUBLE_ELLIPSE
  1694. *
  1695. * Name under which <mxDoubleEllipse> is registered in <mxCellRenderer>.
  1696. * Default is doubleEllipse.
  1697. */
  1698. SHAPE_DOUBLE_ELLIPSE: 'doubleEllipse',
  1699. /**
  1700. * Variable: SHAPE_RHOMBUS
  1701. *
  1702. * Name under which <mxRhombus> is registered in <mxCellRenderer>.
  1703. * Default is rhombus.
  1704. */
  1705. SHAPE_RHOMBUS: 'rhombus',
  1706. /**
  1707. * Variable: SHAPE_LINE
  1708. *
  1709. * Name under which <mxLine> is registered in <mxCellRenderer>.
  1710. * Default is line.
  1711. */
  1712. SHAPE_LINE: 'line',
  1713. /**
  1714. * Variable: SHAPE_IMAGE
  1715. *
  1716. * Name under which <mxImageShape> is registered in <mxCellRenderer>.
  1717. * Default is image.
  1718. */
  1719. SHAPE_IMAGE: 'image',
  1720. /**
  1721. * Variable: SHAPE_ARROW
  1722. *
  1723. * Name under which <mxArrow> is registered in <mxCellRenderer>.
  1724. * Default is arrow.
  1725. */
  1726. SHAPE_ARROW: 'arrow',
  1727. /**
  1728. * Variable: SHAPE_ARROW_CONNECTOR
  1729. *
  1730. * Name under which <mxArrowConnector> is registered in <mxCellRenderer>.
  1731. * Default is arrowConnector.
  1732. */
  1733. SHAPE_ARROW_CONNECTOR: 'arrowConnector',
  1734. /**
  1735. * Variable: SHAPE_LABEL
  1736. *
  1737. * Name under which <mxLabel> is registered in <mxCellRenderer>.
  1738. * Default is label.
  1739. */
  1740. SHAPE_LABEL: 'label',
  1741. /**
  1742. * Variable: SHAPE_CYLINDER
  1743. *
  1744. * Name under which <mxCylinder> is registered in <mxCellRenderer>.
  1745. * Default is cylinder.
  1746. */
  1747. SHAPE_CYLINDER: 'cylinder',
  1748. /**
  1749. * Variable: SHAPE_SWIMLANE
  1750. *
  1751. * Name under which <mxSwimlane> is registered in <mxCellRenderer>.
  1752. * Default is swimlane.
  1753. */
  1754. SHAPE_SWIMLANE: 'swimlane',
  1755. /**
  1756. * Variable: SHAPE_CONNECTOR
  1757. *
  1758. * Name under which <mxConnector> is registered in <mxCellRenderer>.
  1759. * Default is connector.
  1760. */
  1761. SHAPE_CONNECTOR: 'connector',
  1762. /**
  1763. * Variable: SHAPE_ACTOR
  1764. *
  1765. * Name under which <mxActor> is registered in <mxCellRenderer>.
  1766. * Default is actor.
  1767. */
  1768. SHAPE_ACTOR: 'actor',
  1769. /**
  1770. * Variable: SHAPE_CLOUD
  1771. *
  1772. * Name under which <mxCloud> is registered in <mxCellRenderer>.
  1773. * Default is cloud.
  1774. */
  1775. SHAPE_CLOUD: 'cloud',
  1776. /**
  1777. * Variable: SHAPE_TRIANGLE
  1778. *
  1779. * Name under which <mxTriangle> is registered in <mxCellRenderer>.
  1780. * Default is triangle.
  1781. */
  1782. SHAPE_TRIANGLE: 'triangle',
  1783. /**
  1784. * Variable: SHAPE_HEXAGON
  1785. *
  1786. * Name under which <mxHexagon> is registered in <mxCellRenderer>.
  1787. * Default is hexagon.
  1788. */
  1789. SHAPE_HEXAGON: 'hexagon',
  1790. /**
  1791. * Variable: ARROW_CLASSIC
  1792. *
  1793. * Constant for classic arrow markers.
  1794. */
  1795. ARROW_CLASSIC: 'classic',
  1796. /**
  1797. * Variable: ARROW_CLASSIC_THIN
  1798. *
  1799. * Constant for thin classic arrow markers.
  1800. */
  1801. ARROW_CLASSIC_THIN: 'classicThin',
  1802. /**
  1803. * Variable: ARROW_BLOCK
  1804. *
  1805. * Constant for block arrow markers.
  1806. */
  1807. ARROW_BLOCK: 'block',
  1808. /**
  1809. * Variable: ARROW_BLOCK_THIN
  1810. *
  1811. * Constant for thin block arrow markers.
  1812. */
  1813. ARROW_BLOCK_THIN: 'blockThin',
  1814. /**
  1815. * Variable: ARROW_OPEN
  1816. *
  1817. * Constant for open arrow markers.
  1818. */
  1819. ARROW_OPEN: 'open',
  1820. /**
  1821. * Variable: ARROW_OPEN_THIN
  1822. *
  1823. * Constant for thin open arrow markers.
  1824. */
  1825. ARROW_OPEN_THIN: 'openThin',
  1826. /**
  1827. * Variable: ARROW_OVAL
  1828. *
  1829. * Constant for oval arrow markers.
  1830. */
  1831. ARROW_OVAL: 'oval',
  1832. /**
  1833. * Variable: ARROW_DIAMOND
  1834. *
  1835. * Constant for diamond arrow markers.
  1836. */
  1837. ARROW_DIAMOND: 'diamond',
  1838. /**
  1839. * Variable: ARROW_DIAMOND_THIN
  1840. *
  1841. * Constant for thin diamond arrow markers.
  1842. */
  1843. ARROW_DIAMOND_THIN: 'diamondThin',
  1844. /**
  1845. * Variable: ALIGN_LEFT
  1846. *
  1847. * Constant for left horizontal alignment. Default is left.
  1848. */
  1849. ALIGN_LEFT: 'left',
  1850. /**
  1851. * Variable: ALIGN_CENTER
  1852. *
  1853. * Constant for center horizontal alignment. Default is center.
  1854. */
  1855. ALIGN_CENTER: 'center',
  1856. /**
  1857. * Variable: ALIGN_RIGHT
  1858. *
  1859. * Constant for right horizontal alignment. Default is right.
  1860. */
  1861. ALIGN_RIGHT: 'right',
  1862. /**
  1863. * Variable: ALIGN_TOP
  1864. *
  1865. * Constant for top vertical alignment. Default is top.
  1866. */
  1867. ALIGN_TOP: 'top',
  1868. /**
  1869. * Variable: ALIGN_MIDDLE
  1870. *
  1871. * Constant for middle vertical alignment. Default is middle.
  1872. */
  1873. ALIGN_MIDDLE: 'middle',
  1874. /**
  1875. * Variable: ALIGN_BOTTOM
  1876. *
  1877. * Constant for bottom vertical alignment. Default is bottom.
  1878. */
  1879. ALIGN_BOTTOM: 'bottom',
  1880. /**
  1881. * Variable: DIRECTION_NORTH
  1882. *
  1883. * Constant for direction north. Default is north.
  1884. */
  1885. DIRECTION_NORTH: 'north',
  1886. /**
  1887. * Variable: DIRECTION_SOUTH
  1888. *
  1889. * Constant for direction south. Default is south.
  1890. */
  1891. DIRECTION_SOUTH: 'south',
  1892. /**
  1893. * Variable: DIRECTION_EAST
  1894. *
  1895. * Constant for direction east. Default is east.
  1896. */
  1897. DIRECTION_EAST: 'east',
  1898. /**
  1899. * Variable: DIRECTION_WEST
  1900. *
  1901. * Constant for direction west. Default is west.
  1902. */
  1903. DIRECTION_WEST: 'west',
  1904. /**
  1905. * Variable: TEXT_DIRECTION_DEFAULT
  1906. *
  1907. * Constant for text direction default. Default is an empty string. Use
  1908. * this value to use the default text direction of the operating system.
  1909. */
  1910. TEXT_DIRECTION_DEFAULT: '',
  1911. /**
  1912. * Variable: TEXT_DIRECTION_AUTO
  1913. *
  1914. * Constant for text direction automatic. Default is auto. Use this value
  1915. * to find the direction for a given text with <mxText.getAutoDirection>.
  1916. */
  1917. TEXT_DIRECTION_AUTO: 'auto',
  1918. /**
  1919. * Variable: TEXT_DIRECTION_LTR
  1920. *
  1921. * Constant for text direction left to right. Default is ltr. Use this
  1922. * value for left to right text direction.
  1923. */
  1924. TEXT_DIRECTION_LTR: 'ltr',
  1925. /**
  1926. * Variable: TEXT_DIRECTION_RTL
  1927. *
  1928. * Constant for text direction right to left. Default is rtl. Use this
  1929. * value for right to left text direction.
  1930. */
  1931. TEXT_DIRECTION_RTL: 'rtl',
  1932. /**
  1933. * Variable: DIRECTION_MASK_NONE
  1934. *
  1935. * Constant for no direction.
  1936. */
  1937. DIRECTION_MASK_NONE: 0,
  1938. /**
  1939. * Variable: DIRECTION_MASK_WEST
  1940. *
  1941. * Bitwise mask for west direction.
  1942. */
  1943. DIRECTION_MASK_WEST: 1,
  1944. /**
  1945. * Variable: DIRECTION_MASK_NORTH
  1946. *
  1947. * Bitwise mask for north direction.
  1948. */
  1949. DIRECTION_MASK_NORTH: 2,
  1950. /**
  1951. * Variable: DIRECTION_MASK_SOUTH
  1952. *
  1953. * Bitwise mask for south direction.
  1954. */
  1955. DIRECTION_MASK_SOUTH: 4,
  1956. /**
  1957. * Variable: DIRECTION_MASK_EAST
  1958. *
  1959. * Bitwise mask for east direction.
  1960. */
  1961. DIRECTION_MASK_EAST: 8,
  1962. /**
  1963. * Variable: DIRECTION_MASK_ALL
  1964. *
  1965. * Bitwise mask for all directions.
  1966. */
  1967. DIRECTION_MASK_ALL: 15,
  1968. /**
  1969. * Variable: ELBOW_VERTICAL
  1970. *
  1971. * Constant for elbow vertical. Default is horizontal.
  1972. */
  1973. ELBOW_VERTICAL: 'vertical',
  1974. /**
  1975. * Variable: ELBOW_HORIZONTAL
  1976. *
  1977. * Constant for elbow horizontal. Default is horizontal.
  1978. */
  1979. ELBOW_HORIZONTAL: 'horizontal',
  1980. /**
  1981. * Variable: EDGESTYLE_ELBOW
  1982. *
  1983. * Name of the elbow edge style. Can be used as a string value
  1984. * for the STYLE_EDGE style.
  1985. */
  1986. EDGESTYLE_ELBOW: 'elbowEdgeStyle',
  1987. /**
  1988. * Variable: EDGESTYLE_ENTITY_RELATION
  1989. *
  1990. * Name of the entity relation edge style. Can be used as a string value
  1991. * for the STYLE_EDGE style.
  1992. */
  1993. EDGESTYLE_ENTITY_RELATION: 'entityRelationEdgeStyle',
  1994. /**
  1995. * Variable: EDGESTYLE_LOOP
  1996. *
  1997. * Name of the loop edge style. Can be used as a string value
  1998. * for the STYLE_EDGE style.
  1999. */
  2000. EDGESTYLE_LOOP: 'loopEdgeStyle',
  2001. /**
  2002. * Variable: EDGESTYLE_SIDETOSIDE
  2003. *
  2004. * Name of the side to side edge style. Can be used as a string value
  2005. * for the STYLE_EDGE style.
  2006. */
  2007. EDGESTYLE_SIDETOSIDE: 'sideToSideEdgeStyle',
  2008. /**
  2009. * Variable: EDGESTYLE_TOPTOBOTTOM
  2010. *
  2011. * Name of the top to bottom edge style. Can be used as a string value
  2012. * for the STYLE_EDGE style.
  2013. */
  2014. EDGESTYLE_TOPTOBOTTOM: 'topToBottomEdgeStyle',
  2015. /**
  2016. * Variable: EDGESTYLE_ORTHOGONAL
  2017. *
  2018. * Name of the generic orthogonal edge style. Can be used as a string value
  2019. * for the STYLE_EDGE style.
  2020. */
  2021. EDGESTYLE_ORTHOGONAL: 'orthogonalEdgeStyle',
  2022. /**
  2023. * Variable: EDGESTYLE_SEGMENT
  2024. *
  2025. * Name of the generic segment edge style. Can be used as a string value
  2026. * for the STYLE_EDGE style.
  2027. */
  2028. EDGESTYLE_SEGMENT: 'segmentEdgeStyle',
  2029. /**
  2030. * Variable: PERIMETER_ELLIPSE
  2031. *
  2032. * Name of the ellipse perimeter. Can be used as a string value
  2033. * for the STYLE_PERIMETER style.
  2034. */
  2035. PERIMETER_ELLIPSE: 'ellipsePerimeter',
  2036. /**
  2037. * Variable: PERIMETER_RECTANGLE
  2038. *
  2039. * Name of the rectangle perimeter. Can be used as a string value
  2040. * for the STYLE_PERIMETER style.
  2041. */
  2042. PERIMETER_RECTANGLE: 'rectanglePerimeter',
  2043. /**
  2044. * Variable: PERIMETER_RHOMBUS
  2045. *
  2046. * Name of the rhombus perimeter. Can be used as a string value
  2047. * for the STYLE_PERIMETER style.
  2048. */
  2049. PERIMETER_RHOMBUS: 'rhombusPerimeter',
  2050. /**
  2051. * Variable: PERIMETER_HEXAGON
  2052. *
  2053. * Name of the hexagon perimeter. Can be used as a string value
  2054. * for the STYLE_PERIMETER style.
  2055. */
  2056. PERIMETER_HEXAGON: 'hexagonPerimeter',
  2057. /**
  2058. * Variable: PERIMETER_TRIANGLE
  2059. *
  2060. * Name of the triangle perimeter. Can be used as a string value
  2061. * for the STYLE_PERIMETER style.
  2062. */
  2063. PERIMETER_TRIANGLE: 'trianglePerimeter'
  2064. };
  2065. __mxOutput.mxConstants = typeof mxConstants !== 'undefined' ? mxConstants : undefined;