Title: "offsetY" setting doesn't work after "removeSubtree" call · Issue #191 · philogb/jit · GitHub
Open Graph Title: "offsetY" setting doesn't work after "removeSubtree" call · Issue #191 · philogb/jit
X Title: "offsetY" setting doesn't work after "removeSubtree" call · Issue #191 · philogb/jit
Description: Hi, I'm trying to implement editable chart with "top" orientation. I want my chart be centred horizontally and stick to top vertically: var spaceTree = new $jit.ST({ injectInto: container.id, orientation: "top", offsetY: 300 }); After I ...
Open Graph Description: Hi, I'm trying to implement editable chart with "top" orientation. I want my chart be centred horizontally and stick to top vertically: var spaceTree = new $jit.ST({ injectInto: container.id, orien...
X Description: Hi, I'm trying to implement editable chart with "top" orientation. I want my chart be centred horizontally and stick to top vertically: var spaceTree = new $jit.ST({ injectInto: conta...
Opengraph URL: https://github.com/philogb/jit/issues/191
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"offsetY\" setting doesn't work after \"removeSubtree\" call","articleBody":"Hi, I'm trying to implement editable chart with \"top\" orientation. I want my chart be centred horizontally and stick to top vertically:\n\n``` javascript\n var spaceTree = new $jit.ST({\n injectInto: container.id,\n orientation: \"top\",\n offsetY: 300\n });\n```\n\nAfter I remove some subtree, entire tree is moved from the canvas to the center:\n\n``` javascript\n spaceTree.removeSubtree(nodeId, true, \"animate\", {\n hideLabels: false,\n onComplete: function () {\n console.log(\"subtree removed\");\n }\n }\n```\n\nMaybe somebody can suggest some workaround (set start point not on the canvas center but at the x/2, 0 + myOffset)?\n\nP.S. By the way with 'replot' option NO reposition to center happens.\n","author":{"url":"https://github.com/shkleinik","@type":"Person","name":"shkleinik"},"datePublished":"2015-03-27T07:46:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/191/jit/issues/191"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d99282bf-276b-36b0-1d63-647ef189725c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C96:3302AB:166BC44:1CBA94C:698BE43B |
| html-safe-nonce | 48a5bff92eeae9437b7997a40cc34112fc5c97cf73b0e829a1ec7edc79ae554b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzk2OjMzMDJBQjoxNjZCQzQ0OjFDQkE5NEM6Njk4QkU0M0IiLCJ2aXNpdG9yX2lkIjoiODA3MjM4NDQ1NDcxMjg3ODEzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6142aab592cc153fb1ad7019e109e66b319612246e9edc914199838d2d48593a |
| hovercard-subject-tag | issue:64714300 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/philogb/jit/191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/526eb9e1961e0cab155f2cb0b3136a548faeb320af93b189cdb2c0fbd053a166/philogb/jit/issues/191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/526eb9e1961e0cab155f2cb0b3136a548faeb320af93b189cdb2c0fbd053a166/philogb/jit/issues/191 |
| og:image:alt | Hi, I'm trying to implement editable chart with "top" orientation. I want my chart be centred horizontally and stick to top vertically: var spaceTree = new $jit.ST({ injectInto: container.id, orien... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shkleinik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/philogb/jit git https://github.com/philogb/jit.git |
| octolytics-dimension-user_id | 71751 |
| octolytics-dimension-user_login | philogb |
| octolytics-dimension-repository_id | 212873 |
| octolytics-dimension-repository_nwo | philogb/jit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 212873 |
| octolytics-dimension-repository_network_root_nwo | philogb/jit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width