Skip to content

Official multi viewport API: non-breaking changes (Stage 1 of 3) - #1379

Merged
ibgreen merged 3 commits into
masterfrom
ib/view-class-add-nonbreaking-files
Feb 9, 2018
Merged

ibgreen merged 3 commits into
masterfrom
ib/view-class-add-nonbreaking-files

Conversation

@ibgreen

@ibgreen ibgreen commented Feb 3, 2018

Copy link
Copy Markdown
Collaborator

This PR only contains non-breaking changes related #1370:

  • doc updates
  • new View subclasses, exported as experimental
  • some new util functions.

This PR will be landed quickly as a base for the follow up PR that fully implements the new views property.

@ibgreen ibgreen changed the title View classes and docs View classes and docs (Stage 1 of 3) Feb 3, 2018
@ibgreen ibgreen changed the title View classes and docs (Stage 1 of 3) View classes and docs: non-breaking changes (Stage 1 of 3) Feb 3, 2018
@ibgreen ibgreen changed the title View classes and docs: non-breaking changes (Stage 1 of 3) Official multi-viewport API: non-breaking changes (Stage 1 of 3) Feb 3, 2018
@ibgreen ibgreen changed the title Official multi-viewport API: non-breaking changes (Stage 1 of 3) Official multi viewport API: non-breaking changes (Stage 1 of 3) Feb 3, 2018
Comment thread src/core/utils/positions.js Outdated
};

case 'string':
const PERCENT_OR_PIXELS_REGEX = /([01]?[0-9]?[0-9])(%|px)/;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • No 33.3%?
  • Define outside?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Might be a preference - I think it'll be easier to read if we keep the regex short and forgiving, and validate the parsed number instead.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good points. Addressed.

Ib Green and others added 2 commits February 9, 2018 07:35
* Implement official multi view API

* Update examples for official multi viewport API (#1381)
@ibgreen
ibgreen force-pushed the ib/view-class-add-nonbreaking-files branch from f3ac070 to a59e753 Compare February 9, 2018 16:02
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.

2 participants