drawshield / drawshield/Drawshield-Code

Charge Orientation re-work

Đang mở
#69 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement Medium
Ngôn ngữ chính
PHP
Star
60
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Implement the following:

As part of their metadata, charges have an "aspect", with values of "landscape" or "portrait". This can be specified explicitly in extradata.inc, or be calculated.
$aspect = $height > $width ? "portrait" : "landscape";

Charges also have a "facing" direction, with values "left", "right", "up", "down" or "none". This can be specified explicitly, or have the default value "left".

At least some of the combinations are to be implemented as shown below:

![orientation](https://user-images.githubusercontent.com/3171760/79645460-82ab3000-81a7-11ea-9ce9-94b73160df4f.png)

These metadata items will also be used to determine whether (and how) charges are oriented in line with any ordinaries that they are placed "on".

More details to follow.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.