Comments (10)
Hi nullptr,
you're right Internationalization (i18n) is missing, I added the issue that I will try to implement as soon as possible
best regards
from fuxa.
Hello! Unocelli. Why can't I find the SetColor function in this.winref.nativewindow.svgeditor during initialization? Console error: this.winref.nativewindow.svgeditor.setcolor is not a function? It seems very unstable
from fuxa.
from fuxa.
The start page 'index. HTML' already exists, but if I add the dependency of node package in "scripts" in the. Angular-cli.json file, an error will be reported. However, during the first initialization, an error typeerror is reported: cannot read property 'SetColor' of undefined. Just execute this function for the second time.
from fuxa.
from fuxa.
I've removed the dependency package in the angular-cli.json file and included all the import files you mentioned in the index.html file. However, ERROR TypeError: Cannot read property 'setColor' of undefined in the first load
from fuxa.
from fuxa.
`
<link rel="stylesheet" href="assets/lib/svgeditor/extensions/ext-html_button.min.css">
<link rel="stylesheet" href="assets/lib/svgeditor/svg-editor.min.css">
<link rel="stylesheet" href="assets/lib/ext-styles.css">
<!-- 2° Load libraries -->
<script src="assets/lib/svgeditor/jquery.min.js"></script>
<script src="assets/lib/svgeditor/jquery-ui-1.8.17.custom.min.js"></script>
<script src="assets/lib/svgeditor/jquery-plugin.min.js"></script>
<script src="assets/lib/dygraphs/dygraph-combined.js"></script>
<script src="assets/lib/dygraphs/dygraph-extra.js"></script>
<script src="assets/lib/dygraphs/dygraph-synchronizer.js"></script>
<script src="assets/lib/svgeditor/extensions/ext-markers.min.js"></script>
<script src="assets/lib/svgeditor/extensions/ext-bundle.min.js"></script>
<!-- <script src="assets/lib/svgeditor/svg-editor.min.js"></script> -->
<script src="assets/lib/svgeditor/fuxa-editor.min.js"></script>
<script src="assets/lib/svg/svg.min.js"></script>
<script src="assets/lib/svg/raphael.min.js"></script>
<script src="assets/lib/echarts.min.js"></script>
Console error:
core.js:1440 ERROR TypeError: Cannot read property 'setColor' of undefined
at EditorComponent.setFillColor (editor.component.ts:500)
at EditorComponent.onSelectView (editor.component.ts:798)
at EditorComponent.loadHmi (editor.component.ts:243)
at eval (editor.component.ts:121)
at SafeSubscriber.schedulerFn [as _next] (core.js:4331)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:239)
at SafeSubscriber.next (Subscriber.js:186)
at Subscriber._next (Subscriber.js:127)
at Subscriber.next (Subscriber.js:91)
at EventEmitter.Subject.next (Subject.js:56)
The reported file error is in editor.component.ts
private setFillColor(event) { let color = event; if (color.charAt(0) === '#') color = color.slice(1); let alfa = 100; this.winRef.nativeWindow.svgEditor.setColor(color, alfa, "fill"); // this.fillcolor; }
from fuxa.
from fuxa.
Thank you! If you find a solution, please let me know. I am also trying to solve this problem.
from fuxa.
Related Issues (20)
- [BUG] Card Opening Position, Dialog Mode HOT 1
- [BUG] Missing library SiemensS7 HOT 8
- [FEATURE] HOT 2
- [FEATURE]Is there a publishing function? HOT 2
- [FEATURE] Reduce the amount of data loaded HOT 2
- question
- Want to ask question
- [BUG] Authorization not working HOT 1
- New Feature - Ability to access historical tags in script HOT 3
- Other scripts that call client disks through scripts, power shell? .bat? vbs?
- [FEATURE] Bind-able property value in GaugeRangeProperty HOT 1
- [Question] How to add custom font style? HOT 6
- [BUG] Fill color doesn't work without a point attached
- Fuxa with Node Js unofficial x86 version HOT 3
- The Fuxa doesn't autostart HOT 1
- [QUESTION] OpenCard multiple instance of View HOT 3
- [QUESTION] How exactly does 'customized chart data' work? HOT 2
- [BUG] The background coloring for the output value does not work HOT 1
- [BUG] ModBus RTU InputRegister Addressing misfire HOT 1
- [FEATURE] Automatic alignment or automatic standardization in svg editor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuxa.