How to create flexible anotation with react - css

I am looking for a way to create annotations in React just like the image below
for example, when Commits is clicked and Apple is clicked next, then i need to draw the arrow from Commits to Apple. An example of what i want to achieve is found here

I think the quick-and-dirty way would be using material-ui (if using this library anyway), and try to make the timeline component work this way (material-ui.com/components/timeline)
But, for a really nice look and feel, I would recommend dive deeper into libraries like
Proton (https://www.npmjs.com/package/proton-js)
Canvasjs https://canvasjs.com/docs/charts/
Recharts https://github.com/recharts/recharts
It doesn't seem to be existing out of the box 🤷‍♂️

Related

How to create a custom ColorPicker widget in Qt?

I am making a desktop app with Qt6.2 and C++ and I want to create a ColorPicker widget that is much like QColorPicker.
I want it to look like this:
This is Evernote's color picker. For some reason, Qt6.2 does not have QColorPicker and I don't know where to get it from. I am interested however in creating my own custom widget to look like the picture above.
My first intuition was to use a grid layout and place buttons in them. It seemed so tedious to set each button's stylesheet and connect every button. I did not get any intuition as to how I can reduce redundancy. I thought there has to be another way. This looks fundamentally like a ComboBox, though it has a different layout.
How can I implement this colorpicker? While some will suggest using QColorPicker (I don't know where to get it from as its not shipped in Qt), I am actually interested as to how a widget like this is implemented.

Create Graph with Angular 5

I am trying to create a graph editor using Angular 5. My goal is to make a DAG editor using a drag/drop feature for nodes and edges, where then I can set some properties on the nodes...
do you know any library I can use to render simple graphs with Angular 5?
Up to now I have only found this lib
https://github.com/swimlane/ngx-graph
nut its documentation is really poor...
thanks!
I am currently looking for similar solution as you and this one seems to be best I found so far: https://github.com/Ni55aN/d3-node-editor. There is example specifically for Angular.
There are also paid solutions, such as GoJS, which is amazing, but quite expensive: https://www.nwoods.com/products/gojs/index.html. They have also the Angular implementation.

Looking for best way to add material design to meteor application

I am currently building a small meteor based quoting tool application. I would like to add Google's material design to it and and having a hard time to decide what is the best way to do that.
I would like to hear from someone who has done this, am I in right track and what are the potential issues with solution options below, or is there better existing solution?
Installing polymer to public folder and use bower to build the client packages.
Installing materialize CSS using Atmosphere package https://atmospherejs.com/materialize/materialize
Using momentum https://atmospherejs.com/percolate/momentum to roll my own components https://atmospherejs.com/percolate/momentum
Elements I want to use are paper-elements + Google drive and sheets, plus might need more in the future.
If you go the Polymer route, you will be able to use the paper-styles component. It would require manual application, but it'd give you the most authentic Material Design experience. In addition, you can use the various paper elements directly, swapping out normal input elements for paper-input, for example.

Emphasize a specific UI component

I'd like to add visual emphasis to a selected UI component by de-emphasizing everything around it, e.g. make everything around it blurry, or more transparent, or something similar.
Two questions, really:
spec: what effect would you use do build something like this? Do you know of any software that does this well?
implementation: what is the most obvious approach to apply a blur, or change alpha, to everything around a specific component?
thank you all!
If you display the component using the PopUpManager, everything else will 'blur' out on it's own. You won't be able to interact with it, though.
I you don't want to use PopUpManager, then manually disable everything but the component you want to highlight. This could be dead simple, or could be horribly complex depending on your architecture and how components are laid out in relation to the component you want to highlight.
If you don't want to disable a component, but do want the disabled 'look', then most Spark components have 'disabled' SkinState. You could copy the design to the active state, or create a new state for your "not de-activated even though it looks like' state.

Custom shape panel/form in Flex

What I'm trying to do is to create a fancy custom-shaped login panel. It's functions and containing components should be pretty standard, just like in regular login panel - FormItem, TextInput, Validators, etc. I did some research and found that it is possible to create skins using Fireworks, however this does not solve my problem because it does not allow me to manipulate with panel shape. What would be the best way to do it?
My recommendation would be to use Degrafa framework for something like this. You could programmatically affect the skin of your component at runtime to change its shape.
Another route would be to use a simple canvas with image backgrounds that conform to your needs, but this isn't very flexible.
I would do the following:
Export the asset from Fireworks as a PNG with appropriate transparency
Embed the asset into your app and supply the appropriate Scale9 coordinates
Reference the embedded asset as the "borderSkin" style for your Panel.
Here's an example of doing this to a TitleWindow which is a subclass of Panel, so the same approach should apply:
http://butterfliesandbugs.wordpress.com/2008/02/15/using-a-border-skin-for-a-titlewindow-in-flex-3/
I'd agree with Joel, Degrafa is the way to go for total custom skins etc. Failing that (as it is an extra hurdle to figure out) I'd fudge it be using a Canvas instead of a Panel. Extend the Canvas class and make it look like whatever shape you are trying to do. Set the Canvas's background alpha to 0, then add the shapes you need. Using this approach you may well have to duplicate things that the panel can do that the Cavnas can't but you'll be able to customise the look.

Resources