Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Document expected Item behavior for SceneObject

Aperta
#1,276 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Inizia esaminando il comportamento esistente di SceneObject, scene tree, Item e data interface descritto nell’issue. Chiarisci il comportamento richiesto di Item e come debba essere rappresentata la serializzazione della scena, quindi documenta il contratto concordato e verifica che corrisponda alla core library e alle aspettative dei componenti downstream.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

          currently there is some duplication between the behaviour of the scene itself and its tree attribute. when this behaviour is merged, i assume the guid of the data object will play a role in keeping track of things. in that context, the name of the item is not important. it might even be better to not implicitly reuse the name of the item, but instead make the user assign a name to the scene object explicitly.

in any case, a scene should be serialisable. so the default behaviour in the core library should be that the items implement the data interface.

what downstream users do with this is of course up to them. in that regard, rather than saying that an item should be a data item, perhaps we should define the required behaviour of an item instead, and leave everything up to the downstream implementations...

how does that sound?

Originally posted by @tomvanmele in https://github.com/compas-dev/compas/issues/1274#issuecomment-1910539909

Lingua principale
Python
Stelle
386
Fork
122
Merge medio
11g 46m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di compas-dev/compas

Tutte le issue di compas-dev/compas

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.