question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More advanced expression editor

See original GitHub issue

Now we’re getting close to the completion of adding basic expression support to the editor (see #223), here are my plans for more advanced editing. The approach is to add inline widgets into the JSON editor. A simple example is color

Screenshot 2020-03-09 at 15 40 06 Screenshot 2020-03-09 at 16 14 01

There is a demo of that here https://2354-84182601-gh.circle-artifacts.com/0/artifacts/build/index.html - note it just displays colors with a click handler right now, open ‘Zoomstack roads’ and go to the ‘sites’ layer, to see what’s in the screenshot.

Looking through the spec I believe we could add support for

  • Color - via a color picker, this would be for any value that matches a color string regardless of spec.
  • Number - from spec with min/max values defined
  • Image - pick image ids from spritesheet, would pick up ["image", "foo"] in expressions.
  • Enum - Any field spec that has a enum

I think color is probably the most important here because colors are the most tricky thing to get right in a design.

Anyway what do people think?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pathmappercommented, Dec 14, 2021

@orangemug looks good from the first impression!

Would it be possible somehow to read the whole description from the style spec? Currently the description is cropped and ends with ...

grafik

From where are the available properties with description are coming from? Is there need to have special metadata properties in the data? What happens if this (meta-)data is not available?

grafik

1reaction
orangemugcommented, May 28, 2020

@pathmapper I’ve removed this from v1.8.0 milestone, I think we should get the accessibility/deployment changes live first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

About the advanced expression editor | Adobe Journey ...
The advanced expression editor offers a set of built-in functions and operators to let you manipulate values and define an expression that fits ......
Read more >
Expression modes and expression editing
In Architect, use expression editing to build complex calculations by ... where you can access additional resources for the more complex expressions.
Read more >
Using the Expression Editor - Informatica Documentation
You can evaluate expressions that you configure in the Expression Editor of an Expression transformation. When you test an expression, you can enter...
Read more >
Advanced expression editors for views | SAP Help Portal
Either type the expression in the Mapping column of the Output Schema tab, or create more complex expressions in the Advanced Expression Editor...
Read more >
Expression editor ‒ Qlik Cloud
Select a function from a specific category to insert it into the expression editor. You can use functions to generate more complex expressions....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found