Skip to content

Conversation

@nicolaskruchten
Copy link
Contributor

Roughed in, lots of fit'n'finish needed :(

break;

case EDITOR_ACTIONS.DELETE_IMAGE:
if (isNumeric(payload.imageIndex)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess on a later pass we could combine these delete 'annotations' 'shapes' 'images' actions into one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this was a dirty copy-paste job... We'll see if it turns out that these evolve in different directions and if not, we can DRY them up.

const key = `annotations[${annotationIndex}]`;
const value = {text: 'new text'};
const value = {text: _('new text')};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mercii

connectImageToLayout,
connectAxesToLayout,
connectLayoutToPlot,
connectToContainer,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add these to the README

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

StyleShapesPanel,
StyleImagesPanel,
StyleTracesPanel,
} from './default_panels';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, can we add these to the README

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm well none of the other default panels are in the readme, so I would vote no...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean the positionningRef, the Accordions, the connect functions : )

{label: _('Hide'), value: false},
]}
/>
<TextEditor attr="source" label={_('Source')} show />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we need the component hein..
would you mind creating the issue so we don't forget..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep. we can use react-dropzone I think, I used it for https://react-pivottable.js.org/ and it works great.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolaskruchten
Copy link
Contributor Author

PR feedback addressed!

@VeraZab
Copy link
Contributor

VeraZab commented Feb 14, 2018

💃

@nicolaskruchten nicolaskruchten merged commit e2e2f39 into master Feb 14, 2018
@nicolaskruchten nicolaskruchten deleted the shape_image branch February 14, 2018 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants