Merge branch 'qcast-pub' into dev
This commit is contained in:
commit
f675f624b3
@ -426,11 +426,14 @@ export default function StepUp(props) {
|
|||||||
roofSurface.moduleList.forEach((module) => {
|
roofSurface.moduleList.forEach((module) => {
|
||||||
const targetModule = canvas.getObjects().filter((obj) => obj.id === module.uniqueId)[0]
|
const targetModule = canvas.getObjects().filter((obj) => obj.id === module.uniqueId)[0]
|
||||||
if (module.circuit === '') return
|
if (module.circuit === '') return
|
||||||
const moduleCircuitText = new fabricxtxt(module.circuit, {
|
const moduleCircuitText = new fabric.Text(module.circuit, {
|
||||||
left: targetModule.left + targetModule.width / 2,
|
left: targetModule.left + targetModule.width / 2,
|
||||||
top: targetModule.top + targetModule.height / 2,
|
top: targetModule.top + targetModule.height / 2,
|
||||||
fill: 'black',
|
fontFamily: circuitNumberText.fontFamily.value,
|
||||||
fontSize: 20,
|
fontWeight: circuitNumberText.fontWeight.value.toLowerCase().includes('bold') ? 'bold' : 'normal',
|
||||||
|
fontStyle: circuitNumberText.fontWeight.value.toLowerCase().includes('italic') ? 'italic' : 'normal',
|
||||||
|
fontSize: circuitNumberText.fontSize.value,
|
||||||
|
fill: circuitNumberText.fontColor.value,
|
||||||
width: targetModule.width,
|
width: targetModule.width,
|
||||||
height: targetModule.height,
|
height: targetModule.height,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
|||||||
@ -133,11 +133,11 @@ export default function PassivityCircuitAllocation(props) {
|
|||||||
const moduleCircuitText = new fabric.Text(getCircuitNumber(), {
|
const moduleCircuitText = new fabric.Text(getCircuitNumber(), {
|
||||||
left: obj.left + obj.width / 2,
|
left: obj.left + obj.width / 2,
|
||||||
top: obj.top + obj.height / 2,
|
top: obj.top + obj.height / 2,
|
||||||
fill: 'black',
|
|
||||||
fontFamily: circuitNumberText.fontFamily.value,
|
fontFamily: circuitNumberText.fontFamily.value,
|
||||||
fontWeight: circuitNumberText.fontWeight.value.toLowerCase().includes('bold') ? 'bold' : 'normal',
|
fontWeight: circuitNumberText.fontWeight.value.toLowerCase().includes('bold') ? 'bold' : 'normal',
|
||||||
fontStyle: circuitNumberText.fontWeight.value.toLowerCase().includes('italic') ? 'italic' : 'normal',
|
fontStyle: circuitNumberText.fontWeight.value.toLowerCase().includes('italic') ? 'italic' : 'normal',
|
||||||
fontSize: circuitNumberText.fontSize.value,
|
fontSize: circuitNumberText.fontSize.value,
|
||||||
|
fill: circuitNumberText.fontColor.value,
|
||||||
width: obj.width,
|
width: obj.width,
|
||||||
height: obj.height,
|
height: obj.height,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user