Skip to content

createAbstractImage does not account for topLeft #153

@Axel-Axelsson

Description

@Axel-Axelsson

The image is always placed on 0.0
Which makes placing components on negative y- and later changing the image bounds not possible.

for createSvg:
https://github.com/dividab/abstract-visuals/blob/master/packages/abstract-image/src/exporters/svg-export-image.ts#L15
the viewbox is. [0,0.. ] instead of: [image.topLeft.x, image.topLeft.y... ]

When renderingImage
https://github.com/dividab/abstract-visuals/blob/master/packages/abstract-document/src/abstract-document-exporters/pdf/render-image.ts#L31
The abstractImage topLeft point is not passed along to be accounted for in the placements

Is there a logical reason for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions