MIERUNE / qgis-plugx-plugin

QGIS to Illustrator with PlugX
GNU General Public License v2.0
3 stars 0 forks source link

[marker] anchor point #139

Closed Kanahiro closed 10 months ago

Kanahiro commented 10 months ago

スクリーンショット 2023-08-17 17 13 38

Kanahiro commented 10 months ago

proposal

{
  "type": "simple",
...
  "offset": [0.0, 0.0],
  "anchor_x": "left", // left | center | right
  "anchor_y": "bottom" // top | middle | bottom 
...
}

IMG_0413

Kanahiro commented 10 months ago
# https://api.qgis.org/api/classQgsMarkerSymbolLayer.html#a17e16ed918b49f668594868711e8b997
layer.renderer().symbol()[0].horizontalAnchorPoint()
# 0=Left, 1=HCenter, 2=Right
layer.renderer().symbol()[0].verticalAnchorPoint()
# 0=Top, 1=VCenter, 2=Bottom
bordoray commented 10 months ago

(FYI) Unsupported marker types: