Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setZIndex function #1084

Merged
merged 4 commits into from
Aug 2, 2018
Merged

Add setZIndex function #1084

merged 4 commits into from
Aug 2, 2018

Commits on Mar 31, 2018

  1. Add setZIndex function

    增加了手动设置和自动设置图层 zIndex 值的方法。
    在初始化设置了 position 参数时,自动设置图层 zIndex 值(遍历所在 pane 里的所有图层,设置最大(front)或最小(back)值)。
    在初始化设置了 zIndex 参数时,position 参数的默认值失效,直接使用该值作为图层zIndex值。
    如果之后手动调用 bringToFront 或 bringToBack 方法,之前手动设置的zIndex失效,自动分配图层 zIndex 值。
    -----------------------------渣翻译分割线--------------------------
    if set position option, it will auto set the image dom zIndex. (go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back))
    if set zIndex option, it will use the value as the image dom zIndex.
    if call bringToFront / bringToBack function, though set zIndex option in initialize, it will auto set the image dom zIndex.
    appleshowc authored Mar 31, 2018
    Configuration menu
    Copy the full SHA
    4d67b39 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2018

  1. fix position

    appleshowc authored Apr 8, 2018
    Configuration menu
    Copy the full SHA
    b885cb6 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2018

  1. Update RasterLayer.js

    Solve Travis CI error
    appleshowc authored Jul 9, 2018
    Configuration menu
    Copy the full SHA
    476fe75 View commit details
    Browse the repository at this point in the history
  2. Update RasterLayer.js

    appleshowc authored Jul 9, 2018
    Configuration menu
    Copy the full SHA
    db1f803 View commit details
    Browse the repository at this point in the history