ketcher-react 2.2.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/LICENSE +1 -1
  2. package/dist/Editor.d.ts +3 -0
  3. package/dist/contexts/appContext.d.ts +6 -0
  4. package/dist/contexts/index.d.ts +3 -2
  5. package/dist/hooks/index.d.ts +1 -0
  6. package/dist/hooks/useAppContext.d.ts +1 -0
  7. package/dist/hooks/useResizeObserver.d.ts +1 -1
  8. package/dist/hooks/useSettingsContext.d.ts +1 -1
  9. package/dist/index.css +3 -2
  10. package/dist/index.css.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +16256 -21706
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +16169 -21618
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/api.d.ts +2 -2
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +1 -1
  18. package/dist/script/editor/Editor.d.ts +11 -4
  19. package/dist/script/editor/actions/bond.d.ts +24 -24
  20. package/dist/script/editor/actions/reaction.d.ts +1 -1
  21. package/dist/script/editor/actions/text.d.ts +6 -0
  22. package/dist/script/editor/actions/utils.d.ts +1 -2
  23. package/dist/script/editor/operations/CanvasLoad.d.ts +1 -1
  24. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +1 -1
  25. package/dist/script/editor/operations/FragmentStereoFlag.d.ts +3 -5
  26. package/dist/script/editor/operations/LoopMove.d.ts +1 -1
  27. package/dist/script/editor/operations/OperationType.d.ts +5 -0
  28. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +41 -0
  29. package/dist/script/{chem/struct/simpleObject.d.ts → editor/operations/Text/TextMove.d.ts} +12 -15
  30. package/dist/script/{util/pool.d.ts → editor/operations/Text/TextUpdate.d.ts} +14 -10
  31. package/dist/script/editor/operations/Text/index.d.ts +3 -0
  32. package/dist/script/editor/operations/atom/AtomAttr.d.ts +1 -1
  33. package/dist/script/editor/operations/atom/AtomMove.d.ts +1 -1
  34. package/dist/script/editor/operations/base.d.ts +2 -2
  35. package/dist/script/editor/operations/bond/BondAttr.d.ts +1 -1
  36. package/dist/script/editor/operations/bond/BondMove.d.ts +1 -1
  37. package/dist/script/editor/operations/bond/index.d.ts +15 -0
  38. package/dist/script/{util/pile.d.ts → editor/operations/calcimplicitH.d.ts} +8 -10
  39. package/dist/script/editor/operations/fragment.d.ts +1 -1
  40. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +1 -1
  41. package/dist/script/editor/operations/index.d.ts +2 -0
  42. package/dist/script/editor/operations/rxn/index.d.ts +18 -1
  43. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +1 -1
  44. package/dist/script/editor/operations/sgroup/index.d.ts +1 -1
  45. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -2
  46. package/dist/script/editor/operations/simpleObject.d.ts +9 -11
  47. package/dist/script/editor/shared/action.d.ts +2 -2
  48. package/dist/script/editor/shared/utils.d.ts +2 -2
  49. package/dist/script/editor/tool/attach.d.ts +4 -1
  50. package/dist/script/editor/tool/enhanced-stereo.d.ts +2 -1
  51. package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
  52. package/dist/script/editor/tool/helper/locate.d.ts +2 -0
  53. package/dist/script/editor/tool/index.d.ts +2 -0
  54. package/dist/script/editor/tool/reactionarrow.d.ts +4 -4
  55. package/dist/script/editor/tool/rotate.d.ts +1 -1
  56. package/dist/script/editor/tool/text.d.ts +27 -0
  57. package/dist/script/editor/utils/elementOffset.d.ts +1 -1
  58. package/dist/script/index.d.ts +1 -1
  59. package/dist/script/ketcher.d.ts +1 -2
  60. package/dist/script/render/draw.d.ts +13 -7
  61. package/dist/script/render/index.d.ts +5 -5
  62. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +35 -0
  63. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +28 -0
  64. package/dist/script/render/restruct/ReObject.d.ts +32 -0
  65. package/dist/script/render/restruct/ReSimpleObject.d.ts +40 -0
  66. package/dist/script/render/restruct/ReStruct.d.ts +110 -0
  67. package/dist/script/render/restruct/ReText.d.ts +38 -0
  68. package/dist/script/render/restruct/index.d.ts +5 -84
  69. package/dist/script/render/restruct/reatom.d.ts +41 -17
  70. package/dist/script/render/restruct/rebond.d.ts +36 -26
  71. package/dist/script/render/restruct/redatasgroupdata.d.ts +3 -7
  72. package/dist/script/render/restruct/refrag.d.ts +3 -7
  73. package/dist/script/render/restruct/reloop.d.ts +4 -8
  74. package/dist/script/render/restruct/rergroup.d.ts +4 -7
  75. package/dist/script/render/restruct/rerxnarrow.d.ts +3 -7
  76. package/dist/script/render/restruct/rerxnplus.d.ts +3 -7
  77. package/dist/script/render/restruct/resgroup.d.ts +3 -6
  78. package/dist/script/render/restruct/visel.d.ts +1 -2
  79. package/dist/script/render/util.d.ts +1 -1
  80. package/dist/script/ui/action/action.types.d.ts +1 -1
  81. package/dist/script/ui/action/atoms.d.ts +1 -1
  82. package/dist/script/ui/action/debug.d.ts +2 -2
  83. package/dist/script/ui/action/index.d.ts +392 -2
  84. package/dist/script/ui/action/templates.d.ts +10 -1
  85. package/dist/script/ui/action/tools.d.ts +16 -1
  86. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +12 -0
  87. package/dist/script/{chem/molfile/molfile.test.d.ts → ui/component/form/colorPicker/ColorPicker.test.d.ts} +0 -0
  88. package/dist/script/ui/component/view/savebutton.d.ts +1 -5
  89. package/dist/script/ui/data/convert/structConverter.d.ts +3 -3
  90. package/dist/script/ui/data/convert/structconv.d.ts +6 -4
  91. package/dist/script/ui/data/schema/options-schema.d.ts +25 -167
  92. package/dist/script/ui/data/schema/struct-schema.d.ts +20 -2
  93. package/dist/script/ui/data/templates.d.ts +1 -1
  94. package/dist/script/ui/dialog/index.d.ts +43 -7
  95. package/dist/script/ui/dialog/template/TemplateLib.d.ts +1 -1
  96. package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -1
  97. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +2 -0
  98. package/dist/script/ui/state/constants.d.ts +7 -0
  99. package/dist/script/ui/state/editor/index.d.ts +1 -2
  100. package/dist/script/ui/state/modal/form.d.ts +10 -2
  101. package/dist/script/ui/state/options/index.d.ts +4 -3
  102. package/dist/script/ui/state/shared.d.ts +1 -1
  103. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +6 -8
  104. package/dist/script/ui/views/components/Dialog/index.d.ts +1 -1
  105. package/dist/script/ui/views/components/index.d.ts +1 -2
  106. package/dist/script/ui/views/modal/Modal.d.ts +4 -7
  107. package/dist/script/{format/chemGraph/toGraph/simpleObjectToGraph.d.ts → ui/views/modal/components/Text/Text.d.ts} +4 -5
  108. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +14 -0
  109. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +1 -0
  110. package/dist/script/{util/scale.d.ts → ui/views/modal/components/Text/index.d.ts} +2 -8
  111. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +18 -0
  112. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +24 -2
  113. package/dist/script/ui/views/modal/components/document/Open/index.d.ts +1 -1
  114. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +4 -0
  115. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +16 -1
  116. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +35 -13
  117. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +20 -0
  118. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +36 -0
  119. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +6 -0
  120. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  121. package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  122. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +20 -0
  123. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +20 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  128. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +20 -0
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +10 -0
  130. package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +20 -0
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +28 -0
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
  134. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  135. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  136. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  137. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  138. package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
  139. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +2 -1
  140. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -1
  141. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -1
  142. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
  144. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
  145. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  146. package/package.json +7 -3
  147. package/dist/script/chem/element-color.d.ts +0 -2
  148. package/dist/script/chem/element.d.ts +0 -57
  149. package/dist/script/chem/generics.d.ts +0 -5
  150. package/dist/script/chem/molfile/common.d.ts +0 -34
  151. package/dist/script/chem/molfile/index.d.ts +0 -10
  152. package/dist/script/chem/molfile/molfile.d.ts +0 -47
  153. package/dist/script/chem/molfile/molfileFormat.d.ts +0 -1
  154. package/dist/script/chem/molfile/parseSGroup.d.ts +0 -42
  155. package/dist/script/chem/molfile/utils.d.ts +0 -66
  156. package/dist/script/chem/molfile/v2000.d.ts +0 -10
  157. package/dist/script/chem/molfile/v3000.d.ts +0 -10
  158. package/dist/script/chem/sdf.d.ts +0 -10
  159. package/dist/script/chem/smiles/cis_trans.d.ts +0 -25
  160. package/dist/script/chem/smiles/dfs.d.ts +0 -53
  161. package/dist/script/chem/smiles/index.d.ts +0 -5
  162. package/dist/script/chem/smiles/stereocenters.d.ts +0 -26
  163. package/dist/script/chem/struct/atom.d.ts +0 -66
  164. package/dist/script/chem/struct/atomlist.d.ts +0 -10
  165. package/dist/script/chem/struct/bond.d.ts +0 -72
  166. package/dist/script/chem/struct/fragment.d.ts +0 -50
  167. package/dist/script/chem/struct/index.d.ts +0 -137
  168. package/dist/script/chem/struct/rgroup.d.ts +0 -19
  169. package/dist/script/chem/struct/sgforest.d.ts +0 -42
  170. package/dist/script/chem/struct/sgroup.d.ts +0 -68
  171. package/dist/script/format/chemGraph/convertStruct.d.ts +0 -2
  172. package/dist/script/format/chemGraph/fromGraph/moleculeToStruct.d.ts +0 -10
  173. package/dist/script/format/chemGraph/fromGraph/rgroupToStruct.d.ts +0 -3
  174. package/dist/script/format/chemGraph/fromGraph/rxnToStruct.d.ts +0 -1
  175. package/dist/script/format/chemGraph/fromGraph/simpleObjectToStruct.d.ts +0 -1
  176. package/dist/script/format/chemGraph/index.d.ts +0 -13
  177. package/dist/script/format/chemGraph/toGraph/headerToGraph.d.ts +0 -1
  178. package/dist/script/format/chemGraph/toGraph/moleculeToGraph.d.ts +0 -4
  179. package/dist/script/format/chemGraph/toGraph/prepare.d.ts +0 -14
  180. package/dist/script/format/chemGraph/toGraph/rgroupToGraph.d.ts +0 -5
  181. package/dist/script/format/chemGraph/toGraph/rxnToGraph.d.ts +0 -10
  182. package/dist/script/format/graphValidator.d.ts +0 -1
  183. package/dist/script/format/schemes/moleculeSchema.d.ts +0 -596
  184. package/dist/script/format/schemes/rgroupSchema.d.ts +0 -60
  185. package/dist/script/format/schemes/rootSchema.d.ts +0 -102
  186. package/dist/script/format/schemes/rxnSchemas.d.ts +0 -58
  187. package/dist/script/format/schemes/simpleObjectSchema.d.ts +0 -45
  188. package/dist/script/format/utils.d.ts +0 -1
  189. package/dist/script/render/restruct/reenhancedflag.d.ts +0 -15
  190. package/dist/script/render/restruct/reobject.d.ts +0 -15
  191. package/dist/script/render/restruct/resimpleobject.d.ts +0 -23
  192. package/dist/script/ui/dialog/toolbox/atom.d.ts +0 -2
  193. package/dist/script/ui/dialog/toolbox/attach.d.ts +0 -2
  194. package/dist/script/ui/dialog/toolbox/automap.d.ts +0 -18
  195. package/dist/script/ui/dialog/toolbox/bond.d.ts +0 -2
  196. package/dist/script/ui/dialog/toolbox/enhanced-stereo.d.ts +0 -2
  197. package/dist/script/ui/dialog/toolbox/rgroup-logic.d.ts +0 -2
  198. package/dist/script/util/banner.d.ts +0 -0
  199. package/dist/script/util/box2abs.d.ts +0 -23
  200. package/dist/script/util/vec2.d.ts +0 -75
@@ -1,102 +0,0 @@
1
- export default graphSchema;
2
- declare namespace graphSchema {
3
- export const id: string;
4
- export const type: string;
5
- export const required: string[];
6
- export namespace properties {
7
- namespace header {
8
- const $ref: string;
9
- }
10
- namespace root {
11
- const $ref_1: string;
12
- export { $ref_1 as $ref };
13
- }
14
- }
15
- export const patternProperties: {
16
- '^mol': {
17
- $ref: string;
18
- };
19
- '^rg': {
20
- $ref: string;
21
- };
22
- };
23
- export { rootSchema as root };
24
- export { headerSchema as header };
25
- }
26
- declare namespace rootSchema {
27
- const id_1: string;
28
- export { id_1 as id };
29
- const required_1: string[];
30
- export { required_1 as required };
31
- export namespace properties_1 {
32
- namespace nodes {
33
- const type_1: string;
34
- export { type_1 as type };
35
- export namespace items {
36
- const oneOf: ({
37
- $ref: string;
38
- type?: undefined;
39
- required?: undefined;
40
- properties?: undefined;
41
- } | {
42
- type: string;
43
- required: string[];
44
- properties: {
45
- $ref: {
46
- type: string;
47
- };
48
- };
49
- $ref?: undefined;
50
- })[];
51
- }
52
- }
53
- namespace edges {
54
- const type_2: string;
55
- export { type_2 as type };
56
- export namespace items_1 {
57
- const oneOf_1: {
58
- properties: {
59
- $refs: {
60
- type: string;
61
- maxItems: number;
62
- items: {
63
- type: string;
64
- };
65
- };
66
- };
67
- }[];
68
- export { oneOf_1 as oneOf };
69
- }
70
- export { items_1 as items };
71
- }
72
- }
73
- export { properties_1 as properties };
74
- }
75
- declare namespace headerSchema {
76
- export const title: string;
77
- const type_3: string;
78
- export { type_3 as type };
79
- export namespace properties_2 {
80
- namespace moleculeName {
81
- const title_1: string;
82
- export { title_1 as title };
83
- const type_4: string;
84
- export { type_4 as type };
85
- const _default: string;
86
- export { _default as default };
87
- }
88
- namespace creatorProgram {
89
- const title_2: string;
90
- export { title_2 as title };
91
- const type_5: string;
92
- export { type_5 as type };
93
- }
94
- namespace comment {
95
- const title_3: string;
96
- export { title_3 as title };
97
- const type_6: string;
98
- export { type_6 as type };
99
- }
100
- }
101
- export { properties_2 as properties };
102
- }
@@ -1,58 +0,0 @@
1
- export namespace plusSchema {
2
- const id: string;
3
- const type: string;
4
- const required: string[];
5
- namespace properties {
6
- export namespace type_1 {
7
- const _enum: string[];
8
- export { _enum as enum };
9
- }
10
- export { type_1 as type };
11
- export namespace location {
12
- const type_2: string;
13
- export { type_2 as type };
14
- export namespace items {
15
- const type_3: string;
16
- export { type_3 as type };
17
- export const precision: number;
18
- }
19
- }
20
- export namespace prop {
21
- const type_4: string;
22
- export { type_4 as type };
23
- }
24
- }
25
- }
26
- export namespace arrowSchema {
27
- const id_1: string;
28
- export { id_1 as id };
29
- const type_5: string;
30
- export { type_5 as type };
31
- const required_1: string[];
32
- export { required_1 as required };
33
- export namespace properties_1 {
34
- export namespace type_6 {
35
- const _enum_1: string[];
36
- export { _enum_1 as enum };
37
- }
38
- export { type_6 as type };
39
- export namespace location_1 {
40
- const type_7: string;
41
- export { type_7 as type };
42
- export namespace items_1 {
43
- const type_8: string;
44
- export { type_8 as type };
45
- const precision_1: number;
46
- export { precision_1 as precision };
47
- }
48
- export { items_1 as items };
49
- }
50
- export { location_1 as location };
51
- export namespace prop_1 {
52
- const type_9: string;
53
- export { type_9 as type };
54
- }
55
- export { prop_1 as prop };
56
- }
57
- export { properties_1 as properties };
58
- }
@@ -1,45 +0,0 @@
1
- export default schema;
2
- declare namespace schema {
3
- const id: string;
4
- const type: string;
5
- const allOf: {
6
- properties: {
7
- type: {
8
- enum: string[];
9
- };
10
- data: {
11
- $ref: string;
12
- };
13
- };
14
- required: string[];
15
- }[];
16
- namespace definitions {
17
- namespace simpleObject {
18
- const type_1: string;
19
- export { type_1 as type };
20
- export namespace properties {
21
- namespace mode {
22
- const type_2: string;
23
- export { type_2 as type };
24
- }
25
- namespace pos {
26
- const type_3: string;
27
- export { type_3 as type };
28
- export const items: {
29
- type: string;
30
- properties: {
31
- x: {
32
- type: string;
33
- };
34
- y: {
35
- type: string;
36
- };
37
- };
38
- required: string[];
39
- }[];
40
- }
41
- }
42
- export const required: string[];
43
- }
44
- }
45
- }
@@ -1 +0,0 @@
1
- export function ifDef(target: any, key: any, value: any, defaultValue: any): void;
@@ -1,15 +0,0 @@
1
- export default ReEnhancedFlag;
2
- declare function ReEnhancedFlag(flag: any, pos: any): void;
3
- declare class ReEnhancedFlag {
4
- constructor(flag: any, pos: any);
5
- flag: any;
6
- pp: any;
7
- highlightPath(render: any): any;
8
- drawHighlight(render: any): any;
9
- makeSelectionPlate(restruct: any, paper: any, options: any): any;
10
- show(restruct: any, id: any, options: any): void;
11
- path: any;
12
- }
13
- declare namespace ReEnhancedFlag {
14
- function isSelectable(): boolean;
15
- }
@@ -1,15 +0,0 @@
1
- export default ReObject;
2
- declare function ReObject(): void;
3
- declare class ReObject {
4
- init(viselType: any): void;
5
- visel: Visel | undefined;
6
- highlight: any;
7
- highlighting: any;
8
- selected: boolean | undefined;
9
- selectionPlate: any;
10
- getVBoxObj(render: any): any;
11
- setHighlight(highLight: any, render: any): void;
12
- drawHighlight(): void;
13
- makeSelectionPlate(): void;
14
- }
15
- import Visel from "./visel";
@@ -1,23 +0,0 @@
1
- export default ReSimpleObject;
2
- declare function ReSimpleObject(simpleObject: any): void;
3
- declare class ReSimpleObject {
4
- constructor(simpleObject: any);
5
- item: any;
6
- calcDistance(p: any, s: any): {
7
- minDist: number;
8
- refPoint: any;
9
- };
10
- getReferencePointDistance(p: any): any;
11
- getReferencePoints(): Vec2[];
12
- highlightPath(render: any): {
13
- path: any;
14
- stylesApplied: boolean;
15
- }[];
16
- drawHighlight(render: any): any[];
17
- makeSelectionPlate(restruct: any, paper: any, styles: any): any;
18
- show(restruct: any, id: any, options: any): void;
19
- }
20
- declare namespace ReSimpleObject {
21
- function isSelectable(): boolean;
22
- }
23
- import Vec2 from "../../util/vec2";
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
@@ -1,18 +0,0 @@
1
- export namespace automapSchema {
2
- const title: string;
3
- const type: string;
4
- const required: string[];
5
- namespace properties {
6
- namespace mode {
7
- const title_1: string;
8
- export { title_1 as title };
9
- const _enum: string[];
10
- export { _enum as enum };
11
- export const enumNames: string[];
12
- const _default: string;
13
- export { _default as default };
14
- }
15
- }
16
- }
17
- declare var _default: any;
18
- export default _default;
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
File without changes
@@ -1,23 +0,0 @@
1
- export default Box2Abs;
2
- declare function Box2Abs(...args: any[]): Error | undefined;
3
- declare class Box2Abs {
4
- constructor(...args: any[]);
5
- p0: any;
6
- p1: any;
7
- toString(): string;
8
- clone(): Box2Abs;
9
- extend(lp: Vec2, rb: any): Box2Abs;
10
- include(p: Vec2): Box2Abs;
11
- contains(p: Vec2, ext?: number): boolean;
12
- translate(d: Vec2): Box2Abs;
13
- transform(f: (arg0: Vec2, arg1: object) => Vec2, options: object): Box2Abs;
14
- sz(): any;
15
- centre(): any;
16
- pos(): any;
17
- }
18
- declare namespace Box2Abs {
19
- function fromRelBox(relBox: any): Box2Abs;
20
- function union(b1: Box2Abs, b2: Box2Abs): Box2Abs;
21
- function segmentIntersection(a: Vec2, b: Vec2, c: Vec2, d: Vec2): boolean;
22
- }
23
- import Vec2 from "./vec2";
@@ -1,75 +0,0 @@
1
- export default Vec2;
2
- /****************************************************************************
3
- * Copyright 2020 EPAM Systems
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- ***************************************************************************/
17
- declare function Vec2(x: any, y: any, z: any, ...args: any[]): void;
18
- declare class Vec2 {
19
- /****************************************************************************
20
- * Copyright 2020 EPAM Systems
21
- *
22
- * Licensed under the Apache License, Version 2.0 (the "License");
23
- * you may not use this file except in compliance with the License.
24
- * You may obtain a copy of the License at
25
- *
26
- * http://www.apache.org/licenses/LICENSE-2.0
27
- *
28
- * Unless required by applicable law or agreed to in writing, software
29
- * distributed under the License is distributed on an "AS IS" BASIS,
30
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
- * See the License for the specific language governing permissions and
32
- * limitations under the License.
33
- ***************************************************************************/
34
- constructor(x: any, y: any, z: any, ...args: any[]);
35
- x: number;
36
- y: number;
37
- z: number;
38
- length(): number;
39
- equals(v: any): boolean;
40
- add(v: any): Vec2;
41
- add_(v: any): void;
42
- get_xy0(): Vec2;
43
- sub(v: any): Vec2;
44
- scaled(s: any): Vec2;
45
- negated(): Vec2;
46
- yComplement(y1: any): Vec2;
47
- addScaled(v: any, f: any): Vec2;
48
- normalized(): Vec2;
49
- normalize(): boolean;
50
- turnLeft(): Vec2;
51
- coordStr(): string;
52
- toString(): string;
53
- max(v: any): any;
54
- min(v: any): any;
55
- ceil(): Vec2;
56
- floor(): Vec2;
57
- rotate(angle: any): Vec2;
58
- rotateSC(si: any, co: any): Vec2;
59
- oxAngle(): number;
60
- }
61
- declare namespace Vec2 {
62
- const ZERO: Vec2;
63
- const UNIT: Vec2;
64
- function dist(a: any, b: any): number;
65
- function max(v1: any, v2: any): Vec2;
66
- function min(v1: any, v2: any): Vec2;
67
- function sum(v1: any, v2: any): Vec2;
68
- function dot(v1: any, v2: any): number;
69
- function cross(v1: any, v2: any): number;
70
- function angle(v1: any, v2: any): number;
71
- function diff(v1: any, v2: any): Vec2;
72
- function lc(...args: any[]): Vec2;
73
- function lc2(v1: Vec2, f1: number, v2: Vec2, f2: number): Vec2;
74
- function centre(v1: any, v2: any): any;
75
- }