Dyalog / Dyalog/ewc-client

Add support for ScaledPixel

Open
#199 0 comments 0 reactions 0 assignees View on GitHub
client enhancement
Dominant language
JavaScript
Stars
2
Forks
5
Avg merge
5d
Merged PRs (30d)
4

Description

If Coord is set to ScaledPixel for any object, then all supplied pixel values should be scaled by the DPR. The demo menu now has a check box "Scale"; if this is check and DemoBoxes is run, the form will be created with Coord=ScaledPixel.

{"WC":{"ID":"F1","Properties":{"Caption":"Boxes and Lines","Coord":"ScaledPixel","Posn":[0,0],"Size":[600,400],"Type":"Form"}}}

Note that the Coord property is INHERITED by all child objects, so once the form has ScaledPixel, all children will inherit this setting if nothing else is set.

Other demos will be enhanced to use ScaledPixel once Boxes is working.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.