-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for line property functions #3033
Conversation
great job!!! |
I'm seeing a statistically significant
|
Fantastic! |
Per slack chat I will take a stab at the gl-native PR in the next couple days |
1ca6410
to
06ba18d
Compare
3a6c0cd
to
5a1f67b
Compare
94f8c17
to
48e8931
Compare
Omg can it be?? This is finally ready for review! cc @lucaswoj for 👀
|
Launch steps:
|
@@ -45,7 +44,12 @@ const lineInterface = { | |||
{name: 'a_data', components: 4, type: 'Uint8'} | |||
]), | |||
paintAttributes: [ | |||
{property: 'line-color', type: 'Uint8'} | |||
{property: 'line-color', type: 'Uint8'}, | |||
{property: 'line-blur', multiplier:10, type: 'Uint8', }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nits: Mixed spaces and tabs, and missing space after :
.
{property: 'line-blur', multiplier:10, type: 'Uint8', }, | ||
{property: 'line-opacity', multiplier:10, type: 'Uint8', }, | ||
{property: 'line-width', multiplier:10, type: 'Uint8', }, | ||
{property: 'line-gap-width', multiplier:10, type: 'Uint8', name: 'a_gapwidth', }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a_gap_width
, and then an override isn't necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would require a change to the shaders and native though 💭
@@ -5,7 +5,6 @@ const createVertexArrayType = require('../vertex_array_type'); | |||
const createElementArrayType = require('../element_array_type'); | |||
const loadGeometry = require('../load_geometry'); | |||
const EXTENT = require('../extent'); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the whitespace here.
17dd304
to
8f8f6d8
Compare
@jfirebaugh made your requested changes -- I'm hesitant to rename |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, we can handle it at a later time.
😂 😂 😂 😂 😂 |
This PR adds support for line property functions
fixes #2729
Checklist
line-opacity
property functionsline-color
property functionsline-width
property functionsline-gap-width
property functionsline-offset
property functionsline-blur
property functionsadd support forImplement property functions for "line-dasharray" and "line-cap" #3045line-dasharray
property functionsDEVICE_PIXEL_RATIO
constant to shaders on GL Nativemaster
Related PRs