Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

clampRange incorrect with negative values #80

Closed
domoritz opened this issue Jun 20, 2018 · 2 comments
Closed

clampRange incorrect with negative values #80

domoritz opened this issue Jun 20, 2018 · 2 comments
Assignees
Labels

Comments

@domoritz
Copy link
Member

clampRange([-10, 20], -20, 100) should produce [-10, 20]
but produces [-10, 30].

Related #10

{
  "$schema": "https://vega.github.io/schema/vega/v4.json",
  "width": 100,
  "height": 100,
  "marks": [{"type": "text", "encode": {"enter": {"text": {"signal": "clampRange([-10, 20], -20, 100)"}}}}]
}
@jheer
Copy link
Member

jheer commented Jun 20, 2018

Thanks, will investigate.

jheer added a commit that referenced this issue Jun 21, 2018
@jheer
Copy link
Member

jheer commented Jun 21, 2018

Fixed in vega-parser v3.5.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants