Giter VIP home page Giter VIP logo

Comments (10)

unocelli avatar unocelli commented on August 26, 2024

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.

ATwins-8 avatar ATwins-8 commented on August 26, 2024

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.

unocelli avatar unocelli commented on August 26, 2024

from fuxa.

ATwins-8 avatar ATwins-8 commented on August 26, 2024

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.

unocelli avatar unocelli commented on August 26, 2024

from fuxa.

ATwins-8 avatar ATwins-8 commented on August 26, 2024

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.

unocelli avatar unocelli commented on August 26, 2024

from fuxa.

ATwins-8 avatar ATwins-8 commented on August 26, 2024

`


<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>
Loading... `

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.

unocelli avatar unocelli commented on August 26, 2024

from fuxa.

ATwins-8 avatar ATwins-8 commented on August 26, 2024

Thank you! If you find a solution, please let me know. I am also trying to solve this problem.

from fuxa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.