Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model, view 中的事件暴露在 graph 中,屏蔽内部概念 #54

Closed
bubkoo opened this issue Dec 24, 2019 · 1 comment
Closed

model, view 中的事件暴露在 graph 中,屏蔽内部概念 #54

bubkoo opened this issue Dec 24, 2019 · 1 comment
Labels
type: feature 新功能 Feature/enhancement requests

Comments

@bubkoo
Copy link
Member

bubkoo commented Dec 24, 2019

Expected Behavior

Possible Solution

Additional Context

@bubkoo bubkoo added the type: feature 新功能 Feature/enhancement requests label Dec 24, 2019
bubkoo added a commit that referenced this issue Dec 24, 2019
1.  protect some api
2. fireMouseEvent => mouseEvent
3. addMouseListener => addHandler
4. removeMouseListener => removeHandler

ref #54
bubkoo added a commit that referenced this issue Dec 24, 2019
bubkoo added a commit that referenced this issue Dec 24, 2019
bubkoo added a commit that referenced this issue Dec 24, 2019
1.  protect some api
2. fireMouseEvent => mouseEvent
3. addMouseListener => addHandler
4. removeMouseListener => removeHandler

ref #54
bubkoo added a commit that referenced this issue Dec 24, 2019
@bubkoo bubkoo closed this as completed in 31652b4 Dec 24, 2019
github-actions bot pushed a commit that referenced this issue Oct 29, 2020
# @antv/x6 1.0.0 (2020-10-29)

### Bug Fixes

* 🐛 'blank:click' was not triggered when rubberband is enabled ([5046487](5046487)), closes [#222](#222)
* 🐛 attr definition ([f86ab8e](f86ab8e))
* 🐛 auto update anchor when draggin segment ([6fb6ad6](6fb6ad6))
* 🐛 circular dependencies ([bfe8b85](bfe8b85))
* 🐛 copy csstype ([a06430d](a06430d))
* 🐛 disable track ([ad783f6](ad783f6))
* 🐛 dnd with snapline ([634b9fb](634b9fb))
* 🐛 do not send track info when dev ([33f981c](33f981c))
* 🐛 do not update tools when changed by tools ([73b2466](73b2466))
* 🐛 edge connection error ([b3a5d03](b3a5d03)), closes [#245](#245)
* 🐛 find snap view ([6f5fab2](6f5fab2))
* 🐛 findParent args ([ba39109](ba39109))
* 🐛 fix the interaction of arrowhead ([1319429](1319429))
* 🐛 html shape ([45c9109](45c9109))
* 🐛 ignore magnet event when magnet attribute is 'false' ([0abeb64](0abeb64))
* 🐛 lost remove batch event when cell was removed ([2f9899c](2f9899c))
* 🐛 mouse event on start dnd ([242c44c](242c44c))
* 🐛 mousewheel direction ([733fa7a](733fa7a)), closes [#250](#250)
* 🐛 notify event args ([14dc8a3](14dc8a3))
* 🐛 numberic terminal id ([fd09ba3](fd09ba3))
* 🐛 numberic terminal id ([03e75f4](03e75f4))
* 🐛 passive event ([39ca4a2](39ca4a2))
* 🐛 preventDefault on scroll ([0fa61d2](0fa61d2))
* 🐛 remove next listeners in the previous handler ([66bd476](66bd476))
* 🐛 remove prop by path ([7f213d0](7f213d0))
* 🐛 resize graph ([547ce82](547ce82))
* 🐛 resize scroller and graph ([2a69150](2a69150))
* 🐛 revert function refactor ([b4c9f86](b4c9f86))
* 🐛 share registry of node and edge ([e82bf67](e82bf67))
* 🐛 should auto update scroller when unfreeze ([be5f51c](be5f51c))
* 🐛 should not effect the model's collection on select cell ([b674bb5](b674bb5))
* 🐛 should remove selection box after cell was removed ([90e706f](90e706f))
* 🐛 should unselect previous selected cell when single selecting ([49c3ca7](49c3ca7))
* 🐛 sort views after async graph rendered ([37ea8bb](37ea8bb))
* 🐛 trigger custom event ([7389fe1](7389fe1))
* 🐛 typos ([8b81d09](8b81d09))
* 🐛 update node's incomings and outgoings when edge was removed ([e6fa34c](e6fa34c)), closes [#241](#241)
* 🐛 usage of node tools ([6940868](6940868))
* add graph reference on model ([9f5e88d](9f5e88d))
* afterCreate hook can return nullable values ([b783246](b783246))
* alerts on lgtm.com ([7e0e00f](7e0e00f))
* anchors not align with the center of html border ([9a5f335](9a5f335))
* animation examples ([e439f5b](e439f5b))
* attribute name contains ":" should not be converted to kebabCase ([bbb29e9](bbb29e9))
* auto reference and update parent when create an edge ([f510dc8](f510dc8))
* auto reference on terminal changed ([1c42d34](1c42d34))
* backwards compatibility ([297aef8](297aef8))
* camelCase attr-name of marker ([995634e](995634e))
* can disable track ([3f3a590](3f3a590))
* cell's id are diff on cell's prop and cell's data ([1d9f91d](1d9f91d)), closes [#178](#178)
* center, fit the viewport ([7f15331](7f15331))
* circle deps ([f0b3314](f0b3314))
* circular dependencies ([53d4fd7](53d4fd7))
* common options for port-label-layout ([0bbe06f](0bbe06f))
* container size should be specified when infinite ([2d705bc](2d705bc)), closes [#53](#53)
* deal with alerts on lgtm.com ([cd6556e](cd6556e))
* deserialize cells in localstorage on clipboard initialize ([a485699](a485699))
* deserialize cells in localstorage on clipboard initialize ([c957f4c](c957f4c))
* do not set tabindex attr when keyboard is disabled ([613d25f](613d25f))
* edge lost reference when update graph with the exported same json ([df5a605](df5a605)), closes [#187](#187)
* ensure cell's type when defined it ([a2cf40f](a2cf40f))
* export layout methods ([1ab393a](1ab393a))
* export polyline ([de22cf4](de22cf4))
* export polyline ([b364c56](b364c56))
* export some protect methods ([4ff5dfd](4ff5dfd)), closes [#6](#6)
* fix can not connect to node in(child) an html-connectable-node ([1f44134](1f44134))
* fix edge preview arrow style ([343b398](343b398))
* fix getBBox function,now support get HTMLElement ([895c02e](895c02e))
* fix z-index bug when use size-sensor ([a072c03](a072c03))
* fix z-index of container when infinite ([ea0f3be](ea0f3be))
* flip option of async marker ([01749b6](01749b6))
* graph examples ([23fb270](23fb270))
* handle async result of validateEdge ([047dff7](047dff7))
* handle warnings from lgtm.com ([93ff9cd](93ff9cd))
* handle warnings of lgtm.com ([22c054f](22c054f))
* highlighting ([9996342](9996342))
* inherit native class ([d753ee5](d753ee5))
* interp definition ([f43254c](f43254c))
* is clipboard empty ([fb4c575](fb4c575))
* live preview connection ([157e0a8](157e0a8))
* marker offset ([ed0fd14](ed0fd14)), closes [#184](#184)
* missing edge arg on "edge:connected" and "edge:disconnected" event ([59eb988](59eb988)), closes [#183](#183)
* native class detection failed ([75ef6f5](75ef6f5))
* port angle ([8f117fc](8f117fc))
* ports options ([e164f4d](e164f4d))
* properties from `applyMixins` should be inited in constructor ([5fe6665](5fe6665))
* refresh with no arg means refreshing the whole graph ([034ccf2](034ccf2))
* registry context ([b44d699](b44d699))
* remove background-color for grid ([5ae2667](5ae2667)), closes [#6](#6)
* remove base init method ([7baa405](7baa405))
* remove scrollToCenter ([9888833](9888833))
* remove unsed variables ([b2a91fb](b2a91fb))
* remove unused labelPadding style ([8d08ba9](8d08ba9)), closes [#36](#36)
* render react component ([ad1fa2f](ad1fa2f))
* return an zero rectangle when polyline is empty ([66be740](66be740))
* return an zero rectangle when polyline is empty ([d4e739c](d4e739c))
* return the right drop target ([33646d0](33646d0))
* sanitize HTML ([0f5e0bb](0f5e0bb))
* selection work only for cells ([6c80efe](6c80efe))
* should convert delete to del for mousetrap ([8951b0a](8951b0a))
* should pre-process defaults and metadata separately ([233e958](233e958))
* should remove attribute when attr-value is nil ([5da0e77](5da0e77))
* should remove attribute when attr-value is nil ([c3cb92d](c3cb92d))
* should restrict elemenent within node container when use `html()` ([59a39b6](59a39b6))
* should return `this` ([69036e4](69036e4))
* should use id in json data as cell's id ([24d4cfb](24d4cfb))
* snapline work with scroller ([fb159b6](fb159b6))
* support backgroundColor of grid or graph ([300cc7d](300cc7d))
* test case for deepCopy ([0462a46](0462a46))
* test case for deepCopy ([88e0a7b](88e0a7b))
* test for matrix ([aa3b3cf](aa3b3cf))
* the size of html shape without border ([a1073e5](a1073e5))
* the size of padding when page invisible ([337f15a](337f15a))
* the static creation methods ([98d756d](98d756d))
* the static creation methods ([5ca96d8](5ca96d8))
* toJSON should ignore default props ([ec04fa4](ec04fa4))
* type => tagName ([2a65714](2a65714))
* type => tagName ([ff31d53](ff31d53))
* type define of createSegment ([e43f082](e43f082))
* type define of createSegment ([3df2e93](3df2e93))
* type errors ([6ee7c3c](6ee7c3c))
* type lost after mixin, instanceof failed ([aba8879](aba8879))
* typos ([0720dcc](0720dcc))
* unable to pan when page is invisible ([a7995ae](a7995ae))
* update examples ([f80942a](f80942a))
* update pagebreak by methods on graph ([30bdb90](30bdb90)), closes [#13](#13)
* v ([b16afef](b16afef))
* v ([7afb840](7afb840))
* warnings on lgtm.com ([cb859d3](cb859d3))
* warnings on lgtm.com ([5c67668](5c67668))
* wranings on lgtm.com ([d0747e6](d0747e6))
* wranings on lgtm.com ([3f179f4](3f179f4))
* xx:added event triggered twice ([161793a](161793a))
* 先触发selectionchanged, 再做数据交互用于redo/undo ([8f187ca](8f187ca))
* **anchor:** position of anchor and connection point ([f8f432a](f8f432a))
* **minimap:** only render facade for minimap ([aa65629](aa65629))

### Features

* `inherit` support Node class ([66ee95a](66ee95a))
* ✨ add tool manage api on cell ([ebaee93](ebaee93))
* ✨ add zoomTo api ([c8241ef](c8241ef))
* ✨ call and apply with explicit types ([d2f3431](d2f3431))
* ✨ checks if the specified event is supported by the browser ([39be5be](39be5be))
* ✨ color utils ([4d0ff36](4d0ff36))
* ✨ distance can be a function ([b0b251c](b0b251c))
* ✨ draw background on scroller when scroller's backgound is null ([da9aaf4](da9aaf4))
* ✨ get predecessors/successors by distance ([d18fde3](d18fde3))
* ✨ group demo ([0d21b3a](0d21b3a))
* ✨ merge cell data by default when call `setData` ([0698d94](0698d94))
* ✨ node and edge selection ([0622b0e](0622b0e))
* ✨ option for deep/shallow merge data and attrs ([47d133f](47d133f))
* ✨ option of selecting cell on cell moved ([c68ffed](c68ffed))
* ✨ option of selecting cell on cell moved ([7c39f81](7c39f81))
* ✨ passive event ([74fbaf5](74fbaf5))
* ✨ remove node/edge api ([732bcf3](732bcf3))
* ✨ render html/react label ([f4e6c09](f4e6c09))
* ✨ resetCells clearCells api ([bc904cd](bc904cd))
* ✨ select/unselect cell by id ([b9fdc87](b9fdc87))
* ✨ start panning when mousedown on no-interactive node/edge ([7435c32](7435c32))
* ✨ string endpoint/connectionPoint ([ea9f1e8](ea9f1e8))
* ✨ support moving when selection box is disabled ([eacd3d0](eacd3d0))
* ✨ sync modify options when draw grid ([b7d48f0](b7d48f0))
* ✨ throw error when the container is not specified or invalid ([702a12f](702a12f))
* ✨ ui event for final status ([9feaafb](9feaafb))
* ✨ use robot token ([5904d8c](5904d8c))
* ✨ validate edge on connecting ([7291dbc](7291dbc))
* accessor for mousewheel ([4537463](4537463)), closes [#16](#16) [#41](#41)
* accessor for rubberband ([eea4f5b](eea4f5b)), closes [#16](#16) [#41](#41)
* accessor for speed up use methdos on model, view, render, etc ([e028644](e028644))
* accessor for tooltip ([fcead60](fcead60)), closes [#16](#16) [#41](#41)
* add `init` method ([8daefe1](8daefe1))
* add applyMixins util ([f560a5d](f560a5d))
* add default key formator for shortcut ([86af678](86af678))
* add ensureValue ([97eb2d1](97eb2d1))
* add get set method of cell data ([794e1fc](794e1fc))
* add induction area option for Anchor ([5f0783e](5f0783e))
* add option for force redraw on data changed ([6bc927f](6bc927f))
* add static method `Image.fromSvg` parsing svg string to image ([ff81d92](ff81d92)), closes [#34](#34)
* add string template ([b3e1b1a](b3e1b1a))
* add vectorizer module ([65d5d9b](65d5d9b))
* add vectorizer module ([45f8269](45f8269))
* add wheel accessor ([c6a0607](c6a0607))
* add wheel handler for zoom graph ([e835338](e835338))
* add x6 namespace ([6c24d34](6c24d34))
* add x6 namespace ([87ba363](87ba363))
* anchor for edge ([e4448ed](e4448ed))
* anchor registry ([0f11317](0f11317))
* api of graph ([fef2cfd](fef2cfd))
* async utils ([4b2b97b](4b2b97b))
* attrs for markers ([d376e8b](d376e8b))
* auto focus the container on creating a graph instance ([de3570e](de3570e))
* base enums ([dba5f43](dba5f43))
* basic shapes ([da33dba](da33dba))
* basic shapes ([178ef35](178ef35))
* can specify null-able geometry when create cells ([809118f](809118f))
* case convert methods ([849bfbd](849bfbd))
* cell ([da3721d](da3721d))
* cell ([3db329f](3db329f))
* cell data ([f89bf83](f89bf83))
* cell id can be numbers ([4462ea4](4462ea4))
* cell view hooks ([ec584ac](ec584ac))
* class inherit method ([662da0e](662da0e))
* class inherit method ([cbbe54b](cbbe54b))
* className and options for node handler ([8c2f392](8c2f392)), closes [#16](#16) [#41](#41)
* className of edgeHandler ([d99b8ab](d99b8ab))
* classNames in connection handler ([ac23c5e](ac23c5e))
* common entities ([6aae444](6aae444))
* config shape before be rendered ([35c270d](35c270d))
* control if edge can be connected ([ebeaadb](ebeaadb))
* create anchor with native shapes ([af58546](af58546)), closes [#39](#39)
* create node with specified NodeView ([1d62d3d](1d62d3d))
* create node with specified NodeView ([6bf9d8f](6bf9d8f))
* create node with specified NodeView ([13f7158](13f7158))
* create node with specified NodeView ([1ea60c9](1ea60c9))
* create node with specified NodeView ([ef841d8](ef841d8))
* create rectangle from position and size ([8d3a1e4](8d3a1e4))
* create rectangle from size object ([6d38b56](6d38b56))
* debug basic shapes ([75d9d1b](75d9d1b))
* detect container's rezie event and auto adjust viewport ([43f4939](43f4939)), closes [#22](#22)
* detect vendor prefix ([85cde4d](85cde4d))
* dnd and stencil ([8eb9877](8eb9877))
* dynamic update react node ([58539a4](58539a4))
* er router ([89227ad](89227ad))
* export difference from lodash ([2e2190b](2e2190b))
* export graph to images, print preview ([67304ef](67304ef))
* export registerMarker method ([bc01133](bc01133))
* export segment ([f3f14a2](f3f14a2))
* export some scroller methods ([d653b5e](d653b5e))
* export SVGCanvas2D ([c8f0d84](c8f0d84))
* find view ([425c6af](425c6af))
* force layout ([f131cc4](f131cc4))
* growing along different width and height ([49155ed](49155ed))
* html shape ([ea9db6a](ea9db6a))
* improve hasScrollbars performace ([c782a38](c782a38)), closes [#116](#116)
* init routers ([762633e](762633e))
* is anchor connectable ([777237a](777237a))
* is point like & is point data ([1d1e2f7](1d1e2f7))
* isTooltipShowing ([e7ca23f](e7ca23f))
* normalize marker from path data ([98fadc8](98fadc8))
* normalize percentage number ([36cab24](36cab24))
* normalize sides ([b6eb7d6](b6eb7d6))
* prop hooks ([4c47b8d](4c47b8d))
* register shape with auto generated class name ([b61a25a](b61a25a))
* register shape with auto generated class name ([c84582c](c84582c))
* register shapes ([7438aac](7438aac))
* registry of connector and router ([66d463d](66d463d))
* remove unnecessary type convertions ([8c36e66](8c36e66)), closes [#16](#16) [#41](#41)
* research next generation view ([b7b997e](b7b997e))
* sanitize markup ([d0e7b41](d0e7b41))
* sanitizes HTML with jQuery prevent Application from XSS attacks ([a6ab16d](a6ab16d))
* shape registry ([08be328](08be328))
* shapes with standard markup ([ed4ff25](ed4ff25))
* shapes with string markup ([f9e5439](f9e5439))
* simplify polyline ([4f46e62](4f46e62))
* standard edge for default ([7c23ef5](7c23ef5))
* standard shapes ([f9758b1](f9758b1))
* static method `equals` ([2dbfd6b](2dbfd6b))
* static toJSON method ([4d3afc5](4d3afc5))
* static toJSON method ([bd8e944](bd8e944))
* strict option for line layout ([ecc7242](ecc7242))
* string labels and single label ([486a839](486a839))
* support array of port for "ports" option ([8a68895](8a68895))
* support cell tools and some presets ([82599a8](82599a8))
* support DocumentFragment ([bfbefa0](bfbefa0))
* support DocumentFragment ([bf5f02e](bf5f02e))
* support er router direction ([feab950](feab950))
* support mousewheel zooming and keyboard shortcuts ([4146b04](4146b04))
* support plaint args for native markers ([a2607d5](a2607d5))
* toJSON()导出画布功能ok ([a847ab8](a847ab8))
* tool registry and examples ([88a125a](88a125a))
* update cell by set cell attrs ([b1335c1](b1335c1))
* use container's size when width or height was not specified ([e94609c](e94609c))
* validateNode before added to graph ([5e54d4d](5e54d4d)), closes [#182](#182)
* 允许用户控制节点、连线是否添加和删除 ([e64af7f](e64af7f))
* 添加toJSON导出画布数据demo ([321e0ce](321e0ce))
* 用户编辑过程中动态生成的连线也可以被渲染 ([c09fdbd](c09fdbd))
* **anchor:** auto adsorb ([16bcfd2](16bcfd2))
* **anchor:** simplify the creation of Anchor ([e703cfa](e703cfa)), closes [#28](#28)
* **connection:** can disable hotspot connectting on source node ([35dc003](35dc003))
* **contextmenu:** accessor for contextmenu ([8460572](8460572)), closes [#16](#16) [#41](#41)
* **dnd:** move data into options ([1513ee1](1513ee1))
* **events:** type infer for custom events ([8cc68d8](8cc68d8))
* **guide:** ensure className and accessor for guide ([42abf49](42abf49)), closes [#41](#41)
* detect whether `passive` is supported ([15dc8da](15dc8da))
* edge label default not movable ([d5a180e](d5a180e))
* export command ([79ab1e0](79ab1e0))
* export globals for global config ([ec2d1a0](ec2d1a0))
* export json util ([485bea8](485bea8))
* export json util ([633cfee](633cfee))
* export some api from model ([5c48b66](5c48b66))
* export some model and view events to graph ([31652b4](31652b4)), closes [#54](#54)
* generic type for cell data ([602c481](602c481))
* geometry object extends it's data structure ([024fbc9](024fbc9))
* get html content from `style.html` or `graph.getHtml()` ([e3922f9](e3922f9))
* group by ([69c0509](69c0509))
* init attr ([2d1afd4](2d1afd4))
* json util ([010ce32](010ce32))
* json util ([47b267c](47b267c))
* layer api ([166a728](166a728))
* links default unbendable ([4677863](4677863))
* methods for getting cells from graph ([d1102a0](d1102a0))
* minimap addon ([f318e69](f318e69))
* more readable style names ([e4bf07b](e4bf07b))
* node port ([4b7b16a](4b7b16a))
* nodes default unrotatable ([fe2de60](fe2de60))
* nullable type ([b3877e1](b3877e1))
* option of configing changable for edge terminal ([66fcd60](66fcd60)), closes [#29](#29)
* pick ([fc50ef8](fc50ef8))
* planishing options of `createCell`, `addNode`, `addEdge` ([1fef232](1fef232)), closes [#10](#10)
* port ([5408a92](5408a92))
* remove `noEdgeStyle` ([6592f66](6592f66))
* remove backgroundImage option for Graph ([293df17](293df17)), closes [#11](#11)
* remove documentMode detection ([92ba091](92ba091))
* render nodes and edges by data ([53bad0b](53bad0b)), closes [#49](#49)
* render ports ([90bef83](90bef83))
* render preview edge on decorator pane ([b34ea62](b34ea62))
* requestAnimationFrame ([e3c1456](e3c1456))
* requestAnimationFrame ([e5b2b56](e5b2b56))
* research ([0325a0d](0325a0d))
* return value of batch update ([19da712](19da712))
* split main module ([6616bf3](6616bf3))
* split main module ([52f5e42](52f5e42))
* split module ([ba8ee1a](ba8ee1a))
* support custom style ([d630596](d630596))
* support disable track ([dd4e7b7](dd4e7b7))
* support remove mouseWheel listener ([a21e1a3](a21e1a3))
* use EventArgs ([fec7290](fec7290)), closes [#47](#47)
* use utility-types ([2ed89e8](2ed89e8))
* utility types ([9560c79](9560c79))
* **addon:** export addons ([6ed1b10](6ed1b10))
* **events:** more readable event names ([4621381](4621381)), closes [#54](#54)
* **events:** use more readable event names ([a8bf9aa](a8bf9aa)), closes [#54](#54)
* **label:** define label in style and do not extra label from data ([2496c68](2496c68)), closes [fix#31](https://github.com/fix/issues/31)
* specified `passive: false` when add wheel listener for zoom graph ([96549ff](96549ff))
* support dropping cell into a group ([2b9348d](2b9348d))
* wheel => mouseWheel, for readable ([95f5da4](95f5da4))
* **grid:** provide "line" and "dot" grid background ([b2f29dc](b2f29dc)), closes [#6](#6) [#6](#6)
* **grid:** support grid background-color ([cee7071](cee7071)), closes [#6](#6)
* **minimap:** custom cell style by cell itself ([88c8c44](88c8c44))
* **minimap:** the rendering fineness of minimap ([98c82e3](98c82e3)), closes [#7](#7)
* **x6:** add some convenient methods on namespace "x6" ([ab49248](ab49248))

### Performance Improvements

* ⚡️ Optimize apply and call ([#203](#203)) ([0bf987b](0bf987b))
@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 24, 2020

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature 新功能 Feature/enhancement requests
Projects
None yet
Development

No branches or pull requests

1 participant