-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into undo-origin-panel-update
- Loading branch information
Showing
32 changed files
with
355 additions
and
328 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
x-pack/plugins/canvas/public/components/alignment_guide/alignment_guide.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
x-pack/plugins/canvas/public/components/alignment_guide/alignment_guide.scss
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
x-pack/plugins/canvas/public/components/alignment_guide/index.js
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
x-pack/plugins/canvas/public/components/border_connection/border_connection.js
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
x-pack/plugins/canvas/public/components/border_connection/border_connection.scss
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
x-pack/plugins/canvas/public/components/border_connection/index.js
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
x-pack/plugins/canvas/public/components/border_resize_handle/border_resize_handle.scss
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
x-pack/plugins/canvas/public/components/border_resize_handle/index.js
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
x-pack/plugins/canvas/public/components/dragbox_annotation/dragbox_annotation.js
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
x-pack/plugins/canvas/public/components/dragbox_annotation/dragbox_annotation.scss
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
x-pack/plugins/canvas/public/components/dragbox_annotation/index.js
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
x-pack/plugins/canvas/public/components/hover_annotation/hover_annotation.scss
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
x-pack/plugins/canvas/public/components/hover_annotation/index.js
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
x-pack/plugins/canvas/public/components/layout_annotations/alignment_guide.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { matrixToCSS } from '../../lib/dom'; | ||
import { TransformMatrix3d } from '../../lib/aeroelastic'; | ||
|
||
interface Props { | ||
height: number; | ||
transformMatrix: TransformMatrix3d; | ||
width: number; | ||
} | ||
|
||
export const AlignmentGuide: FC<Props> = ({ transformMatrix, width, height }) => ( | ||
<div | ||
className="canvasAlignmentGuide canvasInteractable canvasLayoutAnnotation" | ||
style={{ | ||
background: 'magenta', | ||
height, | ||
marginLeft: -width / 2, | ||
marginTop: -height / 2, | ||
position: 'absolute', | ||
transform: matrixToCSS(transformMatrix), | ||
width, | ||
}} | ||
/> | ||
); | ||
|
||
AlignmentGuide.propTypes = { | ||
height: PropTypes.number.isRequired, | ||
transformMatrix: PropTypes.arrayOf(PropTypes.number).isRequired, | ||
width: PropTypes.number.isRequired, | ||
}; |
36 changes: 36 additions & 0 deletions
36
x-pack/plugins/canvas/public/components/layout_annotations/border_connection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { matrixToCSS } from '../../lib/dom'; | ||
import { TransformMatrix3d } from '../../lib/aeroelastic'; | ||
|
||
interface Props { | ||
height: number; | ||
transformMatrix: TransformMatrix3d; | ||
width: number; | ||
} | ||
|
||
export const BorderConnection: FC<Props> = ({ transformMatrix, width, height }) => ( | ||
<div | ||
className="canvasBorderConnection canvasLayoutAnnotation" | ||
style={{ | ||
height, | ||
marginLeft: -width / 2, | ||
marginTop: -height / 2, | ||
position: 'absolute', | ||
transform: matrixToCSS(transformMatrix), | ||
width, | ||
}} | ||
/> | ||
); | ||
|
||
BorderConnection.propTypes = { | ||
height: PropTypes.number.isRequired, | ||
transformMatrix: PropTypes.arrayOf(PropTypes.number).isRequired, | ||
width: PropTypes.number.isRequired, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
x-pack/plugins/canvas/public/components/layout_annotations/dragbox_annotation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { matrixToCSS } from '../../lib/dom'; | ||
import { TransformMatrix3d } from '../../lib/aeroelastic'; | ||
|
||
interface Props { | ||
height: number; | ||
transformMatrix: TransformMatrix3d; | ||
width: number; | ||
} | ||
|
||
export const DragBoxAnnotation: FC<Props> = ({ transformMatrix, width, height }) => ( | ||
<div | ||
className="canvasDragBoxAnnotation canvasLayoutAnnotation" | ||
style={{ | ||
height, | ||
marginLeft: -width / 2, | ||
marginTop: -height / 2, | ||
transform: matrixToCSS(transformMatrix), | ||
width, | ||
}} | ||
/> | ||
); | ||
|
||
DragBoxAnnotation.propTypes = { | ||
transformMatrix: PropTypes.arrayOf(PropTypes.number).isRequired, | ||
width: PropTypes.number.isRequired, | ||
height: PropTypes.number.isRequired, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
x-pack/plugins/canvas/public/components/layout_annotations/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export { AlignmentGuide } from './alignment_guide'; | ||
export { DragBoxAnnotation } from './dragbox_annotation'; | ||
export { HoverAnnotation } from './hover_annotation'; | ||
export { TooltipAnnotation } from './tooltip_annotation'; | ||
export { RotationHandle } from './rotation_handle'; | ||
export { BorderConnection } from './border_connection'; | ||
export { BorderResizeHandle } from './border_resize_handle'; |
Oops, something went wrong.