Skip to content

Adding new components v2

Radhakrishna Sanka edited this page Jan 14, 2019 · 2 revisions

Component Definitions

        unique: {
            "position": "Point",
        },
        heritable: {
            "rotation": "Float",
            "length": "Float",
            "width": "Float",
            "height": "Float",
            "spacing": "Float",
            "flowChannelWidth":"Float"
        },
        units: {
            "rotation": "&deg",
            "length": "μm",
            "width": "μm",
            "height": "μm",
            "spacing": "μm",
            "flowChannelWidth":"μm"

        },
        defaults: {
            "rotation": 0,
            "width": 600,
            "length": 300,
            "height": .1 * 1000,
            "spacing": 1000,
            "flowChannelWidth":300

        },
        minimum: {
            "rotation": 0,
            "width": 30,
            "length": 120,
            "height": 10,
            "spacing": 10,
            "flowChannelWidth":1

        },
        maximum: {
            "rotation": 180,
            "width": 6000,
            "length": 24 * 1000,
            "height": 1200,
            "spacing": 10000,
            "flowChannelWidth":10000
        }

Tool Params Example

These are the params that the tool should capture via user input (current GUI based)

For Components

toolParams: {
            position: "position",

        }

For Connections

        toolParams: {
            start: "start",
            end: "end"
        }

Each tool has its own unique way of capturing the user interactions, this can be leveraged when making new interactive tools in 3DuF.

Drawing Code Parameter Maps

This will be removed in the v3 of the component adding scheme, we are retaining these for now so that we can keep the code stable.

        featureParams: {
            start: "start",
            end: "end",
            width: "channelWidth"
        },
        targetParams: {
            diameter: "channelWidth",
            channelWidth: "channelWidth"
        },