Skip to content

Conversation

@Geliogabalus
Copy link
Contributor

@Geliogabalus Geliogabalus commented Oct 22, 2025

Description

Remove base cell collection and move logic to the cell layers instead

events

All cell events are emitted without prefix.
All layer model events and cell collection events are emitted with layer: prefix, e.g. layer:reset is emited when layer collection has been reset, and layer:change when the layer's attribute has been changed.
All layer collection events are emited with layers: prefix, e.g. layers:reset when whole cellLayerCollection has been reset.

@Geliogabalus Geliogabalus marked this pull request as draft October 22, 2025 13:11
@Geliogabalus
Copy link
Contributor Author

I need to update tests, and check more stuff, but overall structure is done

// The elements come after the links.
var cells = collection.sortBy(function(cell) {
return cell.isLink() ? 1 : 2;
const sortedCells = cells.sort((a, b) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

use util.sortBy

@kumilingus kumilingus marked this pull request as ready for review October 24, 2025 15:18
@kumilingus kumilingus self-requested a review October 24, 2025 15:18
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