Questions tagged [layer]

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

If the question relates to Geographic Information Systems, consider whether the question is better suited to the GIS Stack Exchange.

2129 questions
2026
votes
17 answers

Click through div to underlying elements

I have a div that has background:transparent, along with border. Underneath this div, I have more elements. Currently, I'm able to click the underlying elements when I click outside of the overlay div. However, I'm unable to click the underlying…
Ryan
  • 21,437
  • 7
  • 25
  • 28
613
votes
21 answers

Giving UIView rounded corners

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". This subview has corners which aren't rounded. How can I make them round? Is there any way to do it inside my xib?
itsaboutcode
  • 24,525
  • 45
  • 110
  • 156
211
votes
9 answers

html5 - canvas element - Multiple layers

Without any extension library, is it possible to have multiple layers in the same canvas element? So if I do a clearRect on the top layer, it will not erase the bottom one? Thanks.
Gregoire
  • 24,219
  • 6
  • 46
  • 73
99
votes
3 answers

Specifying the order of layers

Suppose I run the following script: import matplotlib.pyplot as plt lineWidth = 20 plt.figure() plt.plot([0,0],[-1,1], lw=lineWidth, c='b') plt.plot([-1,1],[-1,1], lw=lineWidth, c='r') plt.plot([-1,1],[1,-1], lw=lineWidth, c='g') plt.show() This…
Forklift17
  • 2,245
  • 3
  • 20
  • 32
81
votes
5 answers

DDD - which layer DTO should be implemented

I am learning about DDD so apologies if my question is naive. I think I need to use Local Data Transfer Object in order to display data to the users as a lot of properties are not part of any of Entity / Value Objects. However, I am not sure where…
user2105030
  • 831
  • 1
  • 7
  • 7
70
votes
3 answers

Should I minimize the number of docker layers?

The documentation doesn't elaborate on the topic a lot. It says: Minimize the number of layers Prior to Docker 17.05, and even more, prior to Docker 1.10, it was important to minimize the number of layers in your image. The following improvements…
gukoff
  • 2,112
  • 3
  • 18
  • 30
57
votes
3 answers

When does a view (or layer) require offscreen rendering?

Hellothis weekend I started to watch the 2011 WWDC videos. I've found really interesting topics about iOS. My favorites were about performance and graphics, but I've found two of them apparently in contradiction. Of course there is something that I…
Andrea
  • 26,120
  • 10
  • 85
  • 131
45
votes
1 answer

Domain Driven Design - how the layers should be organized?

I'm very much new to software development. I think layered architecture is a great way to reduce the complexities that arise in the process of object oriented software development and, not to mention, to keep your code organized. I'm interested to…
40
votes
2 answers

Insert Layer underneath existing layers in ggplot2 object

Given an Existing plot object is it possible to add a layer UNDERNEATH an existing layer? Example, in the graph below, is it possible to add geom_boxplot() to P such that the boxplot appears underneath geom_point()? ## Starting from:…
Ricardo Saporta
  • 54,400
  • 17
  • 144
  • 178
40
votes
4 answers

How can I get overlapping divs with relative positions?

I want a few divs to be positioned in a line next to each other, but also allow them to overlap the previous div. What I'm trying to get is a timeline with divs for events of certain length. The events can overlap each other. My idea was to give…
TilmanBaumann
  • 14,036
  • 2
  • 14
  • 10
38
votes
4 answers

Which layer should be used for conversion to DTO from Domain Object

We are creating rest api's with Spring Boot. We have three layers in our project(Repository, Service and Controller). Lets say I have GetUser api in my controller that return UserDTO object. @GetMapping public UserDTO getUser() { return…
Suleyman Arıkan
  • 503
  • 1
  • 4
  • 7
38
votes
8 answers

Add just a top border to an UIView with Quartzcore/layer?

Is it possible to add a border just on top of a UIView, if so, how please?
GilbertOOl
  • 1,299
  • 2
  • 15
  • 27
30
votes
1 answer

Where to implement Automapper in a DDD + layered architecture

Background: For my own clarity / self education, I am trying to implement a simple Order Entry application using TDD + DDD. My primary goal is to keep the architecture clean by separating concerns. I have four layers (for now) ...…
Bob Tabor
  • 967
  • 1
  • 13
  • 23
26
votes
4 answers

Layering canvas objects in Fabric.js

Is there a way to layer objects on a Fabric.js canvas via the official API? Right now the only way I have found to do it is to manually iterate through the canvas._objects and reorder them so that they get drawn in a specific order. Is there a…
Zwade
  • 1,682
  • 4
  • 17
  • 28
25
votes
4 answers

Cocos2d adding a background image to a layer?

I just finished reading some of the cocos2d documentation, and as far as I understand to add a background image to a layer you have to do something like: Sprite * bg = [Sprite spriteWithFile:@"Background.png"]; [layer addChild:bg z:0]; Allthough as…
Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118
1
2 3
99 100