region-index.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. export const simpleConfig = `<View>
  2. <Text name="text" value="$text" />
  3. <Labels name="label" toName="text">
  4. <Label value="Label 1" />
  5. <Label value="Label 2" />
  6. <Label value="Label 3" />
  7. </Labels>
  8. </View>`;
  9. export const simpleData = {
  10. text: "It is just a simple text for testing.",
  11. };
  12. export const resultWithRelations = [
  13. {
  14. value: {
  15. start: 6,
  16. end: 10,
  17. text: "just",
  18. labels: ["Label 1"],
  19. },
  20. id: "ioyKUe3_0j",
  21. from_name: "label",
  22. to_name: "text",
  23. type: "labels",
  24. origin: "manual",
  25. },
  26. {
  27. value: {
  28. start: 13,
  29. end: 19,
  30. text: "simple",
  31. labels: ["Label 2"],
  32. },
  33. id: "_PKljfdlff",
  34. from_name: "label",
  35. to_name: "text",
  36. type: "labels",
  37. origin: "manual",
  38. },
  39. {
  40. value: {
  41. start: 29,
  42. end: 36,
  43. text: "testing",
  44. labels: ["Label 3"],
  45. },
  46. id: "6_7hMzDv9H",
  47. from_name: "label",
  48. to_name: "text",
  49. type: "labels",
  50. origin: "manual",
  51. },
  52. {
  53. from_id: "ioyKUe3_0j",
  54. to_id: "6_7hMzDv9H",
  55. type: "relation",
  56. direction: "right",
  57. },
  58. ];
  59. export const panelState = {
  60. panelData: {
  61. "info-history": {
  62. order: 1,
  63. top: 0,
  64. left: 0,
  65. relativeLeft: 0,
  66. relativeTop: 0,
  67. zIndex: 10,
  68. width: 320,
  69. height: 385,
  70. visible: true,
  71. detached: false,
  72. alignment: "right",
  73. maxHeight: 500,
  74. panelViews: [
  75. {
  76. name: "info",
  77. title: "Info",
  78. component: { isMobxInjector: true, wrappedComponent: { compare: null } },
  79. active: true,
  80. },
  81. {
  82. name: "history",
  83. title: "History",
  84. component: { isMobxInjector: true, wrappedComponent: { compare: null } },
  85. active: false,
  86. },
  87. ],
  88. },
  89. "regions-relations": {
  90. order: 2,
  91. top: 385,
  92. left: 0,
  93. relativeLeft: 0,
  94. relativeTop: 0,
  95. zIndex: 10,
  96. width: 320,
  97. height: 385,
  98. visible: true,
  99. detached: false,
  100. alignment: "right",
  101. maxHeight: 500,
  102. panelViews: [
  103. { name: "regions", title: "Regions", component: { compare: null }, active: false },
  104. {
  105. name: "relations",
  106. title: "Relations",
  107. component: { isMobxInjector: true, wrappedComponent: { compare: null } },
  108. active: true,
  109. },
  110. ],
  111. },
  112. },
  113. collapsedSide: { left: false, right: false },
  114. };
  115. export const labelStudio_settings = {
  116. enableHotkeys: true,
  117. enablePanelHotkeys: true,
  118. enableTooltips: true,
  119. enableLabelTooltips: true,
  120. continuousLabeling: false,
  121. selectAfterCreate: false,
  122. fullscreen: false,
  123. bottomSidePanel: false,
  124. sidePanelMode: "SIDEPANEL_MODE_REGIONS",
  125. imageFullSize: false,
  126. enableAutoSave: false,
  127. showLabels: true,
  128. showLineNumbers: false,
  129. showAnnotationsPanel: true,
  130. showPredictionsPanel: true,
  131. preserveSelectedTool: true,
  132. enableSmoothing: true,
  133. videoHopSize: 10,
  134. isDestroying: false,
  135. };