constants.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. /**
  3. * @filesource src/Resources/data/configuration.php
  4. *
  5. * All the class constants moved into a single file for compatibility
  6. * with the factory service class. This file is *required* for the library
  7. * to function.
  8. */
  9. /**
  10. * pBubble
  11. */
  12. define("BUBBLE_SHAPE_ROUND", 700001);
  13. define("BUBBLE_SHAPE_SQUARE", 700002);
  14. /**
  15. * pData
  16. */
  17. /* Axis configuration */
  18. define("AXIS_FORMAT_DEFAULT", 680001);
  19. define("AXIS_FORMAT_TIME", 680002);
  20. define("AXIS_FORMAT_DATE", 680003);
  21. define("AXIS_FORMAT_METRIC", 680004);
  22. define("AXIS_FORMAT_CURRENCY", 680005);
  23. define("AXIS_FORMAT_TRAFFIC", 680006);
  24. define("AXIS_FORMAT_CUSTOM", 680007);
  25. /* Axis position */
  26. define("AXIS_POSITION_LEFT", 681001);
  27. define("AXIS_POSITION_RIGHT", 681002);
  28. define("AXIS_POSITION_TOP", 681001);
  29. define("AXIS_POSITION_BOTTOM", 681002);
  30. /* Families of data points */
  31. define("SERIE_SHAPE_FILLEDCIRCLE", 681011);
  32. define("SERIE_SHAPE_FILLEDTRIANGLE", 681012);
  33. define("SERIE_SHAPE_FILLEDSQUARE", 681013);
  34. define("SERIE_SHAPE_FILLEDDIAMOND", 681017);
  35. define("SERIE_SHAPE_CIRCLE", 681014);
  36. define("SERIE_SHAPE_TRIANGLE", 681015);
  37. define("SERIE_SHAPE_SQUARE", 681016);
  38. define("SERIE_SHAPE_DIAMOND", 681018);
  39. /* Axis position */
  40. define("AXIS_X", 682001);
  41. define("AXIS_Y", 682002);
  42. /* Define value limits */
  43. define("ABSOLUTE_MIN", -10000000000000);
  44. define("ABSOLUTE_MAX", 10000000000000);
  45. /* Replacement to the PHP null keyword */
  46. define("VOID", 0.123456789);
  47. /* Euro symbol for GD fonts */
  48. define("EURO_SYMBOL", utf8_encode("&#8364;"));
  49. /**
  50. * pDraw
  51. */
  52. define("DIRECTION_VERTICAL", 690001);
  53. define("DIRECTION_HORIZONTAL", 690002);
  54. define("SCALE_POS_LEFTRIGHT", 690101);
  55. define("SCALE_POS_TOPBOTTOM", 690102);
  56. define("SCALE_MODE_FLOATING", 690201);
  57. define("SCALE_MODE_START0", 690202);
  58. define("SCALE_MODE_ADDALL", 690203);
  59. define("SCALE_MODE_ADDALL_START0", 690204);
  60. define("SCALE_MODE_MANUAL", 690205);
  61. define("SCALE_SKIP_NONE", 690301);
  62. define("SCALE_SKIP_SAME", 690302);
  63. define("SCALE_SKIP_NUMBERS", 690303);
  64. define("TEXT_ALIGN_TOPLEFT", 690401);
  65. define("TEXT_ALIGN_TOPMIDDLE", 690402);
  66. define("TEXT_ALIGN_TOPRIGHT", 690403);
  67. define("TEXT_ALIGN_MIDDLELEFT", 690404);
  68. define("TEXT_ALIGN_MIDDLEMIDDLE", 690405);
  69. define("TEXT_ALIGN_MIDDLERIGHT", 690406);
  70. define("TEXT_ALIGN_BOTTOMLEFT", 690407);
  71. define("TEXT_ALIGN_BOTTOMMIDDLE", 690408);
  72. define("TEXT_ALIGN_BOTTOMRIGHT", 690409);
  73. define("POSITION_TOP", 690501);
  74. define("POSITION_BOTTOM", 690502);
  75. define("LABEL_POS_LEFT", 690601);
  76. define("LABEL_POS_CENTER", 690602);
  77. define("LABEL_POS_RIGHT", 690603);
  78. define("LABEL_POS_TOP", 690604);
  79. define("LABEL_POS_BOTTOM", 690605);
  80. define("LABEL_POS_INSIDE", 690606);
  81. define("LABEL_POS_OUTSIDE", 690607);
  82. define("ORIENTATION_HORIZONTAL", 690701);
  83. define("ORIENTATION_VERTICAL", 690702);
  84. define("ORIENTATION_AUTO", 690703);
  85. define("LEGEND_NOBORDER", 690800);
  86. define("LEGEND_BOX", 690801);
  87. define("LEGEND_ROUND", 690802);
  88. define("LEGEND_VERTICAL", 690901);
  89. define("LEGEND_HORIZONTAL", 690902);
  90. define("LEGEND_FAMILY_BOX", 691051);
  91. define("LEGEND_FAMILY_CIRCLE", 691052);
  92. define("LEGEND_FAMILY_LINE", 691053);
  93. define("DISPLAY_AUTO", 691001);
  94. define("DISPLAY_MANUAL", 691002);
  95. define("LABELING_ALL", 691011);
  96. define("LABELING_DIFFERENT", 691012);
  97. define("BOUND_MIN", 691021);
  98. define("BOUND_MAX", 691022);
  99. define("BOUND_BOTH", 691023);
  100. define("BOUND_LABEL_POS_TOP", 691031);
  101. define("BOUND_LABEL_POS_BOTTOM", 691032);
  102. define("BOUND_LABEL_POS_AUTO", 691033);
  103. define("CAPTION_LEFT_TOP", 691041);
  104. define("CAPTION_RIGHT_BOTTOM", 691042);
  105. define("GRADIENT_SIMPLE", 691051);
  106. define("GRADIENT_EFFECT_CAN", 691052);
  107. define("LABEL_TITLE_NOBACKGROUND", 691061);
  108. define("LABEL_TITLE_BACKGROUND", 691062);
  109. define("LABEL_POINT_NONE", 691071);
  110. define("LABEL_POINT_CIRCLE", 691072);
  111. define("LABEL_POINT_BOX", 691073);
  112. define("ZONE_NAME_ANGLE_AUTO", 691081);
  113. define("PI", 3.14159265);
  114. define("ALL", 69);
  115. define("NONE", 31);
  116. define("AUTO", 690000);
  117. define("OUT_OF_SIGHT", -10000000000000);
  118. /**
  119. * pImage
  120. */
  121. /* Image map handling */
  122. define("IMAGE_MAP_STORAGE_FILE", 680001);
  123. define("IMAGE_MAP_STORAGE_SESSION", 680002);
  124. /* Last generated chart layout */
  125. define("CHART_LAST_LAYOUT_REGULAR", 680011);
  126. define("CHART_LAST_LAYOUT_STACKED", 680012);
  127. /* ImageMap string delimiter */
  128. define("IMAGE_MAP_DELIMITER", chr(1));
  129. /**
  130. * pIndicator
  131. */
  132. define("INDICATOR_CAPTION_DEFAULT", 700001);
  133. define("INDICATOR_CAPTION_EXTENDED", 700002);
  134. define("INDICATOR_CAPTION_INSIDE", 700011);
  135. define("INDICATOR_CAPTION_BOTTOM", 700012);
  136. define("INDICATOR_VALUE_BUBBLE", 700021);
  137. define("INDICATOR_VALUE_LABEL", 700022);
  138. /**
  139. * pPie
  140. */
  141. /* Class return codes */
  142. define("PIE_NO_ABSCISSA", 140001);
  143. define("PIE_NO_DATASERIE", 140002);
  144. define("PIE_SUMISNULL", 140003);
  145. define("PIE_RENDERED", 140000);
  146. define("PIE_LABEL_COLOR_AUTO", 140010);
  147. define("PIE_LABEL_COLOR_MANUAL", 140011);
  148. define("PIE_VALUE_NATURAL", 140020);
  149. define("PIE_VALUE_PERCENTAGE", 140021);
  150. define("PIE_VALUE_INSIDE", 140030);
  151. define("PIE_VALUE_OUTSIDE", 140031);
  152. /**
  153. * pRadar
  154. */
  155. define("SEGMENT_HEIGHT_AUTO", 690001);
  156. define("RADAR_LAYOUT_STAR", 690011);
  157. define("RADAR_LAYOUT_CIRCLE", 690012);
  158. define("RADAR_LABELS_ROTATED", 690021);
  159. define("RADAR_LABELS_HORIZONTAL", 690022);
  160. /**
  161. * pScatter
  162. */
  163. define("SCATTER_MISSING_X_SERIE", 190001);
  164. define("SCATTER_MISSING_Y_SERIE", 190002);
  165. /**
  166. * pSplit
  167. */
  168. define("TEXT_POS_TOP", 690001);
  169. define("TEXT_POS_RIGHT", 690002);
  170. /**
  171. * pSpring
  172. */
  173. define("NODE_TYPE_FREE", 690001);
  174. define("NODE_TYPE_CENTRAL", 690002);
  175. define("NODE_SHAPE_CIRCLE", 690011);
  176. define("NODE_SHAPE_TRIANGLE", 690012);
  177. define("NODE_SHAPE_SQUARE", 690013);
  178. define("ALGORITHM_RANDOM", 690021);
  179. define("ALGORITHM_WEIGHTED", 690022);
  180. define("ALGORITHM_CIRCULAR", 690023);
  181. define("ALGORITHM_CENTRAL", 690024);
  182. define("LABEL_CLASSIC", 690031);
  183. define("LABEL_LIGHT", 690032);
  184. /**
  185. * pStock
  186. */
  187. define("STOCK_MISSING_SERIE", 180001);
  188. /**
  189. * pSurface
  190. */
  191. define("UNKNOWN", 0.123456789);
  192. define("IGNORED", -1);
  193. define("LABEL_POSITION_LEFT", 880001);
  194. define("LABEL_POSITION_RIGHT", 880002);
  195. define("LABEL_POSITION_TOP", 880003);
  196. define("LABEL_POSITION_BOTTOM", 880004);