aktos-io / aecad

Open Source Circuit Board Design Software that runs on the browser and desktop
https://aktos.io/aecad
54 stars 10 forks source link

Provide a better way to override `allow-duplicate-labels` #78

Open ceremcem opened 2 years ago

ceremcem commented 2 years ago

If a footprint is created by overriding create() method, data.allow-duplicate-labels can not be set easily. Here is current way:

provides class DG142V_5_08_XXP extends Footprint
    (data, overrides) ->
        super data, overrides `based-on` {
            +allow-duplicate-labels
        }

    create: (data) ->
        ...

There should be a way to override this property within the create() method to make the footprint definition more human readable.