-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: all eslint problems solved, new implementation for computed attr…
…ibutes
- Loading branch information
1 parent
321ae58
commit a9d4618
Showing
13 changed files
with
262 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
import type {Attributes} from './marker'; | ||
|
||
export class MarkerCollection<TUserData extends object = Record<any, any>> { | ||
constructor(data: TUserData[], attributes: Attributes<TUserData>) {} | ||
|
||
static fromArray<TUserData extends object = Record<any, any>>( | ||
data: TUserData[], | ||
attributes: Attributes<TUserData> | ||
): MarkerCollection { | ||
return new MarkerCollection(data, attributes); | ||
} | ||
|
||
// a collection provides bindings between an array of records and | ||
// the corresponding markers. | ||
|
||
// - attributes: attributes are shared with all markers, which is where | ||
// dynamic attributes can really shine | ||
// | ||
// - data-updates: data in the collection can be updated after creation. | ||
// This will assume that complete sets of records are passed on every | ||
// update. If incremental updates are needed, those have to be applied | ||
// to the data before updating the marker collection. | ||
// When transitions are implemented (also for performance reasons), it | ||
// will become important to recognize identical records, so those can be | ||
// updated instead of re-created with every update. | ||
// - | ||
|
||
// .map property: forwards to all markers | ||
// marker.visible attribute | ||
} | ||
export {}; | ||
// import type {Attributes} from './marker'; | ||
// | ||
// | ||
// export class MarkerCollection<TUserData extends object = Record<any, any>> { | ||
// constructor(data: TUserData[], attributes: Attributes<TUserData>) {} | ||
// | ||
// static fromArray<TUserData extends object = Record<any, any>>( | ||
// data: TUserData[], | ||
// attributes: Attributes<TUserData> | ||
// ): MarkerCollection { | ||
// return new MarkerCollection(data, attributes); | ||
// } | ||
// | ||
// // a collection provides bindings between an array of records and | ||
// // the corresponding markers. | ||
// | ||
// // - attributes: attributes are shared with all markers, which is where | ||
// // dynamic attributes can really shine | ||
// // | ||
// // - data-updates: data in the collection can be updated after creation. | ||
// // This will assume that complete sets of records are passed on every | ||
// // update. If incremental updates are needed, those have to be applied | ||
// // to the data before updating the marker collection. | ||
// // When transitions are implemented (also for performance reasons), it | ||
// // will become important to recognize identical records, so those can be | ||
// // updated instead of re-created with every update. | ||
// // - | ||
// | ||
// // .map property: forwards to all markers | ||
// // marker.visible attribute | ||
// } |
Oops, something went wrong.