Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Hide vertically hidden ranged items in groups that are not visible #2062

Merged
merged 9 commits into from
Sep 13, 2016

Conversation

yotamberk
Copy link
Member

No description provided.

@mojoaxel
Copy link
Member

mojoaxel commented Sep 4, 2016

@yotamberk Thanks!

I would like to test this. Is there an issue this PR fixes? Which example can I use to see the changes?

@@ -43,8 +43,14 @@ RangeItem.prototype.baseClassName = 'vis-item vis-range';
*/
RangeItem.prototype.isVisible = function(range) {
// determine visibility
return (this.data.start < range.end) && (this.data.end > range.start);
};
var isVisible =
Copy link
Member

Choose a reason for hiding this comment

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

The code formatting is broken here. Please check the indent of this function.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've fixed it

@yotamberk
Copy link
Member Author

Hey 😊
I'll fix the problem that was caused by my changes and fix what you commented on.
I have an example but it is not simple just by looking at the timeline. You'll need to follow an item as it disappears from view of the timeline window. I'll add an example.

Have a good day!
Yotam

נשלח מה-iPhone שלי

‫ב-4 בספט׳ 2016, בשעה 11:34, ‏‏Alexander Wunschik ‏[email protected] כתב/ה:‬

@yotamberk Thanks!

I would like to test this. Is there an issue this PR fixes? Which example can I use to see the changes?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@mojoaxel mojoaxel added this to the v4.17 milestone Sep 4, 2016
timeline.setGroups(groups);
timeline.setItems(items);

// $(document).ready(function(){
Copy link
Member

Choose a reason for hiding this comment

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

What about all this comments. Can you remove them?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, will do

נשלח מה-iPhone שלי

‫ב-5 בספט׳ 2016, בשעה 14:16, ‏‏Alexander Wunschik ‏[email protected] כתב/ה:‬

In examples/timeline/groups/verticalItemsHide.html:

  • editable: true,
  • margin: {
  •  item: 10, // minimal margin between items
    
  •  axis: 5   // minimal margin between items and the axis
    
  • },
  • orientation: 'top'
  • };
  • // create a Timeline
  • var container = document.getElementById('mytimeline');
  • timeline = new vis.Timeline(container, null, options);
  • timeline.setGroups(groups);
  • timeline.setItems(items);

+// $(document).ready(function(){
What about all this comments. Can you remove them?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@yotamberk
Copy link
Member Author

Hey, I've fixed the code so all examples work again.
This MR allows hiding vertically any range items in groups that are not in the visible window of the timeline.
Hiding of all the other types of items will be submitted in another MR.

@mojoaxel
Copy link
Member

mojoaxel commented Sep 9, 2016

Thanks. I'll check and merge it in the next days.

@yotamberk
Copy link
Member Author

Great! Thanks!

On Sat, Sep 10, 2016 at 12:48 AM, Alexander Wunschik <
[email protected]> wrote:

Thanks. I'll check and merge it in the next days.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2062 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEHquEOPDeQsTT_5kmTk2nt1UP7SbJvGks5qodQogaJpZM4J0IGh
.

@mojoaxel
Copy link
Member

mojoaxel commented Sep 12, 2016

The files in the dist folder should not be changed. :-|
Can you please reset them:

git reset HEAD~1 dist
git commit --amend --no-edit

@yotamberk
Copy link
Member Author

Done. Sorry for that...

@mojoaxel
Copy link
Member

I tested a few examples. Looks good!

@mojoaxel mojoaxel merged commit 0ba6e16 into visjs:develop Sep 13, 2016
@yotamberk yotamberk deleted the vertical-visibility branch September 13, 2016 16:31
@mojoaxel
Copy link
Member

@yotamberk Thanks again also for your patience!

@yotamberk
Copy link
Member Author

Ofcourse. I'm working on some other features and bug fixes. Going through
TODOs and trying to understand what is plausible. Hope to have a scroll bar
option for timeline by next week

בתאריך 14 בספט׳ 2016 1:56 לפנה״צ,‏ "Alexander Wunschik" <
[email protected]> כתב:

@yotamberk https://github.com/yotamberk Thanks again also for your
patience!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2062 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEHquHZb_PFeL5D6ZbKTugKJ96_e25Ksks5qpyoZgaJpZM4J0IGh
.

@mojoaxel
Copy link
Member

I'm working on some other features and bug fixes.

@yotamberk 👍

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

Successfully merging this pull request may close these issues.

2 participants