René's URL Explorer Experiment


Title: `TransitionTimeMs` is not inherited from one callback invocation to the next · Issue #76 · PAIR-code/megaplot · GitHub

Open Graph Title: `TransitionTimeMs` is not inherited from one callback invocation to the next · Issue #76 · PAIR-code/megaplot

X Title: `TransitionTimeMs` is not inherited from one callback invocation to the next · Issue #76 · PAIR-code/megaplot

Description: Inside of a Sprite callback, the API user can set TransitionTimeMs to specify how long the transition should take to complete. However, unlike other sprite attributes, TransitionTimeMs is not inherited from the previous phase and must be...

Open Graph Description: Inside of a Sprite callback, the API user can set TransitionTimeMs to specify how long the transition should take to complete. However, unlike other sprite attributes, TransitionTimeMs is not inher...

X Description: Inside of a Sprite callback, the API user can set TransitionTimeMs to specify how long the transition should take to complete. However, unlike other sprite attributes, TransitionTimeMs is not inher...

Opengraph URL: https://github.com/PAIR-code/megaplot/issues/76

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`TransitionTimeMs` is not inherited from one callback invocation to the next","articleBody":"Inside of a Sprite callback, the API user can set `TransitionTimeMs` to specify how long the transition should take to complete. However, unlike other sprite attributes, `TransitionTimeMs` is not inherited from the previous phase and must be set in each phase callback.\r\n\r\nExample using `Sprite` API  (see comments):\r\n\r\n```ts\r\nconst scene = new Scene({\r\n  defaultTransitionTimeMs: 400,  // Default transition time is 400.\r\n});\r\n\r\nconst sprite = scene.createSprite();\r\n\r\nsprite\r\n  .enter((s: SpriteView) =\u003e {\r\n    s.TransitionTimeMs = 1000;  // Explicitly set time to 1000 (1 sec).\r\n    s.SizeWorld = 1;\r\n    s.FillOpacity = 0;\r\n  })\r\n  .update((s: SpriteView) =\u003e {\r\n    // CURRENTLY: s.TransitionTimeMs implicitly set to the default (400).\r\n    // DESIRED: s.TransitionTimeMs should persist the 1000 from enter().\r\n\r\n    // s.SizeWorld is correctly inherited from previous state (1).\r\n\r\n    s.FillOpacity = 1;\r\n  });\r\n```\r\n\r\nExample using the `Selection` API  (see comments):\r\n\r\n```ts\r\nconst scene = new Scene({\r\n  defaultTransitionTimeMs: 500,  // Default transition time is 500.\r\n});\r\n\r\nconst selection = scene.createSelection();\r\n\r\nselection\r\n  .onInit((s: SpriteView) =\u003e {\r\n    // CURRENTLY: Ignored for rendering and not persisted.\r\n    // DESIRED: Still ignore for rendering, but persist value.\r\n    s.TransitionTimeMs = 1000;  \r\n\r\n    s.SizeWorld = 1;\r\n    s.FillOpacity = 0;\r\n  })\r\n  .onEnter((s: SpriteView) =\u003e {\r\n    // CURRENTLY: s.TransitionTimeMs implicitly set to the default (500).\r\n    // DESIRED: s.TransitionTimeMs should persist 1000 from onInit().\r\n\r\n    s.TransitionTimeMs = 2000;  // Explicitly set to 2000.\r\n\r\n    // s.SizeWorld is inherited from previous state (1).\r\n    s.FillOpacity = 1;\r\n  })\r\n  .onUpdate((s: SpriteView) =\u003e {\r\n    // CURRENTLY: s.TransitionTimeMs implicitly set to the default (500).\r\n    // DESIRED: s.TransitionTimeMs should persist 2000 from onEnter().\r\n\r\n    // s.SizeWorld is inherited from previous state (1).\r\n    s.FillOpacity = 1;\r\n  });\r\n```\r\n\r\nIdeally, `TransitionTimeMs` should persist between callback invocations. The Scene's `defaultTransitionTimeMs` should only be used until the first time a transition time is needed, and then after that the previous value should be used again. This would make it consistent with other sprite attributes.\r\n\r\nNote: The fact that the transition time is ignored for Selection `onInit()` is intentional. The attributes set for `onInit()` should be applied before the first frame in which the Sprite is rendered. However, the `TransitionTimeMs` set during `onInit()` should be used for callback invocations. Ignoring this value and not persisting it is counterintuitive.","author":{"url":"https://github.com/jimbojw","@type":"Person","name":"jimbojw"},"datePublished":"2022-10-11T12:32:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/76/megaplot/issues/76"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a28de528-63ff-58b5-4078-ffc8220a09ee
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA5BC:10ED6:98EF36:D0A1FF:6A4DDDC1
html-safe-nonce50be3f45a8365e2df5ac5314c8cd849eededd1328e96cd232c813e8ca24abc2e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUJDOjEwRUQ2Ojk4RUYzNjpEMEExRkY6NkE0REREQzEiLCJ2aXNpdG9yX2lkIjoiNDUxNTM4NzU5NjM5NDU4NTUzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3de79c9b46f9ab9323d6a96298bb389753e8585901b65334527ab53b77acfd22
hovercard-subject-tagissue:1404562333
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PAIR-code/megaplot/76/issue_layout
twitter:imagehttps://opengraph.githubassets.com/04fac5ebf35b9894c3972c7557dbfc6ee7c7053f3a6e1e8260cd22f9bfe1b20b/PAIR-code/megaplot/issues/76
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/04fac5ebf35b9894c3972c7557dbfc6ee7c7053f3a6e1e8260cd22f9bfe1b20b/PAIR-code/megaplot/issues/76
og:image:altInside of a Sprite callback, the API user can set TransitionTimeMs to specify how long the transition should take to complete. However, unlike other sprite attributes, TransitionTimeMs is not inher...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejimbojw
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/PAIR-code/megaplot git https://github.com/PAIR-code/megaplot.git
octolytics-dimension-user_id29804435
octolytics-dimension-user_loginPAIR-code
octolytics-dimension-repository_id451893434
octolytics-dimension-repository_nwoPAIR-code/megaplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id451893434
octolytics-dimension-repository_network_root_nwoPAIR-code/megaplot
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PAIR-code/megaplot/issues/76#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPAIR-code%2Fmegaplot%2Fissues%2F76
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPAIR-code%2Fmegaplot%2Fissues%2F76
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PAIR-code%2Fmegaplot
Reloadhttps://github.com/PAIR-code/megaplot/issues/76
Reloadhttps://github.com/PAIR-code/megaplot/issues/76
Reloadhttps://github.com/PAIR-code/megaplot/issues/76
Please reload this pagehttps://github.com/PAIR-code/megaplot/issues/76
PAIR-code https://github.com/PAIR-code
megaplothttps://github.com/PAIR-code/megaplot
Notifications https://github.com/login?return_to=%2FPAIR-code%2Fmegaplot
Fork 3 https://github.com/login?return_to=%2FPAIR-code%2Fmegaplot
Star 21 https://github.com/login?return_to=%2FPAIR-code%2Fmegaplot
Code https://github.com/PAIR-code/megaplot
Issues 34 https://github.com/PAIR-code/megaplot/issues
Pull requests 24 https://github.com/PAIR-code/megaplot/pulls
Actions https://github.com/PAIR-code/megaplot/actions
Projects https://github.com/PAIR-code/megaplot/projects
Security and quality 0 https://github.com/PAIR-code/megaplot/security
Insights https://github.com/PAIR-code/megaplot/pulse
Code https://github.com/PAIR-code/megaplot
Issues https://github.com/PAIR-code/megaplot/issues
Pull requests https://github.com/PAIR-code/megaplot/pulls
Actions https://github.com/PAIR-code/megaplot/actions
Projects https://github.com/PAIR-code/megaplot/projects
Security and quality https://github.com/PAIR-code/megaplot/security
Insights https://github.com/PAIR-code/megaplot/pulse
TransitionTimeMs is not inherited from one callback invocation to the nexthttps://github.com/PAIR-code/megaplot/issues/76#top
bugSomething isn't workinghttps://github.com/PAIR-code/megaplot/issues?q=state%3Aopen%20label%3A%22bug%22
V0.2.0https://github.com/PAIR-code/megaplot/milestone/1
https://github.com/jimbojw
jimbojwhttps://github.com/jimbojw
on Oct 11, 2022https://github.com/PAIR-code/megaplot/issues/76#issue-1404562333
bugSomething isn't workinghttps://github.com/PAIR-code/megaplot/issues?q=state%3Aopen%20label%3A%22bug%22
V0.2.0No due datehttps://github.com/PAIR-code/megaplot/milestone/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.