Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

make Darwin enum peer cross-references more robust #6541

Closed

Description

@incanus

Tail work from #6508 referenced in #6508 (review).

We want to more robustly regex-match cross-references between properties in a layer type.

As an example, the output we have as of #6508 looks like this:

/**
 In combination with `symbolPlacement`, determines the rotation behavior of icons.
 */
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerIconRotationAlignment) {
    /**
     When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, aligns icons east-west. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, aligns icon x-axes with the line.
     */
    MGLSymbolStyleLayerIconRotationAlignmentMap,
    /**
     Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbolPlacement`.
     */
    MGLSymbolStyleLayerIconRotationAlignmentViewport,
    /**
     When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, this is equivalent to `MGLSymbolStyleLayerIconRotationAlignmentViewport`. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, this is equivalent to `MGLSymbolStyleLayerIconRotationAlignmentMap`.
     */
    MGLSymbolStyleLayerIconRotationAlignmentAuto,
};

Per the reference comment, we could make this less brittle in our code gen script since the upstream style spec isn't necessarily aware of the conditions.

/cc @1ec5

Activity

  1. added
    iOS
    macOS
    on Sep 30, 2016
  2. added this to the ios-v3.4.0 milestone on Sep 30, 2016
  3. added a commit that references this issue on Sep 30, 2016
    448e89d
  4. self-assigned this
    on Sep 30, 2016
  5. added a commit that references this issue on Oct 1, 2016
    132954b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationiOSmacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions