Skip to content

Conversation

@slimbuck
Copy link
Member

@slimbuck slimbuck commented Jun 4, 2019

Fixes #1584

I confirm I have signed the Contributor License Agreement.


// calculate the number of characters per texture up to, but not including
// the specified symbolIndex
_calculateCharsPerTexture: function (symbolIndex) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

symbolIndex arg doesn't seem to be used can we remove it?

Copy link
Member Author

@slimbuck slimbuck Jun 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand... symbolIndex is used in the function and two of the function callsites...

@willeastcott
Copy link
Contributor

Can you add some API ref docs for the two new properties please? 😄

@slimbuck
Copy link
Member Author

slimbuck commented Jun 5, 2019

text-element.js currently has no API docs at all. Should I add the API docs as private or..?

@willeastcott
Copy link
Contributor

Oh, looks like you haven't exposed the properties to pc.ElementComponent. Look at, say, enableMarkup for an example.

@willeastcott
Copy link
Contributor

And the docs for these properties should be public.

@willeastcott willeastcott merged commit e5b3344 into master Jun 6, 2019
@willeastcott willeastcott deleted the text-range branch June 6, 2019 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to render a sub-range of text to the text-element

4 participants